|
TB2026-YDS Firmware
|
Cached battery/charge snapshot, refreshed by power_tick(). More...
#include <power.h>
Data Fields | |
| bool | valid |
| false until the first successful fuel-gauge read | |
| float | soc_pct |
| state of charge, % | |
| float | voltage_v |
| cell voltage, V | |
| float | current_ma |
| bool | charging |
| current into the cell above the charge threshold | |
| bool | external_power |
| input present (INOKB asserted): USB/charger plugged in | |
| float | tte_s |
| time to empty, s (only meaningful while discharging; 0 otherwise) | |
| power_level_t | level |
| charge band derived from soc_pct | |
Cached battery/charge snapshot, refreshed by power_tick().
| bool power_state_t::charging |
current into the cell above the charge threshold
| float power_state_t::current_ma |
| bool power_state_t::external_power |
input present (INOKB asserted): USB/charger plugged in
| power_level_t power_state_t::level |
charge band derived from soc_pct
| float power_state_t::soc_pct |
state of charge, %
| float power_state_t::tte_s |
time to empty, s (only meaningful while discharging; 0 otherwise)
| bool power_state_t::valid |
false until the first successful fuel-gauge read
| float power_state_t::voltage_v |
cell voltage, V