foxBMS - Unit Tests  1.2.1
The foxBMS Unit Tests API Documentation
DIAG_CH_CFG Struct Reference

#include <diag_cfg.h>

Data Fields

DIAG_ID_e id
 
uint16_t threshold
 
DIAG_SEVERITY_LEVEL_e severity
 
uint32_t delay_ms
 
DIAG_RECORDING_e enable_recording
 
DIAG_EVALUATE_e enable_evaluate
 
DIAG_CALLBACK_FUNCTION_ffpCallback
 

Detailed Description

Channel configuration of one diag channel

Definition at line 301 of file diag_cfg.h.

Field Documentation

◆ delay_ms

uint32_t DIAG_CH_CFG::delay_ms

delay in ms after error detection if severity is DIAG_FATAL_ERROR until an opening the contactors

Definition at line 310 of file diag_cfg.h.

◆ enable_evaluate

DIAG_EVALUATE_e DIAG_CH_CFG::enable_evaluate

if enabled diagnosis event will be evaluated

Definition at line 312 of file diag_cfg.h.

◆ enable_recording

DIAG_RECORDING_e DIAG_CH_CFG::enable_recording

if enabled recording in diag_memory * will be activated

Definition at line 311 of file diag_cfg.h.

◆ fpCallback

DIAG_CALLBACK_FUNCTION_f* DIAG_CH_CFG::fpCallback

will be called if number of events exceeds threshold in both directions with parameter DIAG_EVENT_e string id or system related data

Definition at line 313 of file diag_cfg.h.

◆ id

DIAG_ID_e DIAG_CH_CFG::id

diagnosis event id diag_id

Definition at line 302 of file diag_cfg.h.

◆ severity

DIAG_SEVERITY_LEVEL_e DIAG_CH_CFG::severity

severity of diag entry, DIAG_FATAL_ERROR will lead to an opening of the contactors

Definition at line 308 of file diag_cfg.h.

◆ threshold

uint16_t DIAG_CH_CFG::threshold

threshold for number of events which will be tolerated before generating a notification in both directions: threshold = 0: reports the value at first occurrence, threshold = 1: reports the value at second occurrence

Definition at line 303 of file diag_cfg.h.


The documentation for this struct was generated from the following file: