56 #ifndef FOXBMS__REDUNDANCY_H_
57 #define FOXBMS__REDUNDANCY_H_
75 #define MRC_CURRENT_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
89 #define MRC_AFE_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
102 #define MRC_CURRENT_SENSOR_MEASUREMENT_TIMEOUT_ms (300u)
112 #define MRC_ALLOWED_NUMBER_OF_INVALID_CELL_VOLTAGES (5u)
154 #ifdef UNITY_UNIT_TEST
155 extern bool TEST_MRC_MeasurementUpdatedAtLeastOnce(uint32_t timestamp, uint32_t previousTimestamp);
158 uint32_t previousTimestamp,
159 uint32_t timeInterval);
160 extern bool TEST_MRC_ValidateCellVoltageMeasurement(
163 extern bool TEST_MRC_ValidateCellTemperatureMeasurement(
168 extern void TEST_MRC_ValidateStringVoltageMeasurement(
171 extern void TEST_MRC_ValidateBatteryVoltageMeasurement(
void);
#define BS_NR_OF_STRINGS
Number of parallel strings in the battery pack.
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