foxBMS  1.6.0
The foxBMS Battery Management System 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 104 of file interlock.h.

Field Documentation

◆ counter

uint8_t ILCK_STATE_s::counter

general purpose counter

Definition at line 113 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 111 of file interlock.h.

◆ laststate

ILCK_STATEMACH_e ILCK_STATE_s::laststate

previous state of the state machine

Definition at line 109 of file interlock.h.

◆ lastsubstate

ILCK_STATEMACH_SUB_e ILCK_STATE_s::lastsubstate

previous substate of the state machine

Definition at line 110 of file interlock.h.

◆ state

ILCK_STATEMACH_e ILCK_STATE_s::state

state of Driver State Machine

Definition at line 107 of file interlock.h.

◆ statereq

ILCK_STATE_REQUEST_e ILCK_STATE_s::statereq

current state request made to the state machine

Definition at line 106 of file interlock.h.

◆ substate

ILCK_STATEMACH_SUB_e ILCK_STATE_s::substate

current substate of the state machine

Definition at line 108 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 105 of file interlock.h.

◆ triggerentry

uint8_t ILCK_STATE_s::triggerentry

counter for re-entrance protection (function running flag)

Definition at line 112 of file interlock.h.


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