foxBMS  1.2.1
The foxBMS Battery Management System API Documentation
N775_STATE Struct Reference

#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
 

Detailed Description

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.

Field Documentation

◆ balanceControlDone

STD_RETURN_TYPE_e N775_STATE::balanceControlDone

indicates if balance control was done

Definition at line 238 of file n775_defs.h.

◆ checkSpiFlag

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.

◆ errRequestCounter

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.

◆ firstMeasurementMade

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.

◆ lastState

N775_STATEMACH_e N775_STATE::lastState

previous state of the state machine

Definition at line 232 of file n775_defs.h.

◆ lastSubState

uint8_t N775_STATE::lastSubState

previous substate of the state machine

Definition at line 233 of file n775_defs.h.

◆ remainingMessages

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.

◆ rxTransmitOngoing

bool N775_STATE::rxTransmitOngoing

indicates if a transmission is ongoing with the daisy-chain

Definition at line 240 of file n775_defs.h.

◆ state

N775_STATEMACH_e N775_STATE::state

state of Driver State Machine

Definition at line 230 of file n775_defs.h.

◆ stateReq

N775_STATE_REQUEST_e N775_STATE::stateReq

current state request made to the state machine

Definition at line 229 of file n775_defs.h.

◆ subState

uint8_t N775_STATE::subState

current substate of the state machine

Definition at line 231 of file n775_defs.h.

◆ timer

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.

◆ totalMessages

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.

◆ triggerEntry

uint8_t N775_STATE::triggerEntry

counter for re-entrance protection (function running flag)

Definition at line 235 of file n775_defs.h.

◆ txTransmitOngoing

bool N775_STATE::txTransmitOngoing

indicates if a transmission is ongoing with the daisy-chain

Definition at line 239 of file n775_defs.h.


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