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

Set current volume.

Description

Function DRV_BM64_VolumeSet: 

void DRV_BM64_VolumeSet(const DRV_HANDLE handle, uint8_t volume); 

Set volume for current mode (A2DP, HFP etc.) in percent (0-100).

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 
volume 
volume level in percent, 0-100 
Returns

None.

Example
// note generic version of call (DRV_BT instead of DRV_BM64) is used * 
volume = DRV_BT_VolumeGet(appData.bt.handle,50);       // set volume to 50%
C
void DRV_BM64_VolumeSet(
    const DRV_HANDLE handle, 
    uint8_t volume
);