55 #ifndef FOXBMS__REDUNDANCY_H_
56 #define FOXBMS__REDUNDANCY_H_
73 #define MRC_CURRENT_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
87 #define MRC_MIC_MEASUREMENT_PERIOD_TIMEOUT_ms (250u)
100 #define MRC_CURRENT_SENSOR_MEASUREMENT_TIMEOUT_ms (300u)
110 #define MRC_ALLOWED_NUMBER_OF_INVALID_CELL_VOLTAGES (5u)
152 #ifdef UNITY_UNIT_TEST
153 extern bool TEST_MRC_MeasurementUpdatedAtLeastOnce(uint32_t timestamp, uint32_t previousTimestamp);
156 uint32_t previousTimestamp,
157 uint32_t timeInterval);
158 extern bool TEST_MRC_ValidateCellVoltageMeasurement(
161 extern bool TEST_MRC_ValidateCellTemperatureMeasurement(
166 extern void TEST_MRC_ValidateStringVoltageMeasurement(
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
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_ValidatePackMeasurement(void)
Function to validate the measurements of pack values (string values, pack values)
struct MRC_STATE MRC_STATE_s
STD_RETURN_TYPE_e MRC_ValidateMicMeasurement(void)
Function to validate the measurement between redundant measurement values for cell voltage and cell t...
uint32_t lastRedundancy0CellvoltageTimestamp
uint32_t lastRedundancy0CelltemperatureTimestamp
uint32_t lastStringCurrentTimestamp[BS_NR_OF_STRINGS]
uint32_t lastBaseCellvoltageTimestamp
uint32_t lastBaseCelltemperatureTimestamp
uint32_t lastStringPowerTimestamp[BS_NR_OF_STRINGS]