foxBMS  1.6.0
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 hardwareModel
 
uint8_t hardwareMaskRevision
 
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 161 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 169 of file mxm_17841b.h.

◆ hardwareMaskRevision

uint8_t MXM_41B_INSTANCE_s::hardwareMaskRevision

mask revision of the connected IC

Definition at line 181 of file mxm_17841b.h.

◆ hardwareModel

uint16_t MXM_41B_INSTANCE_s::hardwareModel

model number of the connected IC

Definition at line 180 of file mxm_17841b.h.

◆ payloadLength

uint8_t MXM_41B_INSTANCE_s::payloadLength

length of the payload array

Definition at line 165 of file mxm_17841b.h.

◆ pPayload

uint16_t* MXM_41B_INSTANCE_s::pPayload

payload that is processed by the state-machine

Definition at line 164 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 168 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 166 of file mxm_17841b.h.

◆ regConfig1

uint8_t MXM_41B_INSTANCE_s::regConfig1

local storage for the Config 1 register

Definition at line 175 of file mxm_17841b.h.

◆ regConfig2

uint8_t MXM_41B_INSTANCE_s::regConfig2

local storage for the Config 2 register

Definition at line 176 of file mxm_17841b.h.

◆ regConfig3

uint8_t MXM_41B_INSTANCE_s::regConfig3

local storage for the Config 3 register

Definition at line 177 of file mxm_17841b.h.

◆ regFmea

uint8_t MXM_41B_INSTANCE_s::regFmea

FMEA register

Definition at line 179 of file mxm_17841b.h.

◆ regRxIntEnable

uint8_t MXM_41B_INSTANCE_s::regRxIntEnable

local storage for the RX Interrupt Enable register

Definition at line 171 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 178 of file mxm_17841b.h.

◆ regRxStatus

uint8_t MXM_41B_INSTANCE_s::regRxStatus

local storage for the RX Status register

Definition at line 173 of file mxm_17841b.h.

◆ regTxIntEnable

uint8_t MXM_41B_INSTANCE_s::regTxIntEnable

local storage for the TX Interrupt Enable register

Definition at line 172 of file mxm_17841b.h.

◆ regTxStatus

uint8_t MXM_41B_INSTANCE_s::regTxStatus

local storage for the TX status register

Definition at line 174 of file mxm_17841b.h.

◆ rxBufferLength

uint16_t MXM_41B_INSTANCE_s::rxBufferLength

length of the RX-buffer-array

Definition at line 167 of file mxm_17841b.h.

◆ shutdownTimeStamp

uint32_t MXM_41B_INSTANCE_s::shutdownTimeStamp

timestamp of the last shutdown (or startup) action

Definition at line 182 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 183 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 184 of file mxm_17841b.h.

◆ state

MXM_STATEMACH_41B_e MXM_41B_INSTANCE_s::state

state of Driver State Machine

Definition at line 162 of file mxm_17841b.h.

◆ substate

MXM_41B_SUBSTATES_e MXM_41B_INSTANCE_s::substate

substate of current Driver State

Definition at line 163 of file mxm_17841b.h.

◆ waitCounter

uint8_t MXM_41B_INSTANCE_s::waitCounter

general error counter, will be reset in funtions

Definition at line 170 of file mxm_17841b.h.


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