foxBMS  1.2.1
The foxBMS Battery Management System API Documentation
diag_cfg.c
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2021, Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
4  * All rights reserved.
5  *
6  * SPDX-License-Identifier: BSD-3-Clause
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * 1. Redistributions of source code must retain the above copyright notice, this
12  * list of conditions and the following disclaimer.
13  *
14  * 2. Redistributions in binary form must reproduce the above copyright notice,
15  * this list of conditions and the following disclaimer in the documentation
16  * and/or other materials provided with the distribution.
17  *
18  * 3. Neither the name of the copyright holder nor the names of its
19  * contributors may be used to endorse or promote products derived from
20  * this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25  * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
26  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
31  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32  *
33  * We kindly request you to use one or more of the following phrases to refer to
34  * foxBMS in your hardware, software, documentation or advertising materials:
35  *
36  * - ″This product uses parts of foxBMS®″
37  * - ″This product includes parts of foxBMS®″
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 2021-09-29 (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 /** value of #DIAG_ID_MAX (as a define for the pre-processor) */
86 #define DIAG_ID_MAX_FOR_INIT (73u)
87 
88 static_assert(DIAG_ID_MAX_FOR_INIT == (uint16_t)DIAG_ID_MAX, "Both values need to be identical.");
89 
90 /*========== Static Constant and Variable Definitions =======================*/
91 /** local copy of the #DATA_BLOCK_ERRORSTATE_s table */
93 
94 /** local copy of the #DATA_BLOCK_MOL_FLAG_s table */
96 
97 /** local copy of the #DATA_BLOCK_RSL_FLAG_s table */
99 
100 /** local copy of the #DATA_BLOCK_MSL_FLAG_s table */
102 
105  .pTableMol = &diag_tableMolFlags,
106  .pTableRsl = &diag_tableRslFlags,
107  .pTableMsl = &diag_tableMslFlags,
108 };
109 
110 /*========== Static Function Prototypes =====================================*/
111 
112 /*========== Extern Constant and Variable Definitions =======================*/
113 /** variable tracking the state of the diag channels */
115  /* clang-format off */
119 
121 
125 
129 
133 
137 
141 
145 
149 
153 
157 
161 
164 
166 
172 
173  /* Communication events */
194 
196 
199 
204 
208 
210  /* clang-format on */
211 };
212 
214  .nr_of_ch = sizeof(DIAG_ID_cfg) / sizeof(DIAG_ID_CFG_s),
215  .ch_cfg = &DIAG_ID_cfg[0],
216  .numberOfFatalErrors = 0u,
217  .pFatalErrorLinkTable = {REPEAT_U(NULL_PTR, STRIP(DIAG_ID_MAX_FOR_INIT))},
218 };
219 
220 /*========== Static Function Implementations ================================*/
221 
222 /*========== Extern Function Implementations ================================*/
223 void DIAG_UpdateFlags(void) {
225 }
226 
227 /*========== Externalized Static Function Implementations (Unit Test) =======*/
Database module header.
#define DATA_WRITE_DATA(...)
Definition: database.h:86
@ DATA_BLOCK_ID_RSL_FLAG
Definition: database_cfg.h:89
@ DATA_BLOCK_ID_MSL_FLAG
Definition: database_cfg.h:88
@ DATA_BLOCK_ID_ERRORSTATE
Definition: database_cfg.h:83
@ DATA_BLOCK_ID_MOL_FLAG
Definition: database_cfg.h:90
Diagnosis driver header.
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
Definition: diag_cbs_can.c:68
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
Definition: diag_cbs_i2c.c:67
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_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_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_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
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
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_Insulation(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
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
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
Definition: diag_cbs_can.c:87
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
Definition: diag_cbs_afe.c:68
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
Definition: diag_cfg.c:86
static DATA_BLOCK_MSL_FLAG_s diag_tableMslFlags
Definition: diag_cfg.c:101
static DATA_BLOCK_RSL_FLAG_s diag_tableRslFlags
Definition: diag_cfg.c:98
void DIAG_UpdateFlags(void)
update function for diagnosis flags
Definition: diag_cfg.c:223
static DATA_BLOCK_MOL_FLAG_s diag_tableMolFlags
Definition: diag_cfg.c:95
const DIAG_DATABASE_SHIM_s diag_kDatabaseShim
Definition: diag_cfg.c:103
DIAG_ID_CFG_s DIAG_ID_cfg[]
Definition: diag_cfg.c:114
DIAG_DEV_s diag_device
Definition: diag_cfg.c:213
static DATA_BLOCK_ERRORSTATE_s diag_tableErrorFlags
Definition: diag_cfg.c:92
Diagnostic module configuration header.
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
Definition: diag_cfg.h:78
#define DIAG_ERROR_CURRENT_SENSITIVITY_MOL
Definition: diag_cfg.h:93
#define DIAG_ERROR_LTC_MUX_SENSITIVITY
Definition: diag_cfg.h:96
#define DIAG_DELAY_REDUNDANCY_MEAS_ERROR_ms
Definition: diag_cfg.h:139
#define DIAG_ERROR_SENSITIVITY_HIGH
Definition: diag_cfg.h:71
#define DIAG_DELAY_DEEP_DISCHARGE_ms
Definition: diag_cfg.h:135
#define DIAG_ERROR_INTERLOCK_SENSITIVITY
Definition: diag_cfg.h:75
#define DIAG_ERROR_CURRENT_SENSITIVITY_RSL
Definition: diag_cfg.h:91
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
Definition: diag_cfg.h:84
@ DIAG_WARNING
Definition: diag_cfg.h:277
@ DIAG_INFO
Definition: diag_cfg.h:278
@ DIAG_FATAL_ERROR
Definition: diag_cfg.h:276
#define DIAG_NO_DELAY
Definition: diag_cfg.h:109
#define DIAG_DELAY_TEMPERATURE_ms
Definition: diag_cfg.h:117
#define DIAG_DELAY_AFE_ms
Definition: diag_cfg.h:121
#define DIAG_DELAY_CONTACTOR_FEEDBACK_ms
Definition: diag_cfg.h:133
#define DIAG_DELAY_INTERLOCK_ms
Definition: diag_cfg.h:111
#define DIAG_DELAY_OVERCURRENT_ms
Definition: diag_cfg.h:119
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL
Definition: diag_cfg.h:86
#define DIAG_DELAY_REDUNDANCY_MEAS_TIMEOUT_ms
Definition: diag_cfg.h:137
@ DIAG_RECORDING_ENABLED
Definition: diag_cfg.h:283
#define DIAG_DELAY_PL_PACK_VOLTAGE_ms
Definition: diag_cfg.h:131
#define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
Definition: diag_cfg.h:100
#define DIAG_ERROR_CAN_SENSOR_SENSITIVITY
Definition: diag_cfg.h:101
#define DIAG_DELAY_EC_CC_TIMING_ms
Definition: diag_cfg.h:125
#define DIAG_ERROR_SENSITIVITY_TENTH_EVENT
Definition: diag_cfg.h:69
#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:258
#define DIAG_ERROR_CURRENT_SENSITIVITY_MSL
Definition: diag_cfg.h:89
#define DIAG_ERROR_LTC_PEC_SENSITIVITY
Definition: diag_cfg.h:95
#define DIAG_DELAY_OVERVOLTAGE_ms
Definition: diag_cfg.h:113
#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:269
#define DIAG_DELAY_SBC_ms
Definition: diag_cfg.h:129
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:184
@ DIAG_ID_POWER_MEASUREMENT_ERROR
Definition: diag_cfg.h:225
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:205
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
Definition: diag_cfg.h:194
@ DIAG_ID_INSULATION_MEASUREMENT_INVALID
Definition: diag_cfg.h:226
@ DIAG_ID_AFE_CELL_VOLTAGE_MEAS_ERROR
Definition: diag_cfg.h:170
@ DIAG_ID_CAN_CC_RESPONDING
Definition: diag_cfg.h:166
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:220
@ DIAG_ID_AFE_CELL_TEMPERATURE_MEAS_ERROR
Definition: diag_cfg.h:171
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
Definition: diag_cfg.h:179
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:187
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
Definition: diag_cfg.h:174
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:185
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
Definition: diag_cfg.h:204
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:218
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
Definition: diag_cfg.h:203
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
Definition: diag_cfg.h:173
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:191
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
Definition: diag_cfg.h:210
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:219
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
Definition: diag_cfg.h:177
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
Definition: diag_cfg.h:200
@ DIAG_ID_I2C_PEX_ERROR
Definition: diag_cfg.h:229
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
Definition: diag_cfg.h:169
@ DIAG_ID_FLASHCHECKSUM
Definition: diag_cfg.h:157
@ DIAG_ID_PLAUSIBILITY_CELL_TEMP
Definition: diag_cfg.h:172
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
Definition: diag_cfg.h:196
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL
Definition: diag_cfg.h:176
@ DIAG_ID_CONFIGASSERT
Definition: diag_cfg.h:159
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:188
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:186
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:199
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
Definition: diag_cfg.h:201
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:181
@ DIAG_ID_OPEN_WIRE
Definition: diag_cfg.h:209
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:224
@ DIAG_ID_LTC_PEC
Definition: diag_cfg.h:161
@ DIAG_ID_INSULATION_GROUND_ERROR
Definition: diag_cfg.h:228
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:183
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:189
@ DIAG_ID_INSULATION_ERROR
Definition: diag_cfg.h:227
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:212
@ DIAG_ID_MAX
Definition: diag_cfg.h:230
@ DIAG_ID_SBC_RSTB_STATE
Definition: diag_cfg.h:215
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:213
@ DIAG_ID_CAN_TIMING
Definition: diag_cfg.h:164
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:206
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:217
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:222
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
Definition: diag_cfg.h:208
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:223
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:192
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:216
@ DIAG_ID_SBC_FIN_STATE
Definition: diag_cfg.h:214
@ DIAG_ID_CURRENT_ON_OPEN_STRING
Definition: diag_cfg.h:207
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:202
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
Definition: diag_cfg.h:193
@ DIAG_ID_LTC_MUX
Definition: diag_cfg.h:162
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
Definition: diag_cfg.h:198
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
Definition: diag_cfg.h:168
@ DIAG_ID_CURRENT_MEASUREMENT_ERROR
Definition: diag_cfg.h:221
@ DIAG_ID_CAN_RX_QUEUE_FULL
Definition: diag_cfg.h:165
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
Definition: diag_cfg.h:180
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
Definition: diag_cfg.h:195
@ DIAG_ID_CAN_EC_RESPONDING
Definition: diag_cfg.h:167
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
Definition: diag_cfg.h:175
@ DIAG_ID_LTC_SPI
Definition: diag_cfg.h:160
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:182
@ DIAG_ID_INTERLOCK_FEEDBACK
Definition: diag_cfg.h:211
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
Definition: diag_cfg.h:197
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
Definition: diag_cfg.h:178
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:190
@ DIAG_ID_LTC_CONFIG
Definition: diag_cfg.h:163
@ DIAG_ID_SYSTEMMONITORING
Definition: diag_cfg.h:158
#define DIAG_DELAY_DISCARDED
Definition: diag_cfg.h:107
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
Definition: diag_cfg.h:79
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
Definition: diag_cfg.h:82
#define DIAG_ERROR_CAN_TIMING_SENSITIVITY
Definition: diag_cfg.h:99
@ DIAG_EVALUATION_ENABLED
Definition: diag_cfg.h:242
#define DIAG_ERROR_SENSITIVITY_FIRST_EVENT
Definition: diag_cfg.h:66
#define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
Definition: diag_cfg.h:104
#define DIAG_DELAY_CAN_TIMING_ms
Definition: diag_cfg.h:123
#define DIAG_DELAY_CURRENT_SENSOR_ms
Definition: diag_cfg.h:127
#define DIAG_DELAY_UNDERVOLTAGE_ms
Definition: diag_cfg.h:115
#define DIAG_ERROR_LTC_SPI_SENSITIVITY
Definition: diag_cfg.h:97
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
Definition: diag_cfg.h:77
#define static_assert(cond, msg)
static assertion macro
Definition: fassert.h:254
#define NULL_PTR
Null pointer.
Definition: fstd_types.h:75
General macros and definitions for the whole platform.
#define STRIP(x)
Definition: general.h:274
#define REPEAT_U(x, n)
Macro that helps to generate a series of literals (for array initializers).
Definition: general.h:262
DATA_BLOCK_ID_e uniqueId
Definition: database_cfg.h:111
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:314
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:465
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:423
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:445
DATA_BLOCK_ERRORSTATE_s * pTableError
Definition: diag_cfg.h:146
uint8_t nr_of_ch
Definition: diag_cfg.h:321