foxBMS - Unit Tests  1.3.0
The foxBMS Unit Tests API Documentation
diag_cfg.c
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2022, 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 2022-05-30 (date of last update)
47  * @version v1.3.0
48  * @ingroup ENGINE_CONFIGURATION
49  * @prefix DIAG
50  *
51  * @brief Diagnostic module configuration
52  *
53  * The configuration of the different diagnosis events defined in diag_cfg.h is set in the array
54  * DIAG_ID_cfg[], e.g. initialization errors or runtime errors.
55  *
56  * Every entry of the DIAG_ID_cfg[] array consists of
57  * - name of the diagnosis event (defined in diag_cfg.h)
58  * - type of diagnosis event
59  * - diagnosis sensitivity (after how many occurrences event is counted as error)
60  * - enabling of the recording for diagnosis event
61  * - enabling of the diagnosis event
62  * - callback function for diagnosis event if wished, otherwise DIAG_dummy_callback
63  *
64  * The system monitoring configuration defined in diag_cfg.h is set in the array
65  * sysm_ch_cfg[]. The system monitoring is at the moment only used for
66  * supervising the cyclic/periodic tasks.
67  *
68  * Every entry of the sysm_ch_cfg[] consists of
69  * - enum of monitored object
70  * - type of monitored object (at the moment only DIAG_SYSMON_CYCLICTASK is supported)
71  * - maximum delay in [ms] in which the object needs to call the SYSM_Notify function defined in diag.c
72  * - enabling of the recording for system monitoring
73  * - enabling of the system monitoring for the monitored object
74  * - callback function if system monitoring notices an error if wished, otherwise SYSM_DummyCallback
75  */
76 
77 /*========== Includes =======================================================*/
78 #include "general.h"
79 
80 #include "diag_cfg.h"
81 
82 #include "database.h"
83 #include "diag_cbs.h"
84 
85 /*========== Macros and Definitions =========================================*/
86 /** value of #DIAG_ID_MAX (as a define for the pre-processor) */
87 #define DIAG_ID_MAX_FOR_INIT (75u)
88 
89 f_static_assert(DIAG_ID_MAX_FOR_INIT == (uint16_t)DIAG_ID_MAX, "Both values need to be identical.");
90 
91 /*========== Static Constant and Variable Definitions =======================*/
92 /** local copy of the #DATA_BLOCK_ERRORSTATE_s table */
94 
95 /** local copy of the #DATA_BLOCK_MOL_FLAG_s table */
97 
98 /** local copy of the #DATA_BLOCK_RSL_FLAG_s table */
100 
101 /** local copy of the #DATA_BLOCK_MSL_FLAG_s table */
103 
106  .pTableMol = &diag_tableMolFlags,
107  .pTableRsl = &diag_tableRslFlags,
108  .pTableMsl = &diag_tableMslFlags,
109 };
110 
111 /*========== Static Function Prototypes =====================================*/
112 
113 /*========== Extern Constant and Variable Definitions =======================*/
114 /** variable tracking the state of the diag channels */
116  /* clang-format off */
120 
122 
126 
130 
134 
138 
142 
146 
150 
154 
158 
162 
165 
167 
173 
174  /* Communication events */
195 
197 
200 
205 
210 
212 
214  /* clang-format on */
215 };
216 
219  .pConfigurationOfDiagnosisEntries = &DIAG_ID_cfg[0],
220  .numberOfFatalErrors = 0u,
221  .pFatalErrorLinkTable = {REPEAT_U(NULL_PTR, STRIP(DIAG_ID_MAX_FOR_INIT))},
222 };
223 
224 /*========== Static Function Implementations ================================*/
225 
226 /*========== Extern Function Implementations ================================*/
227 void DIAG_UpdateFlags(void) {
229 }
230 
231 /*========== Externalized Static Function Implementations (Unit Test) =======*/
Database module header.
#define DATA_WRITE_DATA(...)
Definition: database.h:93
@ DATA_BLOCK_ID_RSL_FLAG
Definition: database_cfg.h:92
@ DATA_BLOCK_ID_MSL_FLAG
Definition: database_cfg.h:91
@ DATA_BLOCK_ID_ERRORSTATE
Definition: database_cfg.h:86
@ DATA_BLOCK_ID_MOL_FLAG
Definition: database_cfg.h:93
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:69
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:68
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
Definition: diag_cbs_afe.c:124
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
Definition: diag_cbs_fram.c:68
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:69
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
Definition: diag_cbs_can.c:88
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:69
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:87
static DATA_BLOCK_MSL_FLAG_s diag_tableMslFlags
Definition: diag_cfg.c:102
static DATA_BLOCK_RSL_FLAG_s diag_tableRslFlags
Definition: diag_cfg.c:99
void DIAG_UpdateFlags(void)
update function for diagnosis flags
Definition: diag_cfg.c:227
static DATA_BLOCK_MOL_FLAG_s diag_tableMolFlags
Definition: diag_cfg.c:96
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
Definition: diag_cfg.c:104
DIAG_ID_CFG_s DIAG_ID_cfg[]
Definition: diag_cfg.c:115
DIAG_DEV_s diag_device
Definition: diag_cfg.c:217
static DATA_BLOCK_ERRORSTATE_s diag_tableErrorFlags
Definition: diag_cfg.c:93
Diagnostic module configuration header.
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_RSL
Definition: diag_cfg.h:79
#define DIAG_ERROR_CURRENT_SENSITIVITY_MOL
Definition: diag_cfg.h:94
#define DIAG_ERROR_LTC_MUX_SENSITIVITY
Definition: diag_cfg.h:97
#define DIAG_DELAY_REDUNDANCY_MEAS_ERROR_ms
Definition: diag_cfg.h:140
#define DIAG_ERROR_SENSITIVITY_HIGH
Definition: diag_cfg.h:72
#define DIAG_DELAY_DEEP_DISCHARGE_ms
Definition: diag_cfg.h:136
#define DIAG_ERROR_INTERLOCK_SENSITIVITY
Definition: diag_cfg.h:76
#define DIAG_ERROR_CURRENT_SENSITIVITY_RSL
Definition: diag_cfg.h:92
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_RSL
Definition: diag_cfg.h:85
#define DIAG_ERROR_SENSITIVITY_FIFTH_EVENT
Definition: diag_cfg.h:69
#define DIAG_NO_DELAY
Definition: diag_cfg.h:110
#define DIAG_DELAY_TEMPERATURE_ms
Definition: diag_cfg.h:118
#define DIAG_DELAY_AFE_ms
Definition: diag_cfg.h:122
#define DIAG_DELAY_CONTACTOR_FEEDBACK_ms
Definition: diag_cfg.h:134
@ DIAG_EVALUATION_ENABLED
Definition: diag_cfg.h:245
#define DIAG_DELAY_INTERLOCK_ms
Definition: diag_cfg.h:112
#define DIAG_DELAY_OVERCURRENT_ms
Definition: diag_cfg.h:120
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MOL
Definition: diag_cfg.h:87
#define DIAG_DELAY_REDUNDANCY_MEAS_TIMEOUT_ms
Definition: diag_cfg.h:138
#define DIAG_DELAY_PL_PACK_VOLTAGE_ms
Definition: diag_cfg.h:132
#define DIAG_ERROR_CAN_TIMING_CC_SENSITIVITY
Definition: diag_cfg.h:101
@ DIAG_WARNING
Definition: diag_cfg.h:280
@ DIAG_INFO
Definition: diag_cfg.h:281
@ DIAG_FATAL_ERROR
Definition: diag_cfg.h:279
#define DIAG_ERROR_CAN_SENSOR_SENSITIVITY
Definition: diag_cfg.h:102
#define DIAG_DELAY_EC_CC_TIMING_ms
Definition: diag_cfg.h:126
#define DIAG_ERROR_SENSITIVITY_TENTH_EVENT
Definition: diag_cfg.h:70
@ DIAG_ID_AFE_MUX
Definition: diag_cfg.h:163
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:185
@ DIAG_ID_POWER_MEASUREMENT_ERROR
Definition: diag_cfg.h:226
@ DIAG_ID_PACK_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:206
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_RSL
Definition: diag_cfg.h:195
@ DIAG_ID_AFE_CELL_VOLTAGE_MEAS_ERROR
Definition: diag_cfg.h:171
@ DIAG_ID_CAN_CC_RESPONDING
Definition: diag_cfg.h:167
@ DIAG_ID_CURRENT_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:221
@ DIAG_ID_AFE_CELL_TEMPERATURE_MEAS_ERROR
Definition: diag_cfg.h:172
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_RSL
Definition: diag_cfg.h:180
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:188
@ DIAG_ID_PLAUSIBILITY_CELL_TEMPERATURE_SPREAD
Definition: diag_cfg.h:175
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:186
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MOL
Definition: diag_cfg.h:205
@ DIAG_ID_INSULATION_MEASUREMENT_VALID
Definition: diag_cfg.h:227
@ DIAG_ID_BASE_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:219
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_RSL
Definition: diag_cfg.h:204
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE_SPREAD
Definition: diag_cfg.h:174
@ DIAG_ID_AFE_OPEN_WIRE
Definition: diag_cfg.h:210
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_RSL
Definition: diag_cfg.h:192
@ DIAG_ID_PLAUSIBILITY_PACK_VOLTAGE
Definition: diag_cfg.h:211
@ DIAG_ID_REDUNDANCY0_CELL_TEMPERATURE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:220
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MOL
Definition: diag_cfg.h:178
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_RSL
Definition: diag_cfg.h:201
@ DIAG_ID_I2C_PEX_ERROR
Definition: diag_cfg.h:231
@ DIAG_ID_PLAUSIBILITY_CELL_VOLTAGE
Definition: diag_cfg.h:170
@ DIAG_ID_FLASHCHECKSUM
Definition: diag_cfg.h:158
@ DIAG_ID_PLAUSIBILITY_CELL_TEMP
Definition: diag_cfg.h:173
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MSL
Definition: diag_cfg.h:197
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_RSL
Definition: diag_cfg.h:177
@ DIAG_ID_CONFIGASSERT
Definition: diag_cfg.h:160
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:189
@ DIAG_ID_TEMP_OVERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:187
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MSL
Definition: diag_cfg.h:200
@ DIAG_ID_STRING_OVERCURRENT_CHARGE_MOL
Definition: diag_cfg.h:202
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MSL
Definition: diag_cfg.h:182
@ DIAG_ID_AFE_COM_INTEGRITY
Definition: diag_cfg.h:162
@ DIAG_ID_CURRENT_SENSOR_POWER_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:225
@ DIAG_ID_INSULATION_GROUND_ERROR
Definition: diag_cfg.h:230
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:184
@ DIAG_ID_TEMP_UNDERTEMPERATURE_CHARGE_MOL
Definition: diag_cfg.h:190
@ DIAG_ID_FRAM_READ_CRC_ERROR
Definition: diag_cfg.h:232
@ DIAG_ID_STRING_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:213
@ DIAG_ID_MAX
Definition: diag_cfg.h:233
@ DIAG_ID_SBC_RSTB_STATE
Definition: diag_cfg.h:216
@ DIAG_ID_PRECHARGE_CONTACTOR_FEEDBACK
Definition: diag_cfg.h:214
@ DIAG_ID_CAN_TIMING
Definition: diag_cfg.h:165
@ DIAG_ID_PACK_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:207
@ DIAG_ID_REDUNDANCY0_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:218
@ DIAG_ID_CURRENT_SENSOR_V1_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:223
@ DIAG_ID_DEEP_DISCHARGE_DETECTED
Definition: diag_cfg.h:209
@ DIAG_ID_CURRENT_SENSOR_V3_MEASUREMENT_TIMEOUT
Definition: diag_cfg.h:224
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MOL
Definition: diag_cfg.h:193
@ DIAG_ID_BASE_CELL_VOLTAGE_MESUREMENT_TIMEOUT
Definition: diag_cfg.h:217
@ DIAG_ID_SBC_FIN_STATE
Definition: diag_cfg.h:215
@ DIAG_ID_LOW_INSULATION_RESISTANCE_ERROR
Definition: diag_cfg.h:228
@ DIAG_ID_CURRENT_ON_OPEN_STRING
Definition: diag_cfg.h:208
@ DIAG_ID_STRING_OVERCURRENT_DISCHARGE_MSL
Definition: diag_cfg.h:203
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MSL
Definition: diag_cfg.h:194
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_MOL
Definition: diag_cfg.h:199
@ DIAG_ID_CURRENT_SENSOR_RESPONDING
Definition: diag_cfg.h:169
@ DIAG_ID_CURRENT_MEASUREMENT_ERROR
Definition: diag_cfg.h:222
@ DIAG_ID_CAN_RX_QUEUE_FULL
Definition: diag_cfg.h:166
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MOL
Definition: diag_cfg.h:181
@ DIAG_ID_AFE_SPI
Definition: diag_cfg.h:161
@ DIAG_ID_OVERCURRENT_CHARGE_CELL_MOL
Definition: diag_cfg.h:196
@ DIAG_ID_CAN_EC_RESPONDING
Definition: diag_cfg.h:168
@ DIAG_ID_CELLVOLTAGE_OVERVOLTAGE_MSL
Definition: diag_cfg.h:176
@ DIAG_ID_TEMP_OVERTEMPERATURE_CHARGE_RSL
Definition: diag_cfg.h:183
@ DIAG_ID_INTERLOCK_FEEDBACK
Definition: diag_cfg.h:212
@ DIAG_ID_OVERCURRENT_DISCHARGE_CELL_RSL
Definition: diag_cfg.h:198
@ DIAG_ID_AFE_CONFIG
Definition: diag_cfg.h:164
@ DIAG_ID_CELLVOLTAGE_UNDERVOLTAGE_MSL
Definition: diag_cfg.h:179
@ DIAG_ID_TEMP_UNDERTEMPERATURE_DISCHARGE_MSL
Definition: diag_cfg.h:191
@ DIAG_ID_SYSTEMMONITORING
Definition: diag_cfg.h:159
@ DIAG_ID_LOW_INSULATION_RESISTANCE_WARNING
Definition: diag_cfg.h:229
#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:261
#define DIAG_ERROR_CURRENT_SENSITIVITY_MSL
Definition: diag_cfg.h:90
#define DIAG_ERROR_LTC_PEC_SENSITIVITY
Definition: diag_cfg.h:96
#define DIAG_DELAY_OVERVOLTAGE_ms
Definition: diag_cfg.h:114
#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:272
#define DIAG_DELAY_SBC_ms
Definition: diag_cfg.h:130
#define DIAG_DELAY_DISCARDED
Definition: diag_cfg.h:108
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MOL
Definition: diag_cfg.h:80
#define DIAG_ERROR_TEMPERATURE_SENSITIVITY_MSL
Definition: diag_cfg.h:83
#define DIAG_ERROR_CAN_TIMING_SENSITIVITY
Definition: diag_cfg.h:100
#define DIAG_ERROR_SENSITIVITY_FIRST_EVENT
Definition: diag_cfg.h:67
#define DIAG_ERROR_CONTACTOR_FEEDBACK_SENSITIVITY
Definition: diag_cfg.h:105
#define DIAG_DELAY_CAN_TIMING_ms
Definition: diag_cfg.h:124
#define DIAG_DELAY_CURRENT_SENSOR_ms
Definition: diag_cfg.h:128
#define DIAG_DELAY_UNDERVOLTAGE_ms
Definition: diag_cfg.h:116
#define DIAG_ERROR_LTC_SPI_SENSITIVITY
Definition: diag_cfg.h:98
@ DIAG_RECORDING_ENABLED
Definition: diag_cfg.h:286
#define DIAG_ERROR_VOLTAGE_SENSITIVITY_MSL
Definition: diag_cfg.h:78
#define NULL_PTR
Null pointer.
Definition: fstd_types.h:76
General macros and definitions for the whole platform.
#define STRIP(x)
Definition: general.h:261
#define REPEAT_U(x, n)
Macro that helps to generate a series of literals (for array initializers).
Definition: general.h:249
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:329
DATA_BLOCK_ID_e uniqueId
Definition: database_cfg.h:119
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:492
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:450
DATA_BLOCK_HEADER_s header
Definition: database_cfg.h:472
DATA_BLOCK_ERRORSTATE_s * pTableError
Definition: diag_cfg.h:147
uint8_t nrOfConfiguredDiagnosisEntries
Definition: diag_cfg.h:324