foxBMS-UnitTests  1.0.0
The foxBMS Unit Tests API Documentation
diag_cfg.c
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der
4  * angewandten Forschung e.V. All rights reserved.
5  *
6  * BSD 3-Clause License
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions are met:
9  * 1. Redistributions of source code must retain the above copyright notice,
10  * this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  * 3. Neither the name of the copyright holder nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28  * POSSIBILITY OF SUCH DAMAGE.
29  *
30  * We kindly request you to use one or more of the following phrases to refer
31  * to foxBMS in your hardware, software, documentation or advertising
32  * materials:
33  *
34  * ″This product uses parts of foxBMS®″
35  *
36  * ″This product includes parts of foxBMS®″
37  *
38  * ″This product is derived from foxBMS®″
39  *
40  */
41 
42 /**
43  * @file diag_cfg.c
44  * @author foxBMS Team
45  * @date 2019-11-28 (date of creation)
46  * @updated 2020-01-17 (date of last update)
47  * @ingroup ENGINE_CONFIGURATION
48  * @prefix DIAG
49  *
50  * @brief Diagnostic module configuration
51  *
52  * The configuration of the different diagnosis events defined in diag_cfg.h is set in the array
53  * DIAG_ID_cfg[], e.g. initialization errors or runtime errors.
54  *
55  * Every entry of the DIAG_ID_cfg[] array consists of
56  * - name of the diagnosis event (defined in diag_cfg.h)
57  * - type of diagnosis event
58  * - diagnosis sensitivity (after how many occurrences event is counted as error)
59  * - enabling of the recording for diagnosis event
60  * - enabling of the diagnosis event
61  * - callback function for diagnosis event if wished, otherwise DIAG_dummy_callback
62  *
63  * The system monitoring configuration defined in diag_cfg.h is set in the array
64  * sysm_ch_cfg[]. The system monitoring is at the moment only used for
65  * supervising the cyclic/periodic tasks.
66  *
67  * Every entry of the sysm_ch_cfg[] consists of
68  * - enum of monitored object
69  * - type of monitored object (at the moment only DIAG_SYSMON_CYCLICTASK is supported)
70  * - maximum delay in [ms] in which the object needs to call the SYSM_Notify function defined in diag.c
71  * - enabling of the recording for system monitoring
72  * - enabling of the system monitoring for the monitored object
73  * - callback function if system monitoring notices an error if wished, otherwise SYSM_DummyCallback
74  */
75 
76 /*========== Includes =======================================================*/
77 #include "general.h"
78 
79 #include "diag_cfg.h"
80 
81 #include "database.h"
82 #include "diag_cbs.h"
83 
84 /*========== Macros and Definitions =========================================*/
85 
86 /*========== Static Constant and Variable Definitions =======================*/
87 /** local copy of the #DATA_BLOCK_ERRORSTATE_s table */
89 
90 /** local copy of the #DATA_BLOCK_MOL_FLAG_s table */
92 
93 /** local copy of the #DATA_BLOCK_RSL_FLAG_s table */
95 
96 /** local copy of the #DATA_BLOCK_MSL_FLAG_s table */
98 
101  .pTableMol = &diag_tableMolFlags,
102  .pTableRsl = &diag_tableRslFlags,
103  .pTableMsl = &diag_tableMslFlags,
104 };
105 
106 /*========== Static Function Prototypes =====================================*/
107 
108 /*========== Extern Constant and Variable Definitions =======================*/
109 /** variable tracking the state of the diag channels */
111  /* clang-format off */
115  /* TODO: reactivate interlock feedback when HW ready */
117 
121 
125 
129 
133 
137 
141 
145 
149 
153 
157 
160 
162 
168 
169  /* Communication events */
189 
191 
194 
199 
203 
204  /* clang-format on */
205 };
206 
208  .nr_of_ch = sizeof(DIAG_ID_cfg) / sizeof(DIAG_ID_CFG_s),
209  .ch_cfg = &DIAG_ID_cfg[0],
210 };
211 
212 /*========== Static Function Implementations ================================*/
213 
214 /*========== Extern Function Implementations ================================*/
215 void DIAG_UpdateFlags(void) {
217 }
218 
219 /*========== Externalized Static Function Implementations (Unit Test) =======*/
DIAG_ErrorLtc
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
Definition: diag_cbs_ltc.c:68
DATA_BLOCK_MOL_FLAG
Definition: database_cfg.h:465
DIAG_ERROR_CURRENT_SENSITIVITY_MOL
#define DIAG_ERROR_CURRENT_SENSITIVITY_MOL
Definition: diag_cfg.h:96
DIAG_EVALUATION_ENABLED
@ DIAG_EVALUATION_ENABLED
Definition: diag_cfg.h:208
general.h
TODO.
DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:172
DIAG_ID_CAN_EC_RESPONDING
@ DIAG_ID_CAN_EC_RESPONDING
Definition: diag_cfg.h:134
diag_cfg.h
Diagnostic module configuration header.
DIAG_ErrorSystemMonitoring
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.
Definition: diag_cbs_sys-mon.c:70
DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL
Definition: diag_cfg.h:89
DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
Definition: diag_cfg.h:145
DATA_BLOCK_ID_MOL_FLAG
@ DATA_BLOCK_ID_MOL_FLAG
Definition: database_cfg.h:90
DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
Definition: diag_cfg.h:144
DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
Definition: diag_cfg.h:87
DIAG_DATABASE_SHIM
Definition: diag_cfg.h:113
DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
Definition: diag_cfg.h:168
DATA_BLOCK_ID_MSL_FLAG
@ DATA_BLOCK_ID_MSL_FLAG
Definition: database_cfg.h:88
DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
#define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
Definition: diag_cfg.h:103
DIAG_PrechargeContactorFeedback
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
Definition: diag_cbs_contactor.c:88
diag_tableRslFlags
static DATA_BLOCK_RSL_FLAG_s diag_tableRslFlags
Definition: diag_cfg.c:94
DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
#define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
Definition: diag_cfg.h:107
DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:157
DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
Definition: diag_cfg.h:160
DIAG_ErrorPlausibility
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
Definition: diag_cbs_plausibility.c:68
DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
Definition: diag_cfg.h:161
diag_tableMolFlags
static DATA_BLOCK_MOL_FLAG_s diag_tableMolFlags
Definition: diag_cfg.c:91
DATA_WRITE_DATA
#define DATA_WRITE_DATA(...)
Definition: database.h:82
DIAG_ID_SBC_RSTB_STATE
@ DIAG_ID_SBC_RSTB_STATE
Definition: diag_cfg.h:182
DIAG_ErrorPowerMeasurement
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
Definition: diag_cbs_power-measurement.c:68
DIAG_ID_CONFIGASSERT
@ DIAG_ID_CONFIGASSERT
Definition: diag_cfg.h:127
DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:154
DIAG_CH_CFG
Definition: diag_cfg.h:260
DIAG_ErrorCurrentOnOpenString
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
Definition: diag_cbs_current.c:268
DIAG_ERROR_SENSITIVITY_FIRST_EVENT
#define DIAG_ERROR_SENSITIVITY_FIRST_EVENT
Definition: diag_cfg.h:69
DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
Definition: diag_cfg.h:142
DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
Definition: diag_cfg.h:141
DIAG_PlausibilityCheck
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
Definition: diag_cbs_plausibility.c:88
DATA_BLOCK_ID_RSL_FLAG
@ DATA_BLOCK_ID_RSL_FLAG
Definition: database_cfg.h:89
diag_kDatabaseShim
const DIAG_DATABASE_SHIM_s diag_kDatabaseShim
Definition: diag_cfg.c:99
DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
Definition: diag_cfg.h:167
DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:148
DIAG_CAN_SENSOR_PRESENT
#define DIAG_CAN_SENSOR_PRESENT
Value that is written into the field that describes whether current sensor diag entries should be gen...
Definition: diag_cfg.h:235
DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:149
DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:150
DIAG_ERROR_CAN_TIMING_SENSITIVITY
#define DIAG_ERROR_CAN_TIMING_SENSITIVITY
Definition: diag_cfg.h:102
DIAG_DEV::nr_of_ch
uint8_t nr_of_ch
Definition: diag_cfg.h:277
diag_tableMslFlags
static DATA_BLOCK_MSL_FLAG_s diag_tableMslFlags
Definition: diag_cfg.c:97
DIAG_StringContactorFeedback
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
Definition: diag_cbs_contactor.c:68
DIAG_ID_CURRENT_SENSOR_RESPONDING
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
Definition: diag_cfg.h:135
DIAG_ID_INSULATION_GROUND_ERROR
@ DIAG_ID_INSULATION_GROUND_ERROR
Definition: diag_cfg.h:195
diag_tableErrorFlags
static DATA_BLOCK_ERRORSTATE_s diag_tableErrorFlags
Definition: diag_cfg.c:88
DIAG_ErrorUndertemperatureDischarge
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
Definition: diag_cbs_temperature.c:170
DIAG_ID_SBC_FIN_STATE
@ DIAG_ID_SBC_FIN_STATE
Definition: diag_cfg.h:181
DIAG_ErrorOvertemperatureCharge
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
Definition: diag_cbs_temperature.c:68
DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
Definition: diag_cfg.h:170
DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:153
DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
Definition: diag_cfg.h:81
DIAG_ErrorOvercurrentCharge
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
Definition: diag_cbs_current.c:68
DIAG_ErrorCurrentSensor
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
Definition: diag_cbs_current-sensor.c:68
DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:166
DIAG_ID_OPEN_WIRE
@ DIAG_ID_OPEN_WIRE
Definition: diag_cfg.h:176
DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:186
DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:156
DIAG_ErrorOvercurrentDischarge
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
Definition: diag_cbs_current.c:150
DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:180
DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:184
DIAG_ERROR_SENSITIVITY_HIGH
#define DIAG_ERROR_SENSITIVITY_HIGH
Definition: diag_cfg.h:74
DATA_BLOCK_MOL_FLAG::header
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:469
DIAG_ID_cfg
DIAG_ID_CFG_s DIAG_ID_cfg[]
Definition: diag_cfg.c:110
DIAG_RECORDING_ENABLED
@ DIAG_RECORDING_ENABLED
Definition: diag_cfg.h:242
diag_cbs.h
Diagnosis driver header.
DATA_BLOCK_MSL_FLAG::header
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:427
DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
Definition: diag_cfg.h:163
DIAG_ID_CAN_CC_RESPONDING
@ DIAG_ID_CAN_CC_RESPONDING
Definition: diag_cfg.h:133
DIAG_ERROR_LTC_MUX_SENSITIVITY
#define DIAG_ERROR_LTC_MUX_SENSITIVITY
Definition: diag_cfg.h:99
DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:159
DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
Definition: diag_cfg.h:162
DIAG_ID_LTC_MUX
@ DIAG_ID_LTC_MUX
Definition: diag_cfg.h:130
DIAG_RECORDING_DISABLED
@ DIAG_RECORDING_DISABLED
Definition: diag_cfg.h:243
DIAG_CAN_TIMING
#define DIAG_CAN_TIMING
Value that is written into the field that describes whether CAN timing diag entries should be generat...
Definition: diag_cfg.h:224
DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:187
DIAG_ErrorOvervoltage
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
Definition: diag_cbs_voltage.c:68
DIAG_ID_CURRENT_ON_OPEN_STRING
@ DIAG_ID_CURRENT_ON_OPEN_STRING
Definition: diag_cfg.h:174
DIAG_ErrorInterlock
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.
Definition: diag_cbs_interlock.c:68
DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
Definition: diag_cfg.h:80
DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
Definition: diag_cfg.h:177
DIAG_ID_LTC_SPI
@ DIAG_ID_LTC_SPI
Definition: diag_cfg.h:128
DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:155
DIAG_ID_LTC_CONFIG
@ DIAG_ID_LTC_CONFIG
Definition: diag_cfg.h:131
DIAG_ID_INTERLOCK_FEEDBACK
@ DIAG_ID_INTERLOCK_FEEDBACK
Definition: diag_cfg.h:178
DIAG_ID_INSULATION_ERROR
@ DIAG_ID_INSULATION_ERROR
Definition: diag_cfg.h:194
DATA_BLOCK_RSL_FLAG::header
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:449
DIAG_ERROR_CURRENT_SENSITIVITY_MSL
#define DIAG_ERROR_CURRENT_SENSITIVITY_MSL
Definition: diag_cfg.h:92
DIAG_ErrorUndervoltage
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
Definition: diag_cbs_voltage.c:102
DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:169
DIAG_Insulation
void DIAG_Insulation(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
Definition: diag_cbs_insulation.c:68
DIAG_DummyCallback
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
Definition: diag_cbs_dummy.c:68
DIAG_ErrorOvertemperatureDischarge
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
Definition: diag_cbs_temperature.c:102
DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
Definition: diag_cfg.h:136
DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
Definition: diag_cfg.h:140
DATA_BLOCK_ERRORSTATE::header
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:324
DIAG_ID_INSULATION_MEASUREMENT_INVALID
@ DIAG_ID_INSULATION_MEASUREMENT_INVALID
Definition: diag_cfg.h:193
DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:191
DATA_BLOCK_MSL_FLAG
Definition: database_cfg.h:423
DIAG_ID_MEASUREMENT_IC_CELL_VOLTAGE_MEAS_ERROR
@ DIAG_ID_MEASUREMENT_IC_CELL_VOLTAGE_MEAS_ERROR
Definition: diag_cfg.h:137
DIAG_DEV
Definition: diag_cfg.h:276
DATA_BLOCK_ID_ERRORSTATE
@ DATA_BLOCK_ID_ERRORSTATE
Definition: database_cfg.h:83
DIAG_ErrorCanTiming
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
Definition: diag_cbs_can.c:68
DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:173
DIAG_ErrorMeasurementIc
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
Definition: diag_cbs_mic.c:68
DIAG_ERROR_LTC_SPI_SENSITIVITY
#define DIAG_ERROR_LTC_SPI_SENSITIVITY
Definition: diag_cfg.h:100
DATA_BLOCK_ERRORSTATE
Definition: database_cfg.h:320
database.h
Database module header.
DATA_BLOCK_RSL_FLAG
Definition: database_cfg.h:445
DIAG_ID_MEASUREMENT_IC_CELL_TEMPERATURE_MEAS_ERROR
@ DIAG_ID_MEASUREMENT_IC_CELL_TEMPERATURE_MEAS_ERROR
Definition: diag_cfg.h:138
DIAG_ID_STRING_CONTACTOR_FEEDBACK
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:179
DIAG_ID_SYSTEMMONITORING
@ DIAG_ID_SYSTEMMONITORING
Definition: diag_cfg.h:126
DIAG_ID_CAN_TIMING
@ DIAG_ID_CAN_TIMING
Definition: diag_cfg.h:132
DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:185
DIAG_ERROR_CURRENT_SENSITIVITY_RSL
#define DIAG_ERROR_CURRENT_SENSITIVITY_RSL
Definition: diag_cfg.h:94
DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:152
DIAG_ERROR_SENSITIVITY_TENTH_EVENT
#define DIAG_ERROR_SENSITIVITY_TENTH_EVENT
Definition: diag_cfg.h:72
DIAG_ID_FLASHCHECKSUM
@ DIAG_ID_FLASHCHECKSUM
Definition: diag_cfg.h:125
DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:190
DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
Definition: diag_cfg.h:171
DIAG_ErrorDeepDischarge
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
Definition: diag_cbs_deep-discharge.c:69
DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:183
DIAG_ERROR_INTERLOCK_SENSITIVITY
#define DIAG_ERROR_INTERLOCK_SENSITIVITY
Definition: diag_cfg.h:78
DIAG_ERROR_CAN_SENSOR_SENSITIVITY
#define DIAG_ERROR_CAN_SENSOR_SENSITIVITY
Definition: diag_cfg.h:104
diag_device
DIAG_DEV_s diag_device
Definition: diag_cfg.c:207
DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
Definition: diag_cfg.h:147
DIAG_Sbc
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
Definition: diag_cbs_sbc.c:68
DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
Definition: diag_cfg.h:146
DIAG_ERROR_LTC_PEC_SENSITIVITY
#define DIAG_ERROR_LTC_PEC_SENSITIVITY
Definition: diag_cfg.h:98
DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
Definition: diag_cfg.h:164
DIAG_ErrorUndertemperatureCharge
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
Definition: diag_cbs_temperature.c:136
DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:151
DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
Definition: diag_cfg.h:165
DIAG_DATABASE_SHIM::pTableError
DATA_BLOCK_ERRORSTATE_s * pTableError
Definition: diag_cfg.h:114
DIAG_EVALUATION_DISABLED
@ DIAG_EVALUATION_DISABLED
Definition: diag_cfg.h:209
DIAG_ID_PLAUSIBILITY_CELL_TEMP
@ DIAG_ID_PLAUSIBILITY_CELL_TEMP
Definition: diag_cfg.h:139
DIAG_ID_POWER_MEASUREMENT_ERROR
@ DIAG_ID_POWER_MEASUREMENT_ERROR
Definition: diag_cfg.h:192
DIAG_ID_CURRENT_MEASUREMENT_ERROR
@ DIAG_ID_CURRENT_MEASUREMENT_ERROR
Definition: diag_cfg.h:188
DIAG_ErrorHighVoltageMeasurement
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
Definition: diag_cbs_voltage.c:136
DIAG_UpdateFlags
void DIAG_UpdateFlags(void)
update function for diagnosis flags
Definition: diag_cfg.c:215
DIAG_ID_DEEP_DISCHARGE_DETECTED
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
Definition: diag_cfg.h:175
DIAG_ErrorCurrentMeasurement
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
Definition: diag_cbs_current.c:231
DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
Definition: diag_cfg.h:85
DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:158
DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
Definition: diag_cfg.h:82
DIAG_ID_LTC_PEC
@ DIAG_ID_LTC_PEC
Definition: diag_cfg.h:129
DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:189
DATA_BLOCKHEADER::uniqueId
DATA_BLOCK_ID_e uniqueId
Definition: database_cfg.h:109
DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL
Definition: diag_cfg.h:143