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

Snapshot of the gauge's application-facing outputs. More...

#include <fuel_gauge.h>

Data Fields

float soc_pct
 RepSOC: reported state of charge, %.
float voltage_v
 VCell: cell voltage, V.
float current_ma
 Current: + into the cell (charge), - out (discharge), mA.
float rep_cap_mah
 RepCap: reported remaining capacity, mAh.
float tte_s
 TTE: time to empty, s (only valid while discharging).
float ttf_s
 TTF: time to full, s (only valid while charging).
float age_pct
 Age: present full capacity vs. design capacity, % (cell health).
float die_temp_c
 Temp: IC die temperature (no NTC fitted), degC.
float cycles
 Cycles: accumulated full-charge/discharge equivalents.

Detailed Description

Snapshot of the gauge's application-facing outputs.

Filled in one call by fuel_gauge_read(). All values are already converted to physical units.

Field Documentation

◆ age_pct

float fuel_gauge_data_t::age_pct

Age: present full capacity vs. design capacity, % (cell health).

◆ current_ma

float fuel_gauge_data_t::current_ma

Current: + into the cell (charge), - out (discharge), mA.

◆ cycles

float fuel_gauge_data_t::cycles

Cycles: accumulated full-charge/discharge equivalents.

◆ die_temp_c

float fuel_gauge_data_t::die_temp_c

Temp: IC die temperature (no NTC fitted), degC.

◆ rep_cap_mah

float fuel_gauge_data_t::rep_cap_mah

RepCap: reported remaining capacity, mAh.

◆ soc_pct

float fuel_gauge_data_t::soc_pct

RepSOC: reported state of charge, %.

◆ tte_s

float fuel_gauge_data_t::tte_s

TTE: time to empty, s (only valid while discharging).

◆ ttf_s

float fuel_gauge_data_t::ttf_s

TTF: time to full, s (only valid while charging).

◆ voltage_v

float fuel_gauge_data_t::voltage_v

VCell: cell voltage, V.


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