TB2026-YDS Firmware
Loading...
Searching...
No Matches
fuel_gauge_debug_t Struct Reference

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.

Detailed Description

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.

Field Documentation

◆ design_cap_raw

uint16_t fuel_gauge_debug_t::design_cap_raw

DesignCap (0x18) as read back.

◆ design_cap_want

uint16_t fuel_gauge_debug_t::design_cap_want

DesignCap value EZ config writes.

◆ full_cap_nom_mah

float fuel_gauge_debug_t::full_cap_nom_mah

FullCapNom: learned nominal full capacity, mAh.

◆ full_cap_rep_mah

float fuel_gauge_debug_t::full_cap_rep_mah

FullCapRep: learned reported full capacity, mAh.

◆ ichg_term_raw

uint16_t fuel_gauge_debug_t::ichg_term_raw

IChgTerm (0x1E) as read back.

◆ ichg_term_want

uint16_t fuel_gauge_debug_t::ichg_term_want

IChgTerm value EZ config writes.

◆ por

bool fuel_gauge_debug_t::por

Status.POR: the gauge reset and lost its configuration.

◆ vempty_raw

uint16_t fuel_gauge_debug_t::vempty_raw

VEmpty (0x3A) as read back.

◆ vempty_want

uint16_t fuel_gauge_debug_t::vempty_want

VEmpty value EZ config writes.


The documentation for this struct was generated from the following file: