PER Firmware
Loading...
Searching...
No Matches
adbms_module_t Struct Reference

Per-ADBMS module measurements, config, and error flags. More...

#include <adbms.h>

Public Attributes

float cell_voltages [ADBMS6380_CELL_COUNT]
 
int16_t cell_voltages_raw [ADBMS6380_CELL_COUNT]
 
float min_voltage
 
float max_voltage
 
float avg_voltage
 
float sum_voltage
 
float therms_voltages [ADBMS6380_GPIO_COUNT]
 
float therms_temps [ADBMS6380_GPIO_COUNT]
 
float min_therm_temp
 
float max_therm_temp
 
float avg_therm_temp
 
bool is_discharging [ADBMS6380_CELL_COUNT]
 
uint8_t rega [ADBMS6380_SINGLE_DATA_RAW_SIZE]
 
uint8_t regb [ADBMS6380_SINGLE_DATA_RAW_SIZE]
 
bool err_rega_mismatch
 
bool err_regb_mismatch
 

Detailed Description

Per-ADBMS module measurements, config, and error flags.

Member Data Documentation

◆ avg_therm_temp

float adbms_module_t::avg_therm_temp

Average thermistor temperature within this module (Celsius).

◆ avg_voltage

float adbms_module_t::avg_voltage

Average cell voltage within this module (volts).

◆ cell_voltages

float adbms_module_t::cell_voltages[ADBMS6380_CELL_COUNT]

Latest cell voltage readings for this module (volts).

◆ cell_voltages_raw

int16_t adbms_module_t::cell_voltages_raw[ADBMS6380_CELL_COUNT]

Latest raw cell voltage readings for this module.

◆ err_rega_mismatch

bool adbms_module_t::err_rega_mismatch

Set if a read-back REGA does not match cached REGA.

◆ err_regb_mismatch

bool adbms_module_t::err_regb_mismatch

Set if a read-back REGB does not match cached REGB.

◆ is_discharging

bool adbms_module_t::is_discharging[ADBMS6380_CELL_COUNT]

Per-cell discharge enable flags used for balancing. Set by BMS, not higher level logic.

◆ max_therm_temp

float adbms_module_t::max_therm_temp

Maximum thermistor temperature within this module (Celsius).

◆ max_voltage

float adbms_module_t::max_voltage

Maximum cell voltage within this module (volts).

◆ min_therm_temp

float adbms_module_t::min_therm_temp

Minimum thermistor temperature within this module (Celsius).

◆ min_voltage

float adbms_module_t::min_voltage

Minimum cell voltage within this module (volts).

◆ rega

uint8_t adbms_module_t::rega[ADBMS6380_SINGLE_DATA_RAW_SIZE]

Cached REGA bytes written to the device. Used to compare against read-back data.

◆ regb

uint8_t adbms_module_t::regb[ADBMS6380_SINGLE_DATA_RAW_SIZE]

Cached REGB bytes written to the device. Used to compare against read-back data.

◆ sum_voltage

float adbms_module_t::sum_voltage

Sum of cell voltages within this module (volts).

◆ therms_temps

float adbms_module_t::therms_temps[ADBMS6380_GPIO_COUNT]

Latest thermistor temperatures in Celsius

◆ therms_voltages

float adbms_module_t::therms_voltages[ADBMS6380_GPIO_COUNT]

Latest thermistor readings as volts.


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