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

Gets the current status of the BM71 Bluetooth driver module (BM71-specific).

Description

Function DRV_BM71_GetPowerStatus: 

DRV_BM71_DRVR_STATUS DRV_BM71_GetPowerStatus( void ); 

This routine provides the current status (power on/off/ready) of the BM71 Bluetooth driver module passed back as type DRV_BM71_DRVR_STATUS enum.

Preconditions

DRV_BM71_Initialize must have been called to initialize the driver instance.

Returns

Driver status, encoded as type DRV_BM71_DRVR_STATUS enum.

Example
case APP_STATE_WAIT_INIT:
{
   // note generic version of call (DRV_BT instead of DRV_BM71) is used
   if (DRV_BT_STATUS_READY == DRV_BT_GetPowerStatus())
   {           
       appData.state=APP_STATE_IDLE;
       // start can processing audio
   }
}
break;
C
DRV_BM71_DRVR_STATUS DRV_BM71_GetPowerStatus();