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

Set the current sampling rate.

Description

Function DRV_BM64_SamplingRateSet: 

void DRV_BM64_SamplingRateSet(DRV_HANDLE handle, uint32_t samplingRate); 

Set the current sampling rate (passed 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 
samplingRate 
sampling rate in Hz (8000, 16000, 44100 or 48000) 
Returns

None.

Example
// set sample rate to 44.1 kHz
// note generic version of call (DRV_BT instead of DRV_BM64) is used
DRV_BT_SamplingRateSet(appData.bt.handle, 44100);
C
void DRV_BM64_SamplingRateSet(
    DRV_HANDLE handle, 
    uint32_t samplingRate
);