foxBMS - Unit Tests  1.5.0
The foxBMS Unit Tests API Documentation
SYS_STATE_s 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 170 of file sys.h.

Field Documentation

◆ illegalRequestsCounter

uint32_t SYS_STATE_s::illegalRequestsCounter

counts the number of illegal requests to the SYS state machine

Definition at line 177 of file sys.h.

◆ initializationTimeout

uint16_t SYS_STATE_s::initializationTimeout

Timeout to wait for initialization of state machine state machine

Definition at line 178 of file sys.h.

◆ lastState

SYS_STATEMACH_e SYS_STATE_s::lastState

previous state of the state machine

Definition at line 175 of file sys.h.

◆ lastSubstate

SYS_STATEMACH_SUB_e SYS_STATE_s::lastSubstate

previous substate of the state machine

Definition at line 176 of file sys.h.

◆ state

SYS_STATEMACH_e SYS_STATE_s::state

state of Driver State Machine

Definition at line 173 of file sys.h.

◆ stateRequest

SYS_STATE_REQUEST_e SYS_STATE_s::stateRequest

current state request made to the state machine

Definition at line 172 of file sys.h.

◆ substate

SYS_STATEMACH_SUB_e SYS_STATE_s::substate

current substate of the state machine

Definition at line 174 of file sys.h.

◆ timer

uint16_t SYS_STATE_s::timer

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

Definition at line 171 of file sys.h.

◆ triggerEntry

uint8_t SYS_STATE_s::triggerEntry

counter for re-entrance protection (function running flag)

Definition at line 179 of file sys.h.


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