CP2114 supports record mute by USB host or GPIO pin. CP2114 mutes Record when the USB host sends an Audio Class-Specific request SET_CUR (0x01) to mute the Record audio. In addition, single-pressing the Record Mute button (GPIO.0 by default) will toggle between record mute and unmute states. The Record Mute LED (GPIO.4 by default) is turned on/off accordingly for both control methods.
For Windows machine, the CP2114 device record can be muted with following steps:
The Record Mute LED on CP2114 evaluation board will be toggled as well.
1. Record Mute controlled by Host PC is available for CP2114-B02 revision only. See CP2114 Errata for more information.
2. Record functionality must be enable. User can test with the index 0 of preprogrammed configuration by installing all jumpers of GPIO.5 ~ GPIO.8 on the CP2114 EVB.
When being programmed with a new configuration, the CP2114-B01 and CP2114-B02 devices can sometimes write corrupted configuration data when SYSCLK is currently being driven by the internal 49.152 MHz oscillator and the size of the new configuration data block is greater than 62 bytes.
The problem does not occur in other SYSCLK modes. To prevent the possibility of corruption when programming a new configuration, the CP2114 should be operating in one of these three SYSCLK modes:
There are two APIs can be used for CP2114 Pins configuration:
Please see SLABCP2114.h for more details on CP2114 APIs declaration.
Here is an example on how to use the two APIs to get or set CP2114 Pins configuration based on HidUartExample that is included in the USBXpressHostSDK for Linux. The source code is attached.
How to use the HidUartExample
Step 1. Connect CP2114 device to a Linux machine.
Step 2. Specify the PID of CP2114 device when executing the hidUartExample generated after
building. The VID and PID of CP2114 is 0x14C4 and 0xEAB0 respectively by default.
Step 3. Select 'Get Pin Config' by entering '7' following the 'Enter' key to query the current pin configuration of CP2114 device.
Step 4. Select 'Set Pin Config' by entering '8' following the 'Enter' key to configure CP2114 Pins with new setting. User can update the pin setting in source code depending on their application. Note that CP2114 pins configuration can be programmed only once.
Step 5. Finally type '9' to exit this example.