foxBMS  1.6.0
The foxBMS Battery Management System API Documentation
diag_cbs.h
Go to the documentation of this file.
1 /**
2  *
3  * @copyright © 2010 - 2023, 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 2023-10-12 (date of last update)
47  * @version v1.6.0
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 
60 #include "diag_cfg.h"
61 
62 #include <stdint.h>
63 
64 /*========== Macros and Definitions =========================================*/
65 
66 /*========== Extern Constant and Variable Declarations ======================*/
67 
68 /*========== Extern Function Prototypes =====================================*/
69 /**
70  * @brief dummy callback function of diagnosis events
71  * @param[in] diagId ID of diag entry
72  * @param[in] event OK, NOK or RESET
73  * @param[in] kpkDiagShim shim to the database entries
74  * @param[in] data data
75  */
76 extern void DIAG_DummyCallback(
77  DIAG_ID_e diagId,
78  DIAG_EVENT_e event,
79  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
80  uint32_t data);
81 
82 /**
83  * @brief diagnosis callback function for overvoltage events
84  * @param[in] diagId ID of diag entry
85  * @param[in] event OK, NOK or RESET
86  * @param[in] kpkDiagShim shim to the database entries
87  * @param[in] stringNumber stringNumber where overvoltage event occurred
88  */
89 extern void DIAG_ErrorOvervoltage(
90  DIAG_ID_e diagId,
91  DIAG_EVENT_e event,
92  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
93  uint32_t stringNumber);
94 
95 /**
96  * @brief diagnosis callback function for undervoltage events
97  * @param[in] diagId ID of diag entry
98  * @param[in] event OK, NOK or RESET
99  * @param[in] kpkDiagShim shim to the database entries
100  * @param[in] stringNumber stringNumber where undervoltage event occurred
101  */
102 extern void DIAG_ErrorUndervoltage(
103  DIAG_ID_e diagId,
104  DIAG_EVENT_e event,
105  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
106  uint32_t stringNumber);
107 /**
108  * @brief diagnosis callback function for overtemperature charge events
109  * @param[in] diagId ID of diag entry
110  * @param[in] event OK, NOK or RESET
111  * @param[in] kpkDiagShim shim to the database entries
112  * @param[in] stringNumber stringNumber where overtemperature event occurred
113  */
115  DIAG_ID_e diagId,
116  DIAG_EVENT_e event,
117  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
118  uint32_t stringNumber);
119 
120 /**
121  * @brief diagnosis callback function for overtemperature discharge events
122  * @param[in] diagId ID of diag entry
123  * @param[in] event OK, NOK or RESET
124  * @param[in] kpkDiagShim shim to the database entries
125  * @param[in] stringNumber stringNumber where overtemperature event occurred
126  */
128  DIAG_ID_e diagId,
129  DIAG_EVENT_e event,
130  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
131  uint32_t stringNumber);
132 
133 /**
134  * @brief diagnosis callback function for undertemperature charge events
135  * @param[in] diagId ID of diag entry
136  * @param[in] event OK, NOK or RESET
137  * @param[in] kpkDiagShim shim to the database entries
138  * @param[in] stringNumber stringNumber where undertemperature event occurred
139  */
141  DIAG_ID_e diagId,
142  DIAG_EVENT_e event,
143  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
144  uint32_t stringNumber);
145 
146 /**
147  * @brief diagnosis callback function for undertemperature discharge events
148  * @param[in] diagId ID of diag entry
149  * @param[in] event OK, NOK or RESET
150  * @param[in] kpkDiagShim shim to the database entries
151  * @param[in] stringNumber stringNumber where undertemperature event occurred
152  */
154  DIAG_ID_e diagId,
155  DIAG_EVENT_e event,
156  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
157  uint32_t stringNumber);
158 
159 /**
160  * @brief diagnosis callback function for overcurrent charge events
161  * @param[in] diagId ID of diag entry
162  * @param[in] event OK, NOK or RESET
163  * @param[in] kpkDiagShim shim to the database entries
164  * @param[in] stringNumber stringNumber where overcurrent event occurred
165  */
166 extern void DIAG_ErrorOvercurrentCharge(
167  DIAG_ID_e diagId,
168  DIAG_EVENT_e event,
169  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
170  uint32_t stringNumber);
171 
172 /**
173  * @brief diagnosis callback function for overcurrent discharge events
174  * @param[in] diagId ID of diag entry
175  * @param[in] event OK, NOK or RESET
176  * @param[in] kpkDiagShim shim to the database entries
177  * @param[in] stringNumber stringNumber where overcurrent event occurred
178  */
180  DIAG_ID_e diagId,
181  DIAG_EVENT_e event,
182  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
183  uint32_t stringNumber);
184 
185 /**
186  * @brief diagnosis callback function for overcurrent charge events
187  * @param[in] diagId ID of diag entry
188  * @param[in] event OK, NOK or RESET
189  * @param[in] kpkDiagShim shim to the database entries
190  * @param[in] stringNumber stringNumber where overcurrent event occurred
191  */
193  DIAG_ID_e diagId,
194  DIAG_EVENT_e event,
195  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
196  uint32_t stringNumber);
197 
198 /**
199  * @brief diagnosis callback function for current measurement related events
200  * @param[in] diagId ID of diag entry
201  * @param[in] event OK, NOK or RESET
202  * @param[in] kpkDiagShim shim to the database entries
203  * @param[in] stringNumber stringNumber where event occurred
204  */
205 extern void DIAG_ErrorCurrentMeasurement(
206  DIAG_ID_e diagId,
207  DIAG_EVENT_e event,
208  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
209  uint32_t stringNumber);
210 
211 /**
212  * @brief diagnosis callback function for current sensor related events
213  * @param[in] diagId ID of diag entry
214  * @param[in] event OK, NOK or RESET
215  * @param[in] kpkDiagShim shim to the database entries
216  * @param[in] stringNumber stringNumber where event occurred
217  */
219  DIAG_ID_e diagId,
220  DIAG_EVENT_e event,
221  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
222  uint32_t stringNumber);
223 
224 /* ----------------- Functions for system related events ------------------ */
225 
226 /**
227  * @brief Callback function for system monitoring related diagnosis events
228  * @param[in] diagId ID of diag entry
229  * @param[in] event #DIAG_EVENT_e
230  * @param[in] kpkDiagShim shim to the database entries
231  * @param[in] data data
232  */
233 extern void DIAG_ErrorSystemMonitoring(
234  DIAG_ID_e diagId,
235  DIAG_EVENT_e event,
236  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
237  uint32_t data);
238 
239 /**
240  * @brief Callback function for interlock related diagnosis events
241  * @param[in] diagId ID of diag entry
242  * @param[in] event #DIAG_EVENT_e
243  * @param[in] kpkDiagShim shim to the database entries
244  * @param[in] data data
245  */
246 extern void DIAG_ErrorInterlock(
247  DIAG_ID_e diagId,
248  DIAG_EVENT_e event,
249  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
250  uint32_t data);
251 
252 /**
253  * @brief diagnosis callback function for CAN related events
254  * @param[in] diagId ID of diag entry
255  * @param[in] event #DIAG_EVENT_e
256  * @param[in] kpkDiagShim shim to the database entries
257  * @param[in] data data
258  */
259 extern void DIAG_ErrorCanTiming(
260  DIAG_ID_e diagId,
261  DIAG_EVENT_e event,
262  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
263  uint32_t data);
264 
265 /**
266  * @brief diagnosis callback function for CAN Rx related events
267  * @param[in] diagId ID of diag entry
268  * @param[in] event #DIAG_EVENT_e
269  * @param[in] kpkDiagShim shim to the database entries
270  * @param[in] data data
271  */
272 extern void DIAG_ErrorCanRxQueueFull(
273  DIAG_ID_e diagId,
274  DIAG_EVENT_e event,
275  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
276  uint32_t data);
277 
278 /**
279  * @brief diagnosis callback function for CAN Tx related events
280  * @param[in] diagId ID of diag entry
281  * @param[in] event #DIAG_EVENT_e
282  * @param[in] kpkDiagShim shim to the database entries
283  * @param[in] data data
284  */
285 
286 extern void DIAG_ErrorCanTxQueueFull(
287  DIAG_ID_e diagId,
288  DIAG_EVENT_e event,
289  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
290  uint32_t data);
291 
292 /**
293  * @brief diagnosis callback function for AFE module related events
294  * @param[in] diagId ID of diag entry
295  * @param[in] event OK, NOK or RESET
296  * @param[in] kpkDiagShim shim to the database entries
297  * @param[in] stringNumber stringNumber where AFE event occurred
298  */
299 extern void DIAG_ErrorAfeDriver(
300  DIAG_ID_e diagId,
301  DIAG_EVENT_e event,
302  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
303  uint32_t stringNumber);
304 
305 /**
306  * @brief diagnosis callback function for AFE related events
307  * @param[in] diagId ID of diag entry
308  * @param[in] event OK, NOK or RESET
309  * @param[in] kpkDiagShim shim to the database entries
310  * @param[in] stringNumber stringNumber where event occurred
311  */
312 extern void DIAG_ErrorAfe(
313  DIAG_ID_e diagId,
314  DIAG_EVENT_e event,
315  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
316  uint32_t stringNumber);
317 
318 /**
319  * @brief diagnosis callback function for current sensor related events
320  * @param[in] diagId ID of diag entry
321  * @param[in] event OK, NOK or RESET
322  * @param[in] kpkDiagShim shim to the database entries
323  * @param[in] stringNumber stringNumber where current sensor event occurred
324  */
325 extern void DIAG_ErrorCurrentSensor(
326  DIAG_ID_e diagId,
327  DIAG_EVENT_e event,
328  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
329  uint32_t stringNumber);
330 
331 /**
332  * @brief diagnosis callback function for SBC related events
333  * @param[in] diagId ID of diag entry
334  * @param[in] event #DIAG_EVENT_e
335  * @param[in] kpkDiagShim shim to the database entries
336  * @param[in] data data
337  */
338 extern void DIAG_Sbc(
339  DIAG_ID_e diagId,
340  DIAG_EVENT_e event,
341  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
342  uint32_t data);
343 
344 /**
345  * @brief diagnosis callback function for plausibility check related events
346  * @param[in] diagId ID of diag entry
347  * @param[in] event #DIAG_EVENT_e
348  * @param[in] kpkDiagShim shim to the database entries
349  * @param[in] stringNumber stringNumber where current sensor event occurred
350  */
351 extern void DIAG_ErrorPlausibility(
352  DIAG_ID_e diagId,
353  DIAG_EVENT_e event,
354  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
355  uint32_t stringNumber);
356 
357 /**
358  * @brief diagnosis callback function for string contactor feedback related events
359  * @param[in] diagId ID of diag entry
360  * @param[in] event #DIAG_EVENT_e
361  * @param[in] kpkDiagShim shim to the database entries
362  * @param[in] stringNumber stringNumber where contactor feedback event occurred
363  */
364 extern void DIAG_StringContactorFeedback(
365  DIAG_ID_e diagId,
366  DIAG_EVENT_e event,
367  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
368  uint32_t stringNumber);
369 
370 /**
371  * @brief diagnosis callback function for precharge contactor feedback related events
372  * @param[in] diagId ID of diag entry
373  * @param[in] event #DIAG_EVENT_e
374  * @param[in] kpkDiagShim shim to the database entries
375  * @param[in] stringNumber stringNumber where precharge feedback event occurred
376  */
378  DIAG_ID_e diagId,
379  DIAG_EVENT_e event,
380  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
381  uint32_t stringNumber);
382 
383 /**
384  * @brief diagnosis callback function for plausibility check related events
385  * @param[in] diagId ID of diag entry
386  * @param[in] event #DIAG_EVENT_e
387  * @param[in] kpkDiagShim shim to the database entries
388  * @param[in] stringNumber stringNumber where precharge feedback event occurred
389  */
390 extern void DIAG_PlausibilityCheck(
391  DIAG_ID_e diagId,
392  DIAG_EVENT_e event,
393  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
394  uint32_t stringNumber);
395 
396 /**
397  * @brief diagnosis callback function for deep discharge events
398  * @param[in] diagId ID of diag entry
399  * @param[in] event OK, NOK or RESET
400  * @param[in] kpkDiagShim shim to the database entries
401  * @param[in] stringNumber stringNumber where deep discharge event occurred
402  */
403 extern void DIAG_ErrorDeepDischarge(
404  DIAG_ID_e diagId,
405  DIAG_EVENT_e event,
406  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
407  uint32_t stringNumber);
408 
409 /**
410  * @brief diagnosis callback function for current sensor related events
411  * @param[in] diagId ID of diag entry
412  * @param[in] event OK, NOK or RESET
413  * @param[in] kpkDiagShim shim to the database entries
414  * @param[in] stringNumber TODO
415  */
416 extern void DIAG_ErrorPowerMeasurement(
417  DIAG_ID_e diagId,
418  DIAG_EVENT_e event,
419  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
420  uint32_t stringNumber);
421 
422 /**
423  * @brief diagnosis callback function for the insulation measurement
424  * @param[in] diagId ID of diag entry
425  * @param[in] event OK, NOK or RESET
426  * @param[in] kpkDiagShim shim to the database entries
427  * @param[in] stringNumber TODO
428  */
429 extern void DIAG_Insulation(
430  DIAG_ID_e diagId,
431  DIAG_EVENT_e event,
432  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
433  uint32_t stringNumber);
434 
435 /**
436  * @brief diagnosis callback function for I2C port expander related events
437  * @param[in] diagId ID of diag entry
438  * @param[in] event OK, NOK or RESET
439  * @param[in] kpkDiagShim shim to the database entries
440  * @param[in] data not relevant
441  */
442 extern void DIAG_I2c(
443  DIAG_ID_e diagId,
444  DIAG_EVENT_e event,
445  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
446  uint32_t data);
447 
448 /**
449  * @brief diagnosis callback function for FRAM related events
450  * @param[in] diagId ID of diag entry
451  * @param[in] event OK, NOK or RESET
452  * @param[in] kpkDiagShim shim to the database entries
453  * @param[in] data not relevant
454  */
455 extern void DIAG_FramError(
456  DIAG_ID_e diagId,
457  DIAG_EVENT_e event,
458  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
459  uint32_t data);
460 
461 /**
462  * @brief diagnosis callback function for RTC related events
463  * @param[in] diagId ID of diag entry
464  * @param[in] event OK, NOK or RESET
465  * @param[in] kpkDiagShim shim to the database entries
466  * @param[in] data not relevant
467  */
468 extern void DIAG_Rtc(
469  DIAG_ID_e diagId,
470  DIAG_EVENT_e event,
471  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
472  uint32_t data);
473 
474 /**
475  * @brief diagnosis callback function for ALERT flag
476  * @param[in] diagId ID of diag entry
477  * @param[in] event OK, NOK or RESET
478  * @param[in] kpkDiagShim shim to the database entries
479  * @param[in] data not relevant
480  */
481 extern void DIAG_AlertFlag(
482  DIAG_ID_e diagId,
483  DIAG_EVENT_e event,
484  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
485  uint32_t data);
486 
487 /**
488  * @brief diagnosis callback function for precharge abort reasons
489  * @param[in] diagId ID of diag entry
490  * @param[in] event OK, NOK or RESET
491  * @param[in] kpkDiagShim shim to the database entries
492  * @param[in] stringNumber stringNumber where precharging is performed
493  */
494 extern void DIAG_PrechargeProcess(
495  DIAG_ID_e diagId,
496  DIAG_EVENT_e event,
497  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
498  uint32_t stringNumber);
499 
500 /**
501  * @brief diagnosis callback function for aerosol alert
502  * @param[in] diagId ID of diag entry
503  * @param[in] event OK, NOK or RESET
504  * @param[in] kpkDiagShim shim to the database entries
505  * @param[in] data not relevant
506  */
507 extern void DIAG_AerosolAlert(
508  DIAG_ID_e diagId,
509  DIAG_EVENT_e event,
510  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
511  uint32_t data);
512 
513 /*========== Externalized Static Functions Prototypes (Unit Test) ===========*/
514 #ifdef UNITY_UNIT_TEST
515 #endif
516 
517 #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:73
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_ErrorCanTxQueueFull(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for CAN Tx related events
Definition: diag_cbs_can.c:109
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:72
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:73
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_PrechargeProcess(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t stringNumber)
diagnosis callback function for precharge abort reasons
Definition: diag_cbs_bms.c:92
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_I2c(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:71
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_AerosolAlert(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for aerosol alert
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:127
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:72
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_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:72
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 Rx related events
Definition: diag_cbs_can.c:90
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
void DIAG_Rtc(DIAG_ID_e diagId, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data)
diagnosis callback function for RTC related events
Definition: diag_cbs_rtc.c:71
Diagnostic module configuration header.
DIAG_EVENT_e
Definition: diag_cfg.h:266
DIAG_ID_e
Definition: diag_cfg.h:176