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

#include <sbc.h>

Collaboration diagram for SBC_STATE:

Data Fields

uint16_t timer
 
uint16_t watchdogTrigger
 
SBC_STATE_REQUEST_e stateRequest
 
SBC_STATEMACHINE_e state
 
SBC_STATEMACHINE_SUB_e substate
 
SBC_STATEMACHINE_e lastState
 
SBC_STATEMACHINE_SUB_e lastSubstate
 
uint32_t illegalRequestsCounter
 
uint8_t retryCounter
 
uint8_t requestWatchdogTrigger
 
uint8_t triggerEntry
 
SBC_PERIODIC_WATCHDOG_STATE_e watchdogState
 
FS85xx_STATE_spFs85xxInstance
 
uint16_t watchdogPeriod_10ms
 

Detailed Description

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

Definition at line 154 of file sbc.h.

Field Documentation

◆ illegalRequestsCounter

uint32_t SBC_STATE::illegalRequestsCounter

counts the number of illegal requests to the SBC state machine

Definition at line 162 of file sbc.h.

◆ lastState

SBC_STATEMACHINE_e SBC_STATE::lastState

previous state of the state machine

Definition at line 160 of file sbc.h.

◆ lastSubstate

SBC_STATEMACHINE_SUB_e SBC_STATE::lastSubstate

previous substate of the state machine

Definition at line 161 of file sbc.h.

◆ pFs85xxInstance

FS85xx_STATE_s* SBC_STATE::pFs85xxInstance

pointer to FS85xx instance

Definition at line 167 of file sbc.h.

◆ requestWatchdogTrigger

uint8_t SBC_STATE::requestWatchdogTrigger

required watchdog triggers during init to correctly initialize SBC

Definition at line 164 of file sbc.h.

◆ retryCounter

uint8_t SBC_STATE::retryCounter

counter to retry subsystem initialization if fails

Definition at line 163 of file sbc.h.

◆ state

SBC_STATEMACHINE_e SBC_STATE::state

state of Driver State Machine

Definition at line 158 of file sbc.h.

◆ stateRequest

SBC_STATE_REQUEST_e SBC_STATE::stateRequest

current state request made to the state machine

Definition at line 157 of file sbc.h.

◆ substate

SBC_STATEMACHINE_SUB_e SBC_STATE::substate

current substate of the state machine

Definition at line 159 of file sbc.h.

◆ timer

uint16_t SBC_STATE::timer

time in ms before the state machine processes the next state, in counts of 10ms

Definition at line 155 of file sbc.h.

◆ triggerEntry

uint8_t SBC_STATE::triggerEntry

counter for re-entrance protection (function running flag)

Definition at line 165 of file sbc.h.

◆ watchdogPeriod_10ms

uint16_t SBC_STATE::watchdogPeriod_10ms

watchdog trigger frequency in 10ms

Definition at line 168 of file sbc.h.

◆ watchdogState

SBC_PERIODIC_WATCHDOG_STATE_e SBC_STATE::watchdogState

state if periodic watchdog trigger is required or not

Definition at line 166 of file sbc.h.

◆ watchdogTrigger

uint16_t SBC_STATE::watchdogTrigger

time in ms before the state machine triggers watchdog, in counts of 10ms

Definition at line 156 of file sbc.h.


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