Midnight Sun Firmware
Loading...
Searching...
No Matches
AdbmsAfeStorage

Runtime Data Storage. More...

#include <adbms_afe.h>

Collaboration diagram for AdbmsAfeStorage:

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]
 
AdbmsAfeSettingssettings
 
AdbmsAfeWriteConfigAPacket config_a [ADBMS_AFE_MAX_DEVICES]
 
AdbmsAfeWriteConfigBPacket config_b [ADBMS_AFE_MAX_DEVICES]
 

Detailed Description

Runtime Data Storage.

Stores settings, configs, and voltages for all AFE devices

Note
Raw indices mean
  • Index 0 corresponds to the first cell/thermistor value of the first AFE device.
  • Index n * max_x_per_device corresponds to the first value of the (n+1)th AFE device.
  • Each AFE's data (voltages, lookups, etc.) is stored contiguously before the next AFE's data.

Member Data Documentation

◆ board_thermistor_voltages

uint16_t board_thermistor_voltages[ADBMS_AFE_MAX_BOARD_THERMISTORS]

Stores thermistor voltage for all board temperature

◆ cell_result_lookup

uint16_t cell_result_lookup[ADBMS_AFE_MAX_CELLS]

Map raw cell indices read from AFE to cell_voltages

◆ cell_voltages

uint16_t cell_voltages[ADBMS_AFE_MAX_CELLS]

Stores cell voltages for all devices

◆ config_a

AdbmsAfeWriteConfigAPacket config_a[ADBMS_AFE_MAX_DEVICES]

Stores the Configuration of each device in the CFGRA register

◆ config_b

AdbmsAfeWriteConfigBPacket config_b[ADBMS_AFE_MAX_DEVICES]

Stores the Configuration of each device in the CFGRB register

◆ discharge_cell_lookup

uint16_t discharge_cell_lookup[ADBMS_AFE_MAX_CELLS]

Map indicies of cell_voltages to raw cell indices

◆ settings

AdbmsAfeSettings* settings

Stores settings for AFE devices, set by the user

◆ thermistor_voltages

uint16_t thermistor_voltages[ADBMS_AFE_MAX_CELL_THERMISTORS]

Stores thermistor voltages for all devices


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