Battery Information Structure
The GetScaledBatteryInfo function returns information about the battery in a data structure of type BatteryInfo.
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;
| Bit name | Bit number | Description |
batteryInstalled | 7 | A battery is installed. |
batteryCharging | 6 | The battery is charging. |
chargerConnected | X | The charger is connected. |
The values of the bits in the flags field are as follows: