![]() |
Midnight Sun Firmware
|
Runtime Data Storage. More...
#include <adbms_afe.h>
Public Attributes | |
uint16_t | cell_voltages [ADBMS_AFE_MAX_CELLS] |
uint16_t | thermistor_voltages [ADBMS_AFE_MAX_CELL_THERMISTORS] |
uint16_t | board_thermistor_voltages [ADBMS_AFE_MAX_BOARD_THERMISTORS] |
uint16_t | cell_result_lookup [ADBMS_AFE_MAX_CELLS] |
uint16_t | discharge_cell_lookup [ADBMS_AFE_MAX_CELLS] |
AdbmsAfeSettings * | settings |
AdbmsAfeWriteConfigAPacket | config_a [ADBMS_AFE_MAX_DEVICES] |
AdbmsAfeWriteConfigBPacket | config_b [ADBMS_AFE_MAX_DEVICES] |
Runtime Data Storage.
Stores settings, configs, and voltages for all AFE devices
0
corresponds to the first cell/thermistor value of the first AFE device.n * max_x_per_device
corresponds to the first value of the (n+1)th AFE device.uint16_t board_thermistor_voltages[ADBMS_AFE_MAX_BOARD_THERMISTORS] |
Stores thermistor voltage for all board temperature
uint16_t cell_result_lookup[ADBMS_AFE_MAX_CELLS] |
Map raw cell indices read from AFE to cell_voltages
uint16_t cell_voltages[ADBMS_AFE_MAX_CELLS] |
Stores cell voltages for all devices
AdbmsAfeWriteConfigAPacket config_a[ADBMS_AFE_MAX_DEVICES] |
Stores the Configuration of each device in the CFGRA register
AdbmsAfeWriteConfigBPacket config_b[ADBMS_AFE_MAX_DEVICES] |
Stores the Configuration of each device in the CFGRB register
uint16_t discharge_cell_lookup[ADBMS_AFE_MAX_CELLS] |
Map indicies of cell_voltages
to raw cell indices
AdbmsAfeSettings* settings |
Stores settings for AFE devices, set by the user
uint16_t thermistor_voltages[ADBMS_AFE_MAX_CELL_THERMISTORS] |
Stores thermistor voltages for all devices