foxBMS - Unit Tests  1.3.0
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-05-30 (date of last update)
47  * @version v1.3.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 #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] ch_id ID of 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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 ch_id,
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] ch_id 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(DIAG_ID_e ch_id, DIAG_EVENT_e event, const DIAG_DATABASE_SHIM_s *const kpkDiagShim, uint32_t data);
324 
325 /**
326  * @brief diagnosis callback function for plausibility check related events
327  * @param[in] ch_id ID of diag entry
328  * @param[in] event #DIAG_EVENT_e
329  * @param[in] kpkDiagShim shim to the database entries
330  * @param[in] stringNumber stringNumber where current sensor event occurred
331  */
332 extern void DIAG_ErrorPlausibility(
333  DIAG_ID_e ch_id,
334  DIAG_EVENT_e event,
335  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
336  uint32_t stringNumber);
337 
338 /**
339  * @brief diagnosis callback function for string contactor feedback related events
340  * @param[in] ch_id ID of diag entry
341  * @param[in] event #DIAG_EVENT_e
342  * @param[in] kpkDiagShim shim to the database entries
343  * @param[in] stringNumber stringNumber where contactor feedback event occurred
344  */
345 extern void DIAG_StringContactorFeedback(
346  DIAG_ID_e ch_id,
347  DIAG_EVENT_e event,
348  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
349  uint32_t stringNumber);
350 
351 /**
352  * @brief diagnosis callback function for precharge contactor feedback related events
353  * @param[in] ch_id ID of diag entry
354  * @param[in] event #DIAG_EVENT_e
355  * @param[in] kpkDiagShim shim to the database entries
356  * @param[in] stringNumber stringNumber where precharge feedback event occurred
357  */
359  DIAG_ID_e ch_id,
360  DIAG_EVENT_e event,
361  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
362  uint32_t stringNumber);
363 
364 /**
365  * @brief diagnosis callback function for plausibility check related events
366  * @param[in] ch_id ID of diag entry
367  * @param[in] event #DIAG_EVENT_e
368  * @param[in] kpkDiagShim shim to the database entries
369  * @param[in] stringNumber stringNumber where precharge feedback event occurred
370  */
371 extern void DIAG_PlausibilityCheck(
372  DIAG_ID_e ch_id,
373  DIAG_EVENT_e event,
374  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
375  uint32_t stringNumber);
376 
377 /**
378  * @brief diagnosis callback function for deep discharge events
379  * @param[in] ch_id ID of diag entry
380  * @param[in] event OK, NOK or RESET
381  * @param[in] kpkDiagShim shim to the database entries
382  * @param[in] stringNumber stringNumber where deep discharge event occurred
383  */
384 extern void DIAG_ErrorDeepDischarge(
385  DIAG_ID_e ch_id,
386  DIAG_EVENT_e event,
387  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
388  uint32_t stringNumber);
389 
390 /**
391  * @brief diagnosis callback function for current sensor related events
392  * @param[in] ch_id ID of diag entry
393  * @param[in] event OK, NOK or RESET
394  * @param[in] kpkDiagShim shim to the database entries
395  * @param[in] stringNumber TODO
396  */
397 extern void DIAG_ErrorPowerMeasurement(
398  DIAG_ID_e ch_id,
399  DIAG_EVENT_e event,
400  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
401  uint32_t stringNumber);
402 
403 extern void DIAG_Insulation(
404  DIAG_ID_e ch_id,
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 I2C port expander related events
411  * @param[in] ch_id ID of diag entry
412  * @param[in] event OK, NOK or RESET
413  * @param[in] kpkDiagShim shim to the database entries
414  * @param[in] data not relevant
415  */
416 extern void DIAG_I2cPex(
417  DIAG_ID_e ch_id,
418  DIAG_EVENT_e event,
419  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
420  uint32_t data);
421 
422 /**
423  * @brief diagnosis callback function for FRAM related events
424  * @param[in] ch_id ID of diag entry
425  * @param[in] event OK, NOK or RESET
426  * @param[in] kpkDiagShim shim to the database entries
427  * @param[in] data not relevant
428  */
429 extern void DIAG_FramError(
430  DIAG_ID_e ch_id,
431  DIAG_EVENT_e event,
432  const DIAG_DATABASE_SHIM_s *const kpkDiagShim,
433  uint32_t data);
434 
435 /*========== Externalized Static Functions Prototypes (Unit Test) ===========*/
436 
437 #endif /* FOXBMS__DIAG_CBS_H_ */
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.
Diagnostic module configuration header.
DIAG_EVENT_e
Definition: diag_cfg.h:237
DIAG_ID_e
Definition: diag_cfg.h:157
General macros and definitions for the whole platform.