foxBMS  1.4.1
The foxBMS Battery Management System API Documentation
SBC_STATE_s Struct Reference

#include <sbc.h>

Collaboration diagram for SBC_STATE_s:

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
 
FS85_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 155 of file sbc.h.

Field Documentation

◆ illegalRequestsCounter

uint32_t SBC_STATE_s::illegalRequestsCounter

counts the number of illegal requests to the SBC state machine

Definition at line 163 of file sbc.h.

◆ lastState

SBC_STATEMACHINE_e SBC_STATE_s::lastState

previous state of the state machine

Definition at line 161 of file sbc.h.

◆ lastSubstate

SBC_STATEMACHINE_SUB_e SBC_STATE_s::lastSubstate

previous substate of the state machine

Definition at line 162 of file sbc.h.

◆ pFs85xxInstance

FS85_STATE_s* SBC_STATE_s::pFs85xxInstance

pointer to FS85xx instance

Definition at line 168 of file sbc.h.

◆ requestWatchdogTrigger

uint8_t SBC_STATE_s::requestWatchdogTrigger

required watchdog triggers during init to correctly initialize SBC

Definition at line 165 of file sbc.h.

◆ retryCounter

uint8_t SBC_STATE_s::retryCounter

counter to retry subsystem initialization if fails

Definition at line 164 of file sbc.h.

◆ state

SBC_STATEMACHINE_e SBC_STATE_s::state

state of Driver State Machine

Definition at line 159 of file sbc.h.

◆ stateRequest

SBC_STATE_REQUEST_e SBC_STATE_s::stateRequest

current state request made to the state machine

Definition at line 158 of file sbc.h.

◆ substate

SBC_STATEMACHINE_SUB_e SBC_STATE_s::substate

current substate of the state machine

Definition at line 160 of file sbc.h.

◆ timer

uint16_t SBC_STATE_s::timer

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

Definition at line 156 of file sbc.h.

◆ triggerEntry

uint8_t SBC_STATE_s::triggerEntry

counter for re-entrance protection (function running flag)

Definition at line 166 of file sbc.h.

◆ watchdogPeriod_10ms

uint16_t SBC_STATE_s::watchdogPeriod_10ms

watchdog trigger frequency in 10ms

Definition at line 169 of file sbc.h.

◆ watchdogState

SBC_PERIODIC_WATCHDOG_STATE_e SBC_STATE_s::watchdogState

state if periodic watchdog trigger is required or not

Definition at line 167 of file sbc.h.

◆ watchdogTrigger

uint16_t SBC_STATE_s::watchdogTrigger

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

Definition at line 157 of file sbc.h.


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