68 #define VOLTAGE_TASK_RATE 100
69 #define VOLTAGE_CELL_BITS_PER_MV (UV_PER_V/MV_PER_V/LTC6804_VOLTAGE_RESOLUTION)
80 extern unsigned int16
voltage_cell[DC2100A_MAX_BOARDS][DC2100A_NUM_CELLS];
81 extern unsigned int16
voltage_sum[DC2100A_MAX_BOARDS];
119 unsigned int16 vov_value
unsigned int16 voltage_cell[DC2100A_MAX_BOARDS][DC2100A_NUM_CELLS]
Measured cell voltages for each board in LTC6804_VOLTAGE_RESOLUTION.
unsigned int8 voltage_balancestamp
1 if balancers were on when these measurements were taken, otherwise 0
VOLTAGE_CELL_PRESENT_TYPE voltage_cell_present_flags[DC2100A_MAX_BOARDS]
Bitmap indicating if a cell input on the LTC6804 is unpopulated (0), such that UV conditions should b...
void Voltage_Monitor_Task(void)
Executes the Voltage Monitor task.
unsigned int32 voltage_timestamp
Timestamp taken when voltage measurements were started.
unsigned int16 voltage_ov_flags[DC2100A_MAX_BOARDS]
Bitmap indicating if a cell input on the LTC6804 is over-voltage (1) or not (0).
unsigned int16 voltage_sum[DC2100A_MAX_BOARDS]
Measured sum of the cell voltages for this board in LTC6804_SOC_RESOLUTION.
BOOLEAN Voltage_Wakeup_Init(void)
Initializes the parts of the Voltage Module, that need to be initialized upon wakeup of the LTC6804...
unsigned int16 voltage_uv_flags[DC2100A_MAX_BOARDS]
Bitmap indicating if a cell input on the LTC6804 is under-voltage (1) or not (0). ...
API Header File for LTC6804-2 Multicell Battery Monitors.
void Voltage_Init(void)
Initializes the parts of the Voltage Module, that need to be initialized upon power-up of the PIC...
unsigned int16 voltage_vov_threshold
over-voltage threshold in LTC6804_VOLTAGE_RESOLUTION.
unsigned int16 voltage_vuv_threshold
under-voltage threshold in LTC6804_VOLTAGE_RESOLUTION.
BOOLEAN Voltage_UVOV_Thresholds_Set(unsigned int16 vuv_value, unsigned int16 vov_value)
Sets the under-voltage and over-voltage thresholds in all DC2100A in the system.
unsigned int16 VOLTAGE_CELL_PRESENT_TYPE
Bitmap indicating if a cell input on the LTC6804 is populated or shorted.