Important: The information in this document is obsolete and should not be used for new development.
Battery Information Structure
TheGetScaledBatteryInfofunction 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 batteryInstalled7 A battery is installed. batteryCharging6 The battery is charging. chargerConnectedX The charger is connected. flagsfield are as follows:
 
  
  
 