Important: The information in this document is obsolete and should not be used for new development.
Battery Information Structure
TheGetScaledBatteryInfo
function returns information about the battery in a data structure of typeBatteryInfo
.
typedef struct BatteryInfo { unsigned char flags; /* misc flags (see below) */ unsigned char warningLevel; /* scaled warning level (0-255) */ char reserved; /* reserved for internal use */ unsigned char batteryLevel; /* scaled battery level (0-255) */ } BatteryInfo;The values of the bits in the
Bit name Bit number Description batteryInstalled
7 A battery is installed. batteryCharging
6 The battery is charging. chargerConnected
X The charger is connected. flags
field are as follows: