|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
54 #ifndef FOXBMS__DIAG_H_
55 #define FOXBMS__DIAG_H_
enum DIAG_IMPACT_LEVEL DIAG_IMPACT_LEVEL_e
Diagnostic module configuration header.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
@ DIAG_HANDLER_INVALID_TYPE
@ DIAG_HANDLER_INVALID_ERR_IMPACT
uint32_t err_enableflag[(DIAG_ID_MAX+31)/32]
uint8_t id2ch[DIAG_ID_MAX]
void DIAG_PrintErrors(void)
Prints contents of the error buffer on user request.
@ DIAG_STATE_UNINITIALIZED
uint32_t warnflag[(DIAG_ID_MAX+31)/32]
@ DIAG_HANDLER_RETURN_UNKNOWN
uint32_t errflag[(DIAG_ID_MAX+31)/32]
uint32_t entry_event[DIAG_ID_MAX]
STD_RETURN_TYPE_e DIAG_CheckEvent(STD_RETURN_TYPE_e cond, DIAG_ID_e diag_id, DIAG_IMPACT_LEVEL_e impact, uint32_t data)
DIAG_CheckEvent provides a simple interface to check an event for STD_OK.
@ DIAG_HANDLER_RETURN_NOT_READY
enum DIAG_EVENT DIAG_EVENT_e
@ DIAG_HANDLER_RETURN_ERR_OCCURRED
enum DIAG_RETURNTYPE DIAG_RETURNTYPE_e
uint8_t entry_cnt[DIAG_ID_MAX]
@ DIAG_HANDLER_RETURN_WRONG_ID
DIAG_RETURNTYPE_e DIAG_Handler(DIAG_ID_e diag_id, DIAG_EVENT_e event, DIAG_IMPACT_LEVEL_e impact, uint32_t data)
DIAG_Handler provides generic error handling, based on diagnosis group.
uint16_t occurrenceCounter[BS_NR_OF_STRINGS][DIAG_ID_MAX]
@ DIAG_HANDLER_RETURN_WARNING_OCCURRED
@ DIAG_HANDLER_INVALID_DATA
STD_RETURN_TYPE_e DIAG_Initialize(DIAG_DEV_s *diag_dev_pointer)
DIAG_Init initializes all needed structures/buffers.