foxBMS  1.4.1
The foxBMS Battery Management System API Documentation
MXM_41B_INSTANCE_s Struct Reference

Struct for the state-variable of state-machine. More...

#include <mxm_17841b.h>

Data Fields

MXM_STATEMACH_41B_e state
 
MXM_41B_SUBSTATES_e substate
 
uint16_t * pPayload
 
uint8_t payloadLength
 
uint16_t * pRxBuffer
 
uint16_t rxBufferLength
 
MXM_41B_STATE_REQUEST_STATUS_eprocessed
 
uint8_t extendMessageBytes
 
uint8_t waitCounter
 
uint8_t regRXIntEnable
 
uint8_t regTXIntEnable
 
uint8_t regRXStatus
 
uint8_t regTXStatus
 
uint8_t regConfig1
 
uint8_t regConfig2
 
uint8_t regConfig3
 
uint8_t regRxSpace
 
uint8_t regFmea
 
uint16_t hwModel
 
uint8_t hwMaskRevision
 
uint32_t shutdownTimeStamp
 
uint16_t spiRXBuffer [MXM_SPI_RX_BUFFER_LENGTH]
 
uint16_t spiTXBuffer [MXM_SPI_TX_BUFFER_LENGTH]
 

Detailed Description

Struct for the state-variable of state-machine.

This struct defines the state-variable of the MXM_41BStateMachine().

Definition at line 158 of file mxm_17841b.h.

Field Documentation

◆ extendMessageBytes

uint8_t MXM_41B_INSTANCE_s::extendMessageBytes

pass on number of bytes by which the TX-message shall be extended

Definition at line 166 of file mxm_17841b.h.

◆ hwMaskRevision

uint8_t MXM_41B_INSTANCE_s::hwMaskRevision

mask revision of the connected IC

Definition at line 178 of file mxm_17841b.h.

◆ hwModel

uint16_t MXM_41B_INSTANCE_s::hwModel

model number of the connected IC

Definition at line 177 of file mxm_17841b.h.

◆ payloadLength

uint8_t MXM_41B_INSTANCE_s::payloadLength

length of the payload array

Definition at line 162 of file mxm_17841b.h.

◆ pPayload

uint16_t* MXM_41B_INSTANCE_s::pPayload

payload that is processed by the state-machine

Definition at line 161 of file mxm_17841b.h.

◆ processed

MXM_41B_STATE_REQUEST_STATUS_e* MXM_41B_INSTANCE_s::processed

status-indicator of the state-machine

Definition at line 165 of file mxm_17841b.h.

◆ pRxBuffer

uint16_t* MXM_41B_INSTANCE_s::pRxBuffer

pointer to an RX-buffer that will be filled by the state-machine

Definition at line 163 of file mxm_17841b.h.

◆ regConfig1

uint8_t MXM_41B_INSTANCE_s::regConfig1

local storage for the Config 1 register

Definition at line 172 of file mxm_17841b.h.

◆ regConfig2

uint8_t MXM_41B_INSTANCE_s::regConfig2

local storage for the Config 2 register

Definition at line 173 of file mxm_17841b.h.

◆ regConfig3

uint8_t MXM_41B_INSTANCE_s::regConfig3

local storage for the Config 3 register

Definition at line 174 of file mxm_17841b.h.

◆ regFmea

uint8_t MXM_41B_INSTANCE_s::regFmea

FMEA register

Definition at line 176 of file mxm_17841b.h.

◆ regRXIntEnable

uint8_t MXM_41B_INSTANCE_s::regRXIntEnable

local storage for the RX Interrupt Enable register

Definition at line 168 of file mxm_17841b.h.

◆ regRxSpace

uint8_t MXM_41B_INSTANCE_s::regRxSpace

RX space register (shows the left space in RX buffer)

Definition at line 175 of file mxm_17841b.h.

◆ regRXStatus

uint8_t MXM_41B_INSTANCE_s::regRXStatus

local storage for the RX Status register

Definition at line 170 of file mxm_17841b.h.

◆ regTXIntEnable

uint8_t MXM_41B_INSTANCE_s::regTXIntEnable

local storage for the TX Interrupt Enable register

Definition at line 169 of file mxm_17841b.h.

◆ regTXStatus

uint8_t MXM_41B_INSTANCE_s::regTXStatus

local storage for the TX status register

Definition at line 171 of file mxm_17841b.h.

◆ rxBufferLength

uint16_t MXM_41B_INSTANCE_s::rxBufferLength

length of the RX-buffer-array

Definition at line 164 of file mxm_17841b.h.

◆ shutdownTimeStamp

uint32_t MXM_41B_INSTANCE_s::shutdownTimeStamp

timestamp of the last shutdown (or startup) action

Definition at line 179 of file mxm_17841b.h.

◆ spiRXBuffer

uint16_t MXM_41B_INSTANCE_s::spiRXBuffer[MXM_SPI_RX_BUFFER_LENGTH]

rx buffer for SPI

Definition at line 180 of file mxm_17841b.h.

◆ spiTXBuffer

uint16_t MXM_41B_INSTANCE_s::spiTXBuffer[MXM_SPI_TX_BUFFER_LENGTH]

tx buffer for SPI

Definition at line 181 of file mxm_17841b.h.

◆ state

MXM_STATEMACH_41B_e MXM_41B_INSTANCE_s::state

state of Driver State Machine

Definition at line 159 of file mxm_17841b.h.

◆ substate

MXM_41B_SUBSTATES_e MXM_41B_INSTANCE_s::substate

substate of current Driver State

Definition at line 160 of file mxm_17841b.h.

◆ waitCounter

uint8_t MXM_41B_INSTANCE_s::waitCounter

general error counter, will be reset in funtions

Definition at line 167 of file mxm_17841b.h.


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