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.
Parameters
  • 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
Comment
Use GETBATTERYSCALE() and GETBATTERYLEVEL() to get battery level scale and battery level.
  • Follow