foxBMS - Unit Tests
1.2.1
The foxBMS Unit Tests API Documentation
|
#include <n775_defs.h>
Data Fields | |
uint16_t | timer |
N775_STATE_REQUEST_e | stateReq |
N775_STATEMACH_e | state |
uint8_t | subState |
N775_STATEMACH_e | lastState |
uint8_t | lastSubState |
uint32_t | errRequestCounter |
uint8_t | triggerEntry |
STD_RETURN_TYPE_e | firstMeasurementMade |
STD_RETURN_TYPE_e | checkSpiFlag |
STD_RETURN_TYPE_e | balanceControlDone |
bool | txTransmitOngoing |
bool | rxTransmitOngoing |
uint16_t | totalMessages |
uint16_t | remainingMessages |
This structure contains all the variables relevant for the N775 state machine. The user can get the current state of the N775 state machine with this variable
Definition at line 227 of file n775_defs.h.
STD_RETURN_TYPE_e N775_STATE::balanceControlDone |
indicates if balance control was done
Definition at line 238 of file n775_defs.h.
STD_RETURN_TYPE_e N775_STATE::checkSpiFlag |
indicates if interrupt flag or timer must be considered
Definition at line 237 of file n775_defs.h.
uint32_t N775_STATE::errRequestCounter |
counts the number of illegal requests to the N775 state machine
Definition at line 234 of file n775_defs.h.
STD_RETURN_TYPE_e N775_STATE::firstMeasurementMade |
flag that indicates if the first measurement cycle was completed
Definition at line 236 of file n775_defs.h.
N775_STATEMACH_e N775_STATE::lastState |
previous state of the state machine
Definition at line 232 of file n775_defs.h.
uint8_t N775_STATE::lastSubState |
previous substate of the state machine
Definition at line 233 of file n775_defs.h.
uint16_t N775_STATE::remainingMessages |
counter of number of messages still to be received from the daisy-chain
Definition at line 242 of file n775_defs.h.
bool N775_STATE::rxTransmitOngoing |
indicates if a transmission is ongoing with the daisy-chain
Definition at line 240 of file n775_defs.h.
N775_STATEMACH_e N775_STATE::state |
state of Driver State Machine
Definition at line 230 of file n775_defs.h.
N775_STATE_REQUEST_e N775_STATE::stateReq |
current state request made to the state machine
Definition at line 229 of file n775_defs.h.
uint8_t N775_STATE::subState |
current substate of the state machine
Definition at line 231 of file n775_defs.h.
uint16_t N775_STATE::timer |
time in ms before the state machine processes the next state, e.g. in counts of 1ms
Definition at line 228 of file n775_defs.h.
uint16_t N775_STATE::totalMessages |
total number of messages to be received from the daisy-chain
Definition at line 241 of file n775_defs.h.
uint8_t N775_STATE::triggerEntry |
counter for re-entrance protection (function running flag)
Definition at line 235 of file n775_defs.h.
bool N775_STATE::txTransmitOngoing |
indicates if a transmission is ongoing with the daisy-chain
Definition at line 239 of file n775_defs.h.