Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > d) Settings Functions > DRV_BM64_SamplingRateGet Function
MPLAB Harmony Bluetooth Help
DRV_BM64_SamplingRateGet Function

Return the current sampling rate.

Description

Function DRV_BM64_SamplingRateGet: 

uint32_t DRV_BM64_SamplingRateGet(DRV_HANDLE handle); 

Return the current sampling rate as a 32-bit integer.

Preconditions

DRV_BM64_Open must have been called to obtain a valid opened device handle.

Parameters
Parameters 
Description 
handle 
valid handle to an opened BM64 device driver unique to client 
Returns

None.

Example
uint32_t sampleRate;

// note generic version of call (DRV_BT instead of DRV_BM64) is used
sampleRate = DRV_BT_SamplingRateGet(appData.bt.handle);
C
uint32_t DRV_BM64_SamplingRateGet(
    DRV_HANDLE handle
);