ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
battery_state_t Struct Reference

User-settable battery state surfaced by the MAX17048 fuel gauge. More...

Data Fields

uint8_t soc_pct
 State-of-charge percent (0..100).
bool charging
 Charger attached (CRATE positive).

Detailed Description

User-settable battery state surfaced by the MAX17048 fuel gauge.

Set from the CLI (--battery <pct> / --charge) before the run and read back by the status overlay; the fuel-gauge register file is laid from this whenever it changes.

Definition at line 93 of file board_periph_i2c_devices.c.

Field Documentation

◆ charging

bool battery_state_t::charging

Charger attached (CRATE positive).

Definition at line 95 of file board_periph_i2c_devices.c.

◆ soc_pct

uint8_t battery_state_t::soc_pct

State-of-charge percent (0..100).

Definition at line 94 of file board_periph_i2c_devices.c.


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