Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > a) System Functions > DRV_BM64_Status Function
MPLAB Harmony Bluetooth Help
DRV_BM64_Status Function

Gets the current system status of the BM64 Bluetooth driver module.

Description

Function DRV_BM64_Status: 

SYS_STATUS DRV_BM64_Status( void ); 

This routine provides the current status of the BM64 Bluetooth driver module, passed back as type SYS_STATUS.

Preconditions

None.

Returns

Driver status, encoded as type SYS_STATUS enum: 

SYS_STATUS_DEINITIALIZED - Indicates that the driver has been deinitialized SYS_STATUS_READY - Indicates that any previous module operation for the specified module has completed SYS_STATUS_BUSY - Indicates that a previous module operation for the specified module has not yet completed SYS_STATUS_ERROR - Indicates that the specified module is in an error state *

Example
* // note generic version of call (DRV_BT instead of DRV_BM64) is used
if (SYS_STATUS_READY == DRV_BT_Status())
{
    // This means the driver can be opened using the
    // DRV_BT_Open() function.
}
C
SYS_STATUS DRV_BM64_Status();