87 #define DIAG_ID_MAX_FOR_INIT (75u)
219 .pConfigurationOfDiagnosisEntries = &
DIAG_ID_cfg[0],
220 .numberOfFatalErrors = 0u,
#define DATA_WRITE_DATA(...)
@ DATA_BLOCK_ID_ERRORSTATE
void DIAG_ErrorPlausibility(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for plausibility check related events
void DIAG_ErrorUndervoltage(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undervoltage events
void DIAG_ErrorCanTiming(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for CAN related events
void DIAG_I2cPex(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for I2C port expander related events
void DIAG_ErrorCurrentSensor(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_ErrorOvervoltage(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overvoltage events
void DIAG_ErrorAfeDriver(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for AFE module related events
void DIAG_ErrorUndertemperatureDischarge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undertemperature discharge events
void DIAG_ErrorCurrentOnOpenString(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent charge events
void DIAG_ErrorOvertemperatureCharge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overtemperature charge events
void DIAG_Insulation(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
void DIAG_ErrorDeepDischarge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for deep discharge events
void DIAG_FramError(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for FRAM related events
void DIAG_Sbc(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for SBC related events
void DIAG_ErrorPowerMeasurement(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_ErrorHighVoltageMeasurement(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_PlausibilityCheck(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for plausibility check related events
void DIAG_StringContactorFeedback(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for string contactor feedback related events
void DIAG_ErrorOvertemperatureDischarge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overtemperature discharge events
void DIAG_ErrorCurrentMeasurement(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current measurement related events
void DIAG_ErrorOvercurrentCharge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent charge events
void DIAG_ErrorCanRxQueueFull(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for CAN related events
void DIAG_PrechargeContactorFeedback(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for precharge contactor feedback related events
void DIAG_ErrorAfe(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for AFE related events
void DIAG_ErrorOvercurrentDischarge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent discharge events
void DIAG_DummyCallback(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
dummy callback function of diagnosis events
void DIAG_ErrorInterlock(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
Callback function for interlock related diagnosis events.
void DIAG_ErrorUndertemperatureCharge(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undertemperature charge events
void DIAG_ErrorSystemMonitoring(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
Callback function for system monitoring related diagnosis events.
#define DIAG_ID_MAX_FOR_INIT
static DATA_BLOCK_MSL_FLAG_s diag_tableMslFlags
static DATA_BLOCK_RSL_FLAG_s diag_tableRslFlags
void DIAG_UpdateFlags(void)
update function for diagnosis flags
static DATA_BLOCK_MOL_FLAG_s diag_tableMolFlags
f_static_assert(DIAG_ID_MAX_FOR_INIT==(uint16_t) DIAG_ID_MAX, "Both values need to be identical.")
const DIAG_DATABASE_SHIM_s diag_kDatabaseShim
DIAG_ID_CFG_s DIAG_ID_cfg[]
static DATA_BLOCK_ERRORSTATE_s diag_tableErrorFlags
Diagnostic module configuration header.
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
#define DIAG_ERROR_CURRENT_SENSITIVITY_MOL
#define DIAG_ERROR_LTC_MUX_SENSITIVITY
#define DIAG_DELAY_REDUNDANCY_MEAS_ERROR_ms
#define DIAG_ERROR_SENSITIVITY_HIGH
#define DIAG_DELAY_DEEP_DISCHARGE_ms
#define DIAG_ERROR_INTERLOCK_SENSITIVITY
#define DIAG_ERROR_CURRENT_SENSITIVITY_RSL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
#define DIAG_ERROR_SENSITIVITY_FIFTH_EVENT
#define DIAG_DELAY_TEMPERATURE_ms
#define DIAG_DELAY_AFE_ms
#define DIAG_DELAY_CONTACTOR_FEEDBACK_ms
@ DIAG_EVALUATION_ENABLED
#define DIAG_DELAY_INTERLOCK_ms
#define DIAG_DELAY_OVERCURRENT_ms
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL
#define DIAG_DELAY_REDUNDANCY_MEAS_TIMEOUT_ms
#define DIAG_DELAY_PL_PACK_VOLTAGE_ms
#define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
#define DIAG_ERROR_CAN_SENSOR_SENSITIVITY
#define DIAG_DELAY_EC_CC_TIMING_ms
#define DIAG_ERROR_SENSITIVITY_TENTH_EVENT
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_POWER_MEASUREMENT_ERROR
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
@ DIAG_ID_AFE_CELL_VOLTAGE_MEAS_ERROR
@ DIAG_ID_CAN_CC_RESPONDING
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
@ DIAG_ID_AFE_CELL_TEMPERATURE_MEAS_ERROR
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
@ DIAG_ID_INSULATION_MEASUREMENT_VALID
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
@ DIAG_ID_PLAUSIBILITY_CELL_TEMP
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
@ DIAG_ID_AFE_COM_INTEGRITY
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
@ DIAG_ID_INSULATION_GROUND_ERROR
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_FRAM_READ_CRC_ERROR
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_LOW_INSULATION_RESISTANCE_ERROR
@ DIAG_ID_CURRENT_ON_OPEN_STRING
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
@ DIAG_ID_CURRENT_MEASUREMENT_ERROR
@ DIAG_ID_CAN_RX_QUEUE_FULL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
@ DIAG_ID_CAN_EC_RESPONDING
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_INTERLOCK_FEEDBACK
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_SYSTEMMONITORING
@ DIAG_ID_LOW_INSULATION_RESISTANCE_WARNING
#define DIAG_CAN_TIMING
Value that is written into the field that describes whether CAN timing diag entries should be generat...
#define DIAG_ERROR_CURRENT_SENSITIVITY_MSL
#define DIAG_ERROR_LTC_PEC_SENSITIVITY
#define DIAG_DELAY_OVERVOLTAGE_ms
#define DIAG_CAN_SENSOR_PRESENT
Value that is written into the field that describes whether current sensor diag entries should be gen...
#define DIAG_DELAY_SBC_ms
#define DIAG_DELAY_DISCARDED
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
#define DIAG_ERROR_CAN_TIMING_SENSITIVITY
#define DIAG_ERROR_SENSITIVITY_FIRST_EVENT
#define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
#define DIAG_DELAY_CAN_TIMING_ms
#define DIAG_DELAY_CURRENT_SENSOR_ms
#define DIAG_DELAY_UNDERVOLTAGE_ms
#define DIAG_ERROR_LTC_SPI_SENSITIVITY
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
#define NULL_PTR
Null pointer.
General macros and definitions for the whole platform.
#define REPEAT_U(x, n)
Macro that helps to generate a series of literals (for array initializers).
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_HEADER_s header
DATA_BLOCK_ERRORSTATE_s * pTableError
uint8_t nrOfConfiguredDiagnosisEntries