API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBATTERY_GETBATTERYLEVEL()

Brew Release
Brew MP 1.0.2
See Also
IBATTERY_GetBatteryStatus, IBATTERY_GetBatteryChargerStatus, IBATTERY_IsExternalPowerPresent
Description
This method queries the current battery level. Most significant 16 bits give battery level scale whereas least significant 16 bits will give battery level.
Params
po
[in]:
Pointer to IBattery interface pdwData [in/out]: Place holder for battery level
Interface
  • IBATTERY
Prototype
  •    int IBATTERY_GetBatteryLevel(IBattery *po, uint32 * pdwData)
    
Return
  • SUCCESS on success, Error code otherwise
Side Effect
  • None
Comments
Use GETBATTERYSCALE() and GETBATTERYLEVEL() to get battery level scale and battery level.