foxBMS  1.2.0
The foxBMS Battery Management System API Documentation
DIAG Struct Reference

#include <diag.h>

Data Fields

DIAG_STATE_e state
 
uint16_t errcnttotal
 
uint16_t errcntreported
 
uint32_t entry_event [DIAG_ID_MAX]
 
uint8_t entry_cnt [DIAG_ID_MAX]
 
uint16_t occurrenceCounter [BS_NR_OF_STRINGS][DIAG_ID_MAX]
 
uint8_t id2ch [DIAG_ID_MAX]
 
uint8_t nr_of_ch
 
uint32_t errflag [(DIAG_ID_MAX+31)/32]
 
uint32_t warnflag [(DIAG_ID_MAX+31)/32]
 
uint32_t err_enableflag [(DIAG_ID_MAX+31)/32]
 

Detailed Description

central state struct of the diag module

Definition at line 84 of file diag.h.

Field Documentation

◆ entry_cnt

uint8_t DIAG::entry_cnt[DIAG_ID_MAX]

reported event counter used for limitation

Definition at line 89 of file diag.h.

◆ entry_event

uint32_t DIAG::entry_event[DIAG_ID_MAX]

last detected entry event

Definition at line 88 of file diag.h.

◆ err_enableflag

uint32_t DIAG::err_enableflag[(DIAG_ID_MAX+31)/32]

enabled error flags (bit_nr = diag_id)

Definition at line 95 of file diag.h.

◆ errcntreported

uint16_t DIAG::errcntreported

reported error counts to external tool

Definition at line 87 of file diag.h.

◆ errcnttotal

uint16_t DIAG::errcnttotal

total counts of diagnosis entry records

Definition at line 86 of file diag.h.

◆ errflag

uint32_t DIAG::errflag[(DIAG_ID_MAX+31)/32]

detected error flags (bit_nr = diag_id)

Definition at line 93 of file diag.h.

◆ id2ch

uint8_t DIAG::id2ch[DIAG_ID_MAX]

diagnosis-id to configuration channel selector

Definition at line 91 of file diag.h.

◆ nr_of_ch

uint8_t DIAG::nr_of_ch

number of configured channels

Definition at line 92 of file diag.h.

◆ occurrenceCounter

uint16_t DIAG::occurrenceCounter[BS_NR_OF_STRINGS][DIAG_ID_MAX]

counter for the occurrence of diag events

Definition at line 90 of file diag.h.

◆ state

DIAG_STATE_e DIAG::state

actual state of diagnosis module

Definition at line 85 of file diag.h.

◆ warnflag

uint32_t DIAG::warnflag[(DIAG_ID_MAX+31)/32]

detected warning flags (bit_nr = diag_id)

Definition at line 94 of file diag.h.


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