79 int32_t packVoltage_mV = 0;
80 int32_t highVoltage_mV = 0;
85 int32_t packVoltage_mV = INT32_MAX;
86 int32_t highVoltage_mV = INT32_MAX;
91 int32_t packVoltage_mV = 0;
97 int32_t packVoltage_mV = 0;
103 int32_t packVoltage_mV = 0;
109 int32_t packVoltage_mV = 4242;
110 int32_t highVoltage_mV = 4242;
115 int32_t packVoltage_mV = 0;
116 int32_t highVoltage_mV = INT32_MAX;
122 int32_t highVoltage_mV = INT32_MAX;
128 int32_t highVoltage_mV = INT32_MAX;
133 int32_t packVoltage_mV = INT32_MAX;
134 int32_t highVoltage_mV = INT32_MAX;
@ DATA_BLOCK_ID_CELL_VOLTAGE
@ DATA_BLOCK_ID_CURRENT_SENSOR
STD_RETURN_TYPE_e PL_CheckStringVoltage(int32_t voltageAfe_mV, int32_t voltageCurrentSensor_mV)
Pack voltage plausibility check between LTC and current sensor values.
plausibility checks for cell voltage and cell temperatures
#define PL_STRING_VOLTAGE_TOLERANCE_mV
Maximum difference between pack voltage measurement from AFE and current sensor.
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceEqualsToleranceMinusOne(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceEqualValue(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceEqualsTolerance(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceINT32MaxPlusTooMuch(void)
static DATA_BLOCK_CURRENT_SENSOR_s currentSensor
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceINT32Max(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceINT32MaxMinus(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceINT32MaxPlus(void)
static DATA_BLOCK_CELL_VOLTAGE_s cellVoltage
void testCheckPackVoltagecellVoltageandcurrentSensorBothMaximum(void)
void testCheckPackVoltagecellVoltageandcurrentSensorDifferenceEqualsTolerancePlusOne(void)
void testCheckPackVoltagecellVoltageandcurrentSensorBothZero(void)