foxBMS
1.2.1
The foxBMS Battery Management System API Documentation
|
#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 |
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 101 of file interlock.h.
uint8_t ILCK_STATE_s::counter |
general purpose counter
Definition at line 115 of file interlock.h.
uint32_t ILCK_STATE_s::ErrRequestCounter |
counts the number of illegal requests to the LTC state machine
Definition at line 113 of file interlock.h.
ILCK_STATEMACH_e ILCK_STATE_s::laststate |
previous state of the state machine
Definition at line 110 of file interlock.h.
ILCK_STATEMACH_SUB_e ILCK_STATE_s::lastsubstate |
previous substate of the state machine
Definition at line 112 of file interlock.h.
ILCK_STATEMACH_e ILCK_STATE_s::state |
state of Driver State Machine
Definition at line 106 of file interlock.h.
ILCK_STATE_REQUEST_e ILCK_STATE_s::statereq |
current state request made to the state machine
Definition at line 104 of file interlock.h.
ILCK_STATEMACH_SUB_e ILCK_STATE_s::substate |
current substate of the state machine
Definition at line 108 of file interlock.h.
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 102 of file interlock.h.
uint8_t ILCK_STATE_s::triggerentry |
counter for re-entrance protection (function running flag)
Definition at line 114 of file interlock.h.