foxBMS - Unit Tests  1.4.1
The foxBMS Unit Tests API Documentation
diag_cbs.h
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_cbs.h
44  * @author foxBMS Team
45  * @date 2021-02-17 (date of creation)
46  * @updated 2022-10-27 (date of last update)
47  * @version v1.4.1
48  * @ingroup ENGINE
49  * @prefix DIAG
50  *
51  * @brief Diagnosis driver header
52  *
53  */
54 
55 #ifndef FOXBMS__DIAG_CBS_H_
56 #define FOXBMS__DIAG_CBS_H_
57 
58 /*========== Includes =======================================================*/
59 #include "general.h"
60 
61 #include "diag_cfg.h"
62 
63 /*========== Macros and Definitions =========================================*/
64 
65 /*========== Extern Constant and Variable Declarations ======================*/
66 
67 /*========== Extern Function Prototypes =====================================*/
68 /**
69  * @brief dummy callback function of diagnosis events
70  * @param[in] diagId ID of diag entry
71  * @param[in] event OK, NOK or RESET
72  * @param[in] kpkDiagShim shim to the database entries
73  * @param[in] data data
74  */
75 extern void DIAG_DummyCallback(
76  DIAG_ID_e diagId,
77  DIAG_EVENT_e event,
78  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
79  uint32_t data);
80 
81 /**
82  * @brief diagnosis callback function for overvoltage events
83  * @param[in] diagId ID of diag entry
84  * @param[in] event OK, NOK or RESET
85  * @param[in] kpkDiagShim shim to the database entries
86  * @param[in] stringNumber stringNumber where overvoltage event occurred
87  */
88 extern void DIAG_ErrorOvervoltage(
89  DIAG_ID_e diagId,
90  DIAG_EVENT_e event,
91  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
92  uint32_t stringNumber);
93 
94 /**
95  * @brief diagnosis callback function for undervoltage events
96  * @param[in] diagId ID of diag entry
97  * @param[in] event OK, NOK or RESET
98  * @param[in] kpkDiagShim shim to the database entries
99  * @param[in] stringNumber stringNumber where undervoltage event occurred
100  */
101 extern void DIAG_ErrorUndervoltage(
102  DIAG_ID_e diagId,
103  DIAG_EVENT_e event,
104  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
105  uint32_t stringNumber);
106 /**
107  * @brief diagnosis callback function for overtemperature charge events
108  * @param[in] diagId ID of diag entry
109  * @param[in] event OK, NOK or RESET
110  * @param[in] kpkDiagShim shim to the database entries
111  * @param[in] stringNumber stringNumber where overtemperature event occurred
112  */
114  DIAG_ID_e diagId,
115  DIAG_EVENT_e event,
116  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
117  uint32_t stringNumber);
118 
119 /**
120  * @brief diagnosis callback function for overtemperature discharge events
121  * @param[in] diagId ID of diag entry
122  * @param[in] event OK, NOK or RESET
123  * @param[in] kpkDiagShim shim to the database entries
124  * @param[in] stringNumber stringNumber where overtemperature event occurred
125  */
127  DIAG_ID_e diagId,
128  DIAG_EVENT_e event,
129  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
130  uint32_t stringNumber);
131 
132 /**
133  * @brief diagnosis callback function for undertemperature charge events
134  * @param[in] diagId ID of diag entry
135  * @param[in] event OK, NOK or RESET
136  * @param[in] kpkDiagShim shim to the database entries
137  * @param[in] stringNumber stringNumber where undertemperature event occurred
138  */
140  DIAG_ID_e diagId,
141  DIAG_EVENT_e event,
142  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
143  uint32_t stringNumber);
144 
145 /**
146  * @brief diagnosis callback function for undertemperature discharge events
147  * @param[in] diagId ID of diag entry
148  * @param[in] event OK, NOK or RESET
149  * @param[in] kpkDiagShim shim to the database entries
150  * @param[in] stringNumber stringNumber where undertemperature event occurred
151  */
153  DIAG_ID_e diagId,
154  DIAG_EVENT_e event,
155  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
156  uint32_t stringNumber);
157 
158 /**
159  * @brief diagnosis callback function for overcurrent charge events
160  * @param[in] diagId ID of diag entry
161  * @param[in] event OK, NOK or RESET
162  * @param[in] kpkDiagShim shim to the database entries
163  * @param[in] stringNumber stringNumber where overcurrent event occurred
164  */
165 extern void DIAG_ErrorOvercurrentCharge(
166  DIAG_ID_e diagId,
167  DIAG_EVENT_e event,
168  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
169  uint32_t stringNumber);
170 
171 /**
172  * @brief diagnosis callback function for overcurrent discharge events
173  * @param[in] diagId ID of diag entry
174  * @param[in] event OK, NOK or RESET
175  * @param[in] kpkDiagShim shim to the database entries
176  * @param[in] stringNumber stringNumber where overcurrent event occurred
177  */
179  DIAG_ID_e diagId,
180  DIAG_EVENT_e event,
181  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
182  uint32_t stringNumber);
183 
184 /**
185  * @brief diagnosis callback function for overcurrent charge events
186  * @param[in] diagId ID of diag entry
187  * @param[in] event OK, NOK or RESET
188  * @param[in] kpkDiagShim shim to the database entries
189  * @param[in] stringNumber stringNumber where overcurrent event occurred
190  */
192  DIAG_ID_e diagId,
193  DIAG_EVENT_e event,
194  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
195  uint32_t stringNumber);
196 
197 /**
198  * @brief diagnosis callback function for current measurement related events
199  * @param[in] diagId ID of diag entry
200  * @param[in] event OK, NOK or RESET
201  * @param[in] kpkDiagShim shim to the database entries
202  * @param[in] stringNumber stringNumber where event occurred
203  */
204 extern void DIAG_ErrorCurrentMeasurement(
205  DIAG_ID_e diagId,
206  DIAG_EVENT_e event,
207  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
208  uint32_t stringNumber);
209 
210 /**
211  * @brief diagnosis callback function for current sensor related events
212  * @param[in] diagId ID of diag entry
213  * @param[in] event OK, NOK or RESET
214  * @param[in] kpkDiagShim shim to the database entries
215  * @param[in] stringNumber stringNumber where event occurred
216  */
218  DIAG_ID_e diagId,
219  DIAG_EVENT_e event,
220  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
221  uint32_t stringNumber);
222 
223 /* ----------------- Functions for system related events ------------------ */
224 
225 /**
226  * @brief Callback function for system monitoring related diagnosis events
227  * @param[in] diagId ID of diag entry
228  * @param[in] event #DIAG_EVENT_e
229  * @param[in] kpkDiagShim shim to the database entries
230  * @param[in] data data
231  */
232 extern void DIAG_ErrorSystemMonitoring(
233  DIAG_ID_e diagId,
234  DIAG_EVENT_e event,
235  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
236  uint32_t data);
237 
238 /**
239  * @brief Callback function for interlock related diagnosis events
240  * @param[in] diagId ID of diag entry
241  * @param[in] event #DIAG_EVENT_e
242  * @param[in] kpkDiagShim shim to the database entries
243  * @param[in] data data
244  */
245 extern void DIAG_ErrorInterlock(
246  DIAG_ID_e diagId,
247  DIAG_EVENT_e event,
248  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
249  uint32_t data);
250 
251 /**
252  * @brief diagnosis callback function for CAN related events
253  * @param[in] diagId ID of diag entry
254  * @param[in] event #DIAG_EVENT_e
255  * @param[in] kpkDiagShim shim to the database entries
256  * @param[in] data data
257  */
258 extern void DIAG_ErrorCanTiming(
259  DIAG_ID_e diagId,
260  DIAG_EVENT_e event,
261  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
262  uint32_t data);
263 
264 /**
265  * @brief diagnosis callback function for CAN related events
266  * @param[in] diagId ID of diag entry
267  * @param[in] event #DIAG_EVENT_e
268  * @param[in] kpkDiagShim shim to the database entries
269  * @param[in] data data
270  */
271 extern void DIAG_ErrorCanRxQueueFull(
272  DIAG_ID_e diagId,
273  DIAG_EVENT_e event,
274  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
275  uint32_t data);
276 
277 /**
278  * @brief diagnosis callback function for AFE module related events
279  * @param[in] diagId ID of diag entry
280  * @param[in] event OK, NOK or RESET
281  * @param[in] kpkDiagShim shim to the database entries
282  * @param[in] stringNumber stringNumber where AFE event occurred
283  */
284 extern void DIAG_ErrorAfeDriver(
285  DIAG_ID_e diagId,
286  DIAG_EVENT_e event,
287  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
288  uint32_t stringNumber);
289 
290 /**
291  * @brief diagnosis callback function for AFE related events
292  * @param[in] diagId ID of diag entry
293  * @param[in] event OK, NOK or RESET
294  * @param[in] kpkDiagShim shim to the database entries
295  * @param[in] stringNumber stringNumber where event occurred
296  */
297 extern void DIAG_ErrorAfe(
298  DIAG_ID_e diagId,
299  DIAG_EVENT_e event,
300  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
301  uint32_t stringNumber);
302 
303 /**
304  * @brief diagnosis callback function for current sensor related events
305  * @param[in] diagId ID of diag entry
306  * @param[in] event OK, NOK or RESET
307  * @param[in] kpkDiagShim shim to the database entries
308  * @param[in] stringNumber stringNumber where current sensor event occurred
309  */
310 extern void DIAG_ErrorCurrentSensor(
311  DIAG_ID_e diagId,
312  DIAG_EVENT_e event,
313  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
314  uint32_t stringNumber);
315 
316 /**
317  * @brief diagnosis callback function for SBC related events
318  * @param[in] diagId ID of diag entry
319  * @param[in] event #DIAG_EVENT_e
320  * @param[in] kpkDiagShim shim to the database entries
321  * @param[in] data data
322  */
323 extern void DIAG_Sbc(
324  DIAG_ID_e diagId,
325  DIAG_EVENT_e event,
326  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
327  uint32_t data);
328 
329 /**
330  * @brief diagnosis callback function for plausibility check related events
331  * @param[in] diagId ID of diag entry
332  * @param[in] event #DIAG_EVENT_e
333  * @param[in] kpkDiagShim shim to the database entries
334  * @param[in] stringNumber stringNumber where current sensor event occurred
335  */
336 extern void DIAG_ErrorPlausibility(
337  DIAG_ID_e diagId,
338  DIAG_EVENT_e event,
339  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
340  uint32_t stringNumber);
341 
342 /**
343  * @brief diagnosis callback function for string contactor feedback related events
344  * @param[in] diagId ID of diag entry
345  * @param[in] event #DIAG_EVENT_e
346  * @param[in] kpkDiagShim shim to the database entries
347  * @param[in] stringNumber stringNumber where contactor feedback event occurred
348  */
349 extern void DIAG_StringContactorFeedback(
350  DIAG_ID_e diagId,
351  DIAG_EVENT_e event,
352  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
353  uint32_t stringNumber);
354 
355 /**
356  * @brief diagnosis callback function for precharge contactor feedback related events
357  * @param[in] diagId ID of diag entry
358  * @param[in] event #DIAG_EVENT_e
359  * @param[in] kpkDiagShim shim to the database entries
360  * @param[in] stringNumber stringNumber where precharge feedback event occurred
361  */
363  DIAG_ID_e diagId,
364  DIAG_EVENT_e event,
365  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
366  uint32_t stringNumber);
367 
368 /**
369  * @brief diagnosis callback function for plausibility check related events
370  * @param[in] diagId ID of diag entry
371  * @param[in] event #DIAG_EVENT_e
372  * @param[in] kpkDiagShim shim to the database entries
373  * @param[in] stringNumber stringNumber where precharge feedback event occurred
374  */
375 extern void DIAG_PlausibilityCheck(
376  DIAG_ID_e diagId,
377  DIAG_EVENT_e event,
378  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
379  uint32_t stringNumber);
380 
381 /**
382  * @brief diagnosis callback function for deep discharge events
383  * @param[in] diagId ID of diag entry
384  * @param[in] event OK, NOK or RESET
385  * @param[in] kpkDiagShim shim to the database entries
386  * @param[in] stringNumber stringNumber where deep discharge event occurred
387  */
388 extern void DIAG_ErrorDeepDischarge(
389  DIAG_ID_e diagId,
390  DIAG_EVENT_e event,
391  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
392  uint32_t stringNumber);
393 
394 /**
395  * @brief diagnosis callback function for current sensor related events
396  * @param[in] diagId ID of diag entry
397  * @param[in] event OK, NOK or RESET
398  * @param[in] kpkDiagShim shim to the database entries
399  * @param[in] stringNumber TODO
400  */
401 extern void DIAG_ErrorPowerMeasurement(
402  DIAG_ID_e diagId,
403  DIAG_EVENT_e event,
404  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
405  uint32_t stringNumber);
406 
407 /**
408  * @brief diagnosis callback function for the insulation measurement
409  * @param[in] diagId ID of diag entry
410  * @param[in] event OK, NOK or RESET
411  * @param[in] kpkDiagShim shim to the database entries
412  * @param[in] stringNumber TODO
413  */
414 extern void DIAG_Insulation(
415  DIAG_ID_e diagId,
416  DIAG_EVENT_e event,
417  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
418  uint32_t stringNumber);
419 
420 /**
421  * @brief diagnosis callback function for I2C port expander related events
422  * @param[in] diagId ID of diag entry
423  * @param[in] event OK, NOK or RESET
424  * @param[in] kpkDiagShim shim to the database entries
425  * @param[in] data not relevant
426  */
427 extern void DIAG_I2cPex(
428  DIAG_ID_e diagId,
429  DIAG_EVENT_e event,
430  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
431  uint32_t data);
432 
433 /**
434  * @brief diagnosis callback function for FRAM related events
435  * @param[in] diagId ID of diag entry
436  * @param[in] event OK, NOK or RESET
437  * @param[in] kpkDiagShim shim to the database entries
438  * @param[in] data not relevant
439  */
440 extern void DIAG_FramError(
441  DIAG_ID_e diagId,
442  DIAG_EVENT_e event,
443  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
444  uint32_t data);
445 
446 /**
447  * @brief diagnosis callback function for ALERT flag
448  * @param[in] diagId ID of diag entry
449  * @param[in] event OK, NOK or RESET
450  * @param[in] kpkDiagShim shim to the database entries
451  * @param[in] data not relevant
452  */
453 extern void DIAG_AlertFlag(
454  DIAG_ID_e diagId,
455  DIAG_EVENT_e event,
456  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
457  uint32_t data);
458 
459 /*========== Externalized Static Functions Prototypes (Unit Test) ===========*/
460 
461 #endif /* FOXBMS__DIAG_CBS_H_ */
void DIAG_ErrorCanTiming(DIAG_ID_e diagId, 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_ErrorCurrentOnOpenString(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent charge events
void DIAG_ErrorUndervoltage(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undervoltage events
void DIAG_ErrorOvertemperatureDischarge(DIAG_ID_e diagId, 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 diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current measurement related events
void DIAG_ErrorPlausibility(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for plausibility check related events
void DIAG_ErrorAfe(DIAG_ID_e diagId, 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_PrechargeContactorFeedback(DIAG_ID_e diagId, 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_ErrorCurrentSensor(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_AlertFlag(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for ALERT flag
Definition: diag_cbs_bms.c:69
void DIAG_ErrorUndertemperatureCharge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undertemperature charge events
void DIAG_ErrorDeepDischarge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for deep discharge events
void DIAG_ErrorOvertemperatureCharge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overtemperature charge events
void DIAG_ErrorOvervoltage(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overvoltage events
void DIAG_ErrorHighVoltageMeasurement(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_DummyCallback(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
dummy callback function of diagnosis events
void DIAG_ErrorSystemMonitoring(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
Callback function for system monitoring related diagnosis events.
void DIAG_StringContactorFeedback(DIAG_ID_e diagId, 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_ErrorUndertemperatureDischarge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for undertemperature discharge events
void DIAG_ErrorAfeDriver(DIAG_ID_e diagId, 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_ErrorPowerMeasurement(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for current sensor related events
void DIAG_ErrorOvercurrentCharge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent charge events
void DIAG_FramError(DIAG_ID_e diagId, 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_PlausibilityCheck(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for plausibility check related events
void DIAG_I2cPex(DIAG_ID_e diagId, 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_Sbc(DIAG_ID_e diagId, 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_ErrorInterlock(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
Callback function for interlock related diagnosis events.
void DIAG_ErrorOvercurrentDischarge(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for overcurrent discharge events
void DIAG_ErrorCanRxQueueFull(DIAG_ID_e diagId, 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_Insulation(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for the insulation measurement
Diagnostic module configuration header.
DIAG_EVENT_e
Definition: diag_cfg.h:256
DIAG_ID_e
Definition: diag_cfg.h:174
General macros and definitions for the whole platform.