![]() |
Midnight Sun Firmware
|
Runtime Data Storage. More...
#include <ltc_afe.h>
Public Attributes | |
uint16_t | cell_voltages [LTC_AFE_MAX_CELLS] |
uint16_t | aux_voltages [LTC_AFE_MAX_THERMISTORS] |
uint16_t | cell_result_lookup [LTC_AFE_MAX_CELLS] |
uint16_t | aux_result_lookup [LTC_AFE_MAX_THERMISTORS] |
uint16_t | discharge_cell_lookup [LTC_AFE_MAX_CELLS] |
LtcAfeSettings * | settings |
LtcAfeWriteConfigPacket * | device_configs |
Runtime Data Storage.
Stores settings, configs, and voltages for all AFE devices
0
corresponds to the first cell/aux 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 aux_result_lookup[LTC_AFE_MAX_THERMISTORS] |
Map raw aux input indices read from AFE to aux_voltages
uint16_t aux_voltages[LTC_AFE_MAX_THERMISTORS] |
Stores aux voltages for all devices
uint16_t cell_result_lookup[LTC_AFE_MAX_CELLS] |
Map raw cell indices read from AFE to cell_voltages
uint16_t cell_voltages[LTC_AFE_MAX_CELLS] |
Stores cell voltages for all devices
LtcAfeWriteConfigPacket* device_configs |
Stores the Configuration of each device in the CFGR register
uint16_t discharge_cell_lookup[LTC_AFE_MAX_CELLS] |
Map indicies of cell_voltages
to raw cell indices
LtcAfeSettings* settings |
Stores settings for AFE devices, set by the user