1.1.2.6.12 DRV_AK4954_VolumeGet Function
uint8_t DRV_AK4954_VolumeGet(DRV_HANDLE handle, DRV_AK4954_CHANNEL chan)
Summary
This function gets the volume for AK4954 Codec.
Description
This functions gets the current volume programmed to the CODEC AK4954.
Preconditions
The DRV_AK4954_Initialize routine must have been called for the specified AK4954 driver instance.
DRV_AK4954_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 |
chan | Audio channel volume to be set |
Returns
None.
Remarks
None.
Example
_\/\/ myAppObj is an application specific object._ MY_APP_OBJ myAppObj; uint8_t volume; _\/\/ myAK4954Handle is the handle returned \/\/ by the DRV_AK4954_Open function._ volume = DRV_AK4954_VolumeGet(myAK4954Handle,DRV_AK4954_CHANNEL_LEFT);
C
uint8_t DRV_AK4954_VolumeGet(DRV_HANDLE handle, DRV_AK4954_CHANNEL chan);