56 #ifndef FOXBMS__REDUNDANCY_H_
57 #define FOXBMS__REDUNDANCY_H_
74 #define MRC_CURRENT_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
88 #define MRC_AFE_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
101 #define MRC_CURRENT_SENSOR_MEASUREMENT_TIMEOUT_ms (300u)
111 #define MRC_ALLOWED_NUMBER_OF_INVALID_CELL_VOLTAGES (5u)
153 #ifdef UNITY_UNIT_TEST
154 extern bool TEST_MRC_MeasurementUpdatedAtLeastOnce(uint32_t timestamp, uint32_t previousTimestamp);
157 uint32_t previousTimestamp,
158 uint32_t timeInterval);
159 extern bool TEST_MRC_ValidateCellVoltageMeasurement(
162 extern bool TEST_MRC_ValidateCellTemperatureMeasurement(
167 extern void TEST_MRC_ValidateStringVoltageMeasurement(
170 extern void TEST_MRC_ValidateBatteryVoltageMeasurement(
void);
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
General macros and definitions for the whole platform.
STD_RETURN_TYPE_e MRC_Initialize(void)
Function to initalize redundancy module.
STD_RETURN_TYPE_e MRC_ValidateAfeMeasurement(void)
Function to validate the measurement between redundant measurement values for cell voltage and cell t...
STD_RETURN_TYPE_e MRC_ValidatePackMeasurement(void)
Function to validate the measurements of pack values (string values, pack values)
uint32_t lastBaseCelltemperatureTimestamp
uint32_t lastRedundancy0CelltemperatureTimestamp
uint32_t lastRedundancy0CellVoltageTimestamp
uint32_t lastBaseCellVoltageTimestamp