|
foxBMS
1.0.1
The foxBMS Battery Management System API Documentation
|
Go to the documentation of this file.
56 #ifndef FOXBMS__DIAG_CFG_H_
57 #define FOXBMS__DIAG_CFG_H_
67 #define DIAG_DESCRIPTION_LENGTH (40)
69 #define DIAG_ERROR_SENSITIVITY_FIRST_EVENT (0)
70 #define DIAG_ERROR_SENSITIVITY_THIRD_EVENT (2)
71 #define DIAG_ERROR_SENSITIVITY_FIFTH_EVENT (4)
72 #define DIAG_ERROR_SENSITIVITY_TENTH_EVENT (9)
74 #define DIAG_ERROR_SENSITIVITY_HIGH (0)
75 #define DIAG_ERROR_SENSITIVITY_MID (5)
76 #define DIAG_ERROR_SENSITIVITY_LOW (10)
78 #define DIAG_ERROR_INTERLOCK_SENSITIVITY (10)
80 #define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL (500)
81 #define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL (500)
82 #define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL (500)
85 #define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL (500)
87 #define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL (500)
89 #define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL (500)
92 #define DIAG_ERROR_CURRENT_SENSITIVITY_MSL (500)
94 #define DIAG_ERROR_CURRENT_SENSITIVITY_RSL (500)
96 #define DIAG_ERROR_CURRENT_SENSITIVITY_MOL (500)
98 #define DIAG_ERROR_LTC_PEC_SENSITIVITY (5)
99 #define DIAG_ERROR_LTC_MUX_SENSITIVITY (5)
100 #define DIAG_ERROR_LTC_SPI_SENSITIVITY (5)
102 #define DIAG_ERROR_CAN_TIMING_SENSITIVITY (100)
103 #define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY (100)
104 #define DIAG_ERROR_CAN_SENSOR_SENSITIVITY (100)
107 #define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY (20)
110 #define DIAG_MAX_ENTRIES_OF_ERROR (5)
223 #if CHECK_CAN_TIMING == true
224 #define DIAG_CAN_TIMING (DIAG_EVALUATION_ENABLED)
226 #define DIAG_CAN_TIMING (DIAG_EVALUATION_DISABLED)
234 #if CURRENT_SENSOR_PRESENT == true
235 #define DIAG_CAN_SENSOR_PRESENT (DIAG_EVALUATION_ENABLED)
237 #define DIAG_CAN_SENSOR_PRESENT (DIAG_EVALUATION_DISABLED)
enum DIAG_IMPACT_LEVEL DIAG_IMPACT_LEVEL_e
@ DIAG_EVALUATION_ENABLED
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_CAN_EC_RESPONDING
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
#define DIAG_DESCRIPTION_LENGTH
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
void DIAG_CALLBACK_FUNCTION_f(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
function type for diag callbacks
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
Configuration of the battery system (e.g., number of battery modules, battery cells,...
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
struct DIAG_DEV DIAG_DEV_s
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
uint8_t description[DIAG_DESCRIPTION_LENGTH]
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
@ DIAG_ID_INSULATION_GROUND_ERROR
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
const DIAG_DATABASE_SHIM_s diag_kDatabaseShim
enum DIAG_RECORDING DIAG_RECORDING_e
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
@ DIAG_ID_CAN_CC_RESPONDING
DIAG_ID_CFG_s DIAG_ID_cfg[DIAG_ID_MAX]
void DIAG_UpdateFlags(void)
update function for diagnosis flags
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
@ DIAG_RECORDING_DISABLED
enum DIAG_EVALUATE DIAG_EVALUATE_e
DIAG_EVALUATE_e enable_evaluate
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_ON_OPEN_STRING
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
DATA_BLOCK_RSL_FLAG_s * pTableRsl
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
enum DIAG_EVENT DIAG_EVENT_e
struct DIAG_CH_CFG DIAG_ID_CFG_s
@ DIAG_ID_INTERLOCK_FEEDBACK
@ DIAG_ID_INSULATION_ERROR
DIAG_RECORDING_e enable_recording
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
@ DIAG_ID_INSULATION_MEASUREMENT_INVALID
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
@ DIAG_ID_MEASUREMENT_IC_CELL_VOLTAGE_MEAS_ERROR
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_MEASUREMENT_IC_CELL_TEMPERATURE_MEAS_ERROR
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
@ DIAG_ID_SYSTEMMONITORING
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
DIAG_CALLBACK_FUNCTION_f * fpCallback
DATA_BLOCK_MSL_FLAG_s * pTableMsl
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
struct DIAG_DATABASE_SHIM DIAG_DATABASE_SHIM_s
DATA_BLOCK_MOL_FLAG_s * pTableMol
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
@ 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
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
Database configuration header.
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL