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

#include <sys.h>

Data Fields

uint16_t timer
 
SYS_STATE_REQUEST_e stateRequest
 
SYS_STATEMACH_e state
 
SYS_STATEMACH_SUB_e substate
 
SYS_STATEMACH_e lastState
 
SYS_STATEMACH_SUB_e lastSubstate
 
uint32_t illegalRequestsCounter
 
uint16_t initializationTimeout
 
uint8_t triggerEntry
 

Detailed Description

This structure contains all the variables relevant for the CONT state machine. The user can get the current state of the CONT state machine with this variable

Definition at line 163 of file sys.h.

Field Documentation

◆ illegalRequestsCounter

uint32_t SYS_STATE::illegalRequestsCounter

counts the number of illegal requests to the SYS state machine

Definition at line 170 of file sys.h.

◆ initializationTimeout

uint16_t SYS_STATE::initializationTimeout

Timeout to wait for initialization of state machine state machine

Definition at line 171 of file sys.h.

◆ lastState

SYS_STATEMACH_e SYS_STATE::lastState

previous state of the state machine

Definition at line 168 of file sys.h.

◆ lastSubstate

SYS_STATEMACH_SUB_e SYS_STATE::lastSubstate

previous substate of the state machine

Definition at line 169 of file sys.h.

◆ state

SYS_STATEMACH_e SYS_STATE::state

state of Driver State Machine

Definition at line 166 of file sys.h.

◆ stateRequest

SYS_STATE_REQUEST_e SYS_STATE::stateRequest

current state request made to the state machine

Definition at line 165 of file sys.h.

◆ substate

SYS_STATEMACH_SUB_e SYS_STATE::substate

current substate of the state machine

Definition at line 167 of file sys.h.

◆ timer

uint16_t SYS_STATE::timer

time in ms before the state machine processes the next state, e.g. in counts of 1ms

Definition at line 164 of file sys.h.

◆ triggerEntry

uint8_t SYS_STATE::triggerEntry

counter for re-entrance protection (function running flag)

Definition at line 172 of file sys.h.


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