|
PebbleOS
|
Functions related to getting the battery status. More...
Data Structures | |
| struct | BatteryChargeState |
| Structure for retrieval of the battery charge state. More... | |
| struct | PreciseBatteryChargeState |
| Structure for retrieval of the exact battery charge state. More... | |
Functions related to getting the battery status.
This module contains the functions necessary to find the current charge status.
| struct BatteryChargeState |
| struct PreciseBatteryChargeState |
Structure for retrieval of the exact battery charge state.
| Data Fields | ||
|---|---|---|
| uint32_t | charge_percent | The battery's percentage as a ratio32. |
| bool | is_charging | WARNING: This maps to battery_charge_controller_thinks_we_are_charging() as opposed to the user-facing definition of whether we're charging (100% battery). |
| bool | is_plugged | True if the charger cable is connected. |
| uint8_t | pct | The battery percentage 0-100. |