Drivers Libraries Help > BM71 Bluetooth Driver Library > Library Interface > a) System Functions > DRV_BM71_Status Function
MPLAB Harmony Bluetooth Help
DRV_BM71_Status Function

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

Description

Function DRV_BM71_Status: 

SYS_STATUS DRV_BM71_Status( void ); 

This routine provides the current status of the BM71 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_BM71) 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_BM71_Status();