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

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

Description

Function DRV_BM64_GetPowerStatus: 

DRV_BM64_DRVR_STATUS DRV_BM64_GetPowerStatus( void ); 

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

Preconditions

DRV_BM64_Initialize must have been called to initialize the driver instance.

Returns

Driver status, encoded as type DRV_BM64_DRVR_STATUS enum.

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