1.1.1.4.12 DRV_AK4953_VolumeGet Function

uint8_t DRV_AK4953_VolumeGet(DRV_HANDLE handle, DRV_AK4953_CHANNEL chan)

Summary

This function gets the volume for AK4953 Codec.

Description

This functions gets the current volume 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

ParametersDescription
handleA valid open-instance handle, returned from the driver's open routine
chanAudio channel volume to be set

Returns

None.

Remarks

None.

Example

_\/\/ myAppObj is an application specific object._ MY_APP_OBJ myAppObj; uint8_t volume;

_\/\/ myAK4953Handle is the handle returned \/\/ by the DRV_AK4953_Open function._

volume = DRV_AK4953_VolumeGet(myAK4953Handle,DRV_AK4953_CHANNEL_LEFT);

C

uint8_t DRV_AK4953_VolumeGet(DRV_HANDLE handle, DRV_AK4953_CHANNEL chan);