1.1.2.6.10 DRV_AK4954_SamplingRateGet Function

uint32_t DRV_AK4954_SamplingRateGet(DRV_HANDLE handle)

Summary

This function gets the sampling rate set on the DAC AK4954.

Description

This function gets the sampling rate set on the DAC 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

ParametersDescription
handleA valid open-instance handle, returned from the driver's open routine

Returns

None.

Remarks

None.

Example

uint32_t baudRate;

_\/\/ myAK4954Handle is the handle returned \/\/ by the DRV_AK4954_Open function._

baudRate = DRV_AK4954_SamplingRateGet(myAK4954Handle);

C

uint32_t DRV_AK4954_SamplingRateGet(DRV_HANDLE handle);