1.1.1.4.2 DRV_AK4953_MicGainGet Function
uint8_t DRV_AK4953_MicGainGet(DRV_HANDLE handle)
Summary
This function gets the microphone gain for the AK4953 Codec.
Description
This functions gets the current microphone gain programmed to the Codec AK4953.
Preconditions
The DRV_AK4953_Initialize routine must have been called for the specified AK4953 driver instance.
DRV_AK4953_Open must have been called to obtain a valid opened device handle.
Parameters
Parameters | Description |
---|---|
handle | A valid open-instance handle, returned from the driver's open routine |
Returns
Microphone gain, in range 0-31.
Remarks
None.
Example
_\/\/ myAppObj is an application specific object._ MY_APP_OBJ myAppObj; uint8_t gain; _\/\/ myAK4953Handle is the handle returned \/\/ by the DRV_AK4953_Open function._ gain = DRV_AK4953_MicGainGet(myAK4953Handle);
C
uint8_t DRV_AK4953_MicGainGet(DRV_HANDLE handle);