|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
void DIAG_ErrorLtc(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for LTC module related events
#define DIAG_ERROR_CURRENT_SENSITIVITY_MOL
@ DIAG_EVALUATION_ENABLED
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_CAN_EC_RESPONDING
Diagnostic module configuration header.
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_ERROR_TEMPERATURE_SENSITIVITY_MOL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
#define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
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
static DATA_BLOCK_RSL_FLAG_s diag_tableRslFlags
#define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
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
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
static DATA_BLOCK_MOL_FLAG_s diag_tableMolFlags
#define DATA_WRITE_DATA(...)
void DIAG_ErrorPowerMeasurement(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for current sensor related events
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
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
#define DIAG_ERROR_SENSITIVITY_FIRST_EVENT
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
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
const DIAG_DATABASE_SHIM_s diag_kDatabaseShim
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
#define DIAG_CAN_SENSOR_PRESENT
Value that is written into the field that describes whether current sensor diag entries should be gen...
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
#define DIAG_ERROR_CAN_TIMING_SENSITIVITY
static DATA_BLOCK_MSL_FLAG_s diag_tableMslFlags
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
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
@ DIAG_ID_INSULATION_GROUND_ERROR
static DATA_BLOCK_ERRORSTATE_s diag_tableErrorFlags
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_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
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
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_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
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
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
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
#define DIAG_ERROR_SENSITIVITY_HIGH
DATA_BLOCK_HEADER_s header
DIAG_ID_CFG_s DIAG_ID_cfg[]
DATA_BLOCK_HEADER_s header
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
@ DIAG_ID_CAN_CC_RESPONDING
#define DIAG_ERROR_LTC_MUX_SENSITIVITY
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
@ DIAG_RECORDING_DISABLED
#define DIAG_CAN_TIMING
Value that is written into the field that describes whether CAN timing diag entries should be generat...
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
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
@ DIAG_ID_CURRENT_ON_OPEN_STRING
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.
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_INTERLOCK_FEEDBACK
@ DIAG_ID_INSULATION_ERROR
DATA_BLOCK_HEADER_s header
#define DIAG_ERROR_CURRENT_SENSITIVITY_MSL
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
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
void DIAG_Insulation(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
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_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
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
DATA_BLOCK_HEADER_s header
@ DIAG_ID_INSULATION_MEASUREMENT_INVALID
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
@ DIAG_ID_MEASUREMENT_IC_CELL_VOLTAGE_MEAS_ERROR
@ DATA_BLOCK_ID_ERRORSTATE
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
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
void DIAG_ErrorMeasurementIc(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for measurement IC related events
#define DIAG_ERROR_LTC_SPI_SENSITIVITY
@ DIAG_ID_MEASUREMENT_IC_CELL_TEMPERATURE_MEAS_ERROR
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
@ DIAG_ID_SYSTEMMONITORING
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
#define DIAG_ERROR_CURRENT_SENSITIVITY_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
#define DIAG_ERROR_SENSITIVITY_TENTH_EVENT
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
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
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
#define DIAG_ERROR_INTERLOCK_SENSITIVITY
#define DIAG_ERROR_CAN_SENSOR_SENSITIVITY
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
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
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
#define DIAG_ERROR_LTC_PEC_SENSITIVITY
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
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
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
DATA_BLOCK_ERRORSTATE_s * pTableError
@ DIAG_EVALUATION_DISABLED
@ DIAG_ID_PLAUSIBILITY_CELL_TEMP
@ DIAG_ID_POWER_MEASUREMENT_ERROR
@ DIAG_ID_CURRENT_MEASUREMENT_ERROR
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_UpdateFlags(void)
update function for diagnosis flags
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
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
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL