54 #ifndef FOXBMS__DIAG_H_
55 #define FOXBMS__DIAG_H_
uint32_t DIAG_GetDelay(DIAG_ID_e diagnosisEntry)
Get configured delay of passed diagnosis entry.
void DIAG_PrintErrors(void)
Prints contents of the error buffer on user request.
@ DIAG_HANDLER_RETURN_NOT_READY
@ DIAG_HANDLER_INVALID_DATA
@ DIAG_HANDLER_RETURN_WRONG_ID
@ DIAG_HANDLER_INVALID_TYPE
@ DIAG_HANDLER_RETURN_WARNING_OCCURRED
@ DIAG_HANDLER_RETURN_ERR_OCCURRED
@ DIAG_HANDLER_INVALID_ERR_IMPACT
@ DIAG_HANDLER_RETURN_UNKNOWN
STD_RETURN_TYPE_e DIAG_GetDiagnosisEntryState(DIAG_ID_e diagnosisEntry)
Checks if passed diagnosis entry has been triggered or not.
bool DIAG_IsAnyFatalErrorSet(void)
Check if any fatal error is set.
enum DIAG_RETURNTYPE DIAG_RETURNTYPE_e
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.
@ DIAG_STATE_UNINITIALIZED
STD_RETURN_TYPE_e DIAG_Initialize(DIAG_DEV_s *diag_dev_pointer)
DIAG_Init initializes all needed structures/buffers.
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.
Diagnostic module configuration header.
enum DIAG_EVENT DIAG_EVENT_e
enum DIAG_IMPACT_LEVEL DIAG_IMPACT_LEVEL_e
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
uint8_t id2ch[DIAG_ID_MAX]
uint32_t err_enableflag[(DIAG_ID_MAX+31)/32]
uint8_t entry_cnt[DIAG_ID_MAX]
uint16_t occurrenceCounter[BS_NR_OF_STRINGS][DIAG_ID_MAX]
uint32_t errflag[(DIAG_ID_MAX+31)/32]
uint32_t warnflag[(DIAG_ID_MAX+31)/32]
uint32_t entry_event[DIAG_ID_MAX]