Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > b) Client Setup Functions > DRV_BM64_Close Function
MPLAB Harmony Bluetooth Help
DRV_BM64_Close Function

Close an opened-instance of the BM64 Bluetooth driver.

Description

Function DRV_BM64_Close: 

void DRV_BM64_Close(DRV_HANDLE handle); 

This routine closes an opened-instance of the BM64 driver, invalidating the handle. Any buffers in the driver queue that were submitted by this client will be removed. After calling this routine, the handle passed in "handle" must not be used with any of the remaining driver routines. A new handle must be obtained by calling DRV_BM64_Open before the caller may use the driver again

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
// note generic version of call (DRV_BT instead of DRV_BM64) is used
DRV_BT_Close(appData.bt.handle);

*

C
void DRV_BM64_Close(
    const DRV_HANDLE handle
);