|
TB2026-YDS Firmware
|
Register-level snapshot for the debug page: config vs expected + learned state. More...
#include <fuel_gauge.h>
Data Fields | |
| bool | por |
| Status.POR: the gauge reset and lost its configuration. | |
| uint16_t | design_cap_raw |
| DesignCap (0x18) as read back. | |
| uint16_t | design_cap_want |
| DesignCap value EZ config writes. | |
| uint16_t | ichg_term_raw |
| IChgTerm (0x1E) as read back. | |
| uint16_t | ichg_term_want |
| IChgTerm value EZ config writes. | |
| uint16_t | vempty_raw |
| VEmpty (0x3A) as read back. | |
| uint16_t | vempty_want |
| VEmpty value EZ config writes. | |
| float | full_cap_rep_mah |
| FullCapRep: learned reported full capacity, mAh. | |
| float | full_cap_nom_mah |
| FullCapNom: learned nominal full capacity, mAh. | |
Register-level snapshot for the debug page: config vs expected + learned state.
The *_want fields are the raw values fuel_gauge_init() writes during EZ config, so the UI can flag a gauge that lost its configuration (POR) or holds different constants. Raw capacity LSB is 1 mAh with the board's 5 mOhm sense resistor.
| uint16_t fuel_gauge_debug_t::design_cap_raw |
DesignCap (0x18) as read back.
| uint16_t fuel_gauge_debug_t::design_cap_want |
DesignCap value EZ config writes.
| float fuel_gauge_debug_t::full_cap_nom_mah |
FullCapNom: learned nominal full capacity, mAh.
| float fuel_gauge_debug_t::full_cap_rep_mah |
FullCapRep: learned reported full capacity, mAh.
| uint16_t fuel_gauge_debug_t::ichg_term_raw |
IChgTerm (0x1E) as read back.
| uint16_t fuel_gauge_debug_t::ichg_term_want |
IChgTerm value EZ config writes.
| bool fuel_gauge_debug_t::por |
Status.POR: the gauge reset and lost its configuration.
| uint16_t fuel_gauge_debug_t::vempty_raw |
VEmpty (0x3A) as read back.
| uint16_t fuel_gauge_debug_t::vempty_want |
VEmpty value EZ config writes.