foxBMS-UnitTests  1.0.1
The foxBMS Unit Tests API Documentation
ILCK_STATE_s Struct Reference

#include <interlock.h>

Data Fields

uint16_t timer
 
ILCK_STATE_REQUEST_e statereq
 
ILCK_STATEMACH_e state
 
ILCK_STATEMACH_SUB_e substate
 
ILCK_STATEMACH_e laststate
 
ILCK_STATEMACH_SUB_e lastsubstate
 
uint32_t ErrRequestCounter
 
uint8_t triggerentry
 
uint8_t counter
 

Detailed Description

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

Definition at line 113 of file interlock.h.

Field Documentation

◆ counter

uint8_t ILCK_STATE_s::counter

general purpose counter

Definition at line 127 of file interlock.h.

◆ ErrRequestCounter

uint32_t ILCK_STATE_s::ErrRequestCounter

counts the number of illegal requests to the LTC state machine

Definition at line 125 of file interlock.h.

◆ laststate

ILCK_STATEMACH_e ILCK_STATE_s::laststate

previous state of the state machine

Definition at line 122 of file interlock.h.

◆ lastsubstate

ILCK_STATEMACH_SUB_e ILCK_STATE_s::lastsubstate

previous substate of the state machine

Definition at line 124 of file interlock.h.

◆ state

ILCK_STATEMACH_e ILCK_STATE_s::state

state of Driver State Machine

Definition at line 118 of file interlock.h.

◆ statereq

ILCK_STATE_REQUEST_e ILCK_STATE_s::statereq

current state request made to the state machine

Definition at line 116 of file interlock.h.

◆ substate

ILCK_STATEMACH_SUB_e ILCK_STATE_s::substate

current substate of the state machine

Definition at line 120 of file interlock.h.

◆ timer

uint16_t ILCK_STATE_s::timer

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

Definition at line 114 of file interlock.h.

◆ triggerentry

uint8_t ILCK_STATE_s::triggerentry

counter for re-entrance protection (function running flag)

Definition at line 126 of file interlock.h.


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