foxBMS  1.6.0
The foxBMS Battery Management System API Documentation
DIAG_ID_CFG_s Struct Reference

#include <diag_cfg.h>

Data Fields

DIAG_ID_e id
uint16_t threshold
uint32_t delay_ms
DIAG_RECORDING_e enable_recording
DIAG_EVALUATE_e enable_evaluate

Detailed Description

Channel configuration of one diag channel

Definition at line 333 of file diag_cfg.h.

Field Documentation

◆ delay_ms

uint32_t DIAG_ID_CFG_s::delay_ms

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

Definition at line 342 of file diag_cfg.h.

◆ enable_evaluate

DIAG_EVALUATE_e DIAG_ID_CFG_s::enable_evaluate

if enabled diagnosis event will be evaluated

Definition at line 344 of file diag_cfg.h.

◆ enable_recording

DIAG_RECORDING_e DIAG_ID_CFG_s::enable_recording

if enabled recording in diag_memory * will be activated

Definition at line 343 of file diag_cfg.h.

◆ 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 345 of file diag_cfg.h.

◆ id


diagnosis event id diag_id

Definition at line 334 of file diag_cfg.h.

◆ severity


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

Definition at line 340 of file diag_cfg.h.

◆ threshold

uint16_t DIAG_ID_CFG_s::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 335 of file diag_cfg.h.

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