66 .minimumPlausibleVoltage_mV = 0,
72 .minimumPlausibleVoltage_mV = -5000,
91 .minimumPlausibleVoltage_mV = 42,
96 .minimumPlausibleVoltage_mV = INT16_MAX,
101 .minimumPlausibleVoltage_mV = INT16_MIN,
186 TSI_GetMaximumPlausibleTemperature_ExpectAndReturn(50);
187 TSI_GetMinimumPlausibleTemperature_ExpectAndReturn(51);
190 TSI_GetMaximumPlausibleTemperature_ExpectAndReturn(50);
191 TSI_GetMinimumPlausibleTemperature_ExpectAndReturn(50);
194 TSI_GetMaximumPlausibleTemperature_ExpectAndReturn(-50);
195 TSI_GetMinimumPlausibleTemperature_ExpectAndReturn(-51);
198 TSI_GetMaximumPlausibleTemperature_ExpectAndReturn(51);
199 TSI_GetMinimumPlausibleTemperature_ExpectAndReturn(50);
212 const int16_t upperLimit_ddegC = 100;
213 const int16_t lowerLimit_ddegC = -10;
214 TSI_GetMaximumPlausibleTemperature_IgnoreAndReturn(upperLimit_ddegC);
215 TSI_GetMinimumPlausibleTemperature_IgnoreAndReturn(lowerLimit_ddegC);
STD_RETURN_TYPE_e AFE_PlausibilityCheckTempMinMax(const int16_t celltemperature_ddegC)
Cell temperature plausibility check.
STD_RETURN_TYPE_e AFE_PlausibilityCheckVoltageMeasurementRange(const int16_t cellvoltage_mV, const AFE_PLAUSIBILITY_VALUES_s plausibleValues)
Cell voltage measurement range plausibility check.
plausibility checks for cell voltage and cell temperatures
struct definition for plausibility values of an AFE
const int16_t maximumPlausibleVoltage_mV
const int16_t minimumPlausibleVoltage_mV
void testAFE_PlausibilityCheckTempMinMaxVerify(void)
void testAFE_PlausibilityCheckVoltageMeasurementRangeLimitSanity(void)
void testAFE_PlausibilityCheckVoltageMeasurementRange(void)
AFE_PLAUSIBILITY_VALUES_s testGenericLimitsNegative
void testAFE_PlausibilityCheckTempMinMaxBadInputFromAPI(void)
AFE_PLAUSIBILITY_VALUES_s testGenericLimits
#define TEST_ASSERT_PASS_ASSERT(_code_under_test)
assert whether assert macro has passed
#define TEST_ASSERT_FAIL_ASSERT(_code_under_test)
assert whether assert macro has failed