|
PER Firmware
|
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 |
Per-ADBMS module measurements, config, and error flags.
| float adbms_module_t::avg_therm_temp |
Average thermistor temperature within this module (Celsius).
| float adbms_module_t::avg_voltage |
Average cell voltage within this module (volts).
| float adbms_module_t::cell_voltages[ADBMS6380_CELL_COUNT] |
Latest cell voltage readings for this module (volts).
| int16_t adbms_module_t::cell_voltages_raw[ADBMS6380_CELL_COUNT] |
Latest raw cell voltage readings for this module.
| bool adbms_module_t::err_rega_mismatch |
Set if a read-back REGA does not match cached REGA.
| bool adbms_module_t::err_regb_mismatch |
Set if a read-back REGB does not match cached REGB.
| bool adbms_module_t::is_discharging[ADBMS6380_CELL_COUNT] |
Per-cell discharge enable flags used for balancing. Set by BMS, not higher level logic.
| float adbms_module_t::max_therm_temp |
Maximum thermistor temperature within this module (Celsius).
| float adbms_module_t::max_voltage |
Maximum cell voltage within this module (volts).
| float adbms_module_t::min_therm_temp |
Minimum thermistor temperature within this module (Celsius).
| float adbms_module_t::min_voltage |
Minimum cell voltage within this module (volts).
| 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.
| 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.
| float adbms_module_t::sum_voltage |
Sum of cell voltages within this module (volts).
| float adbms_module_t::therms_temps[ADBMS6380_GPIO_COUNT] |
Latest thermistor temperatures in Celsius
| float adbms_module_t::therms_voltages[ADBMS6380_GPIO_COUNT] |
Latest thermistor readings as volts.