foxBMS-UnitTests  1.0.0
The foxBMS Unit Tests API Documentation
MXM_41B_INSTANCE 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
 
uint16_t payloadLength
 
uint16_t * pRxBuffer
 
uint16_t rxBufferLength
 
MXM_41B_STATE_REQUEST_STATUS_eprocessed
 
uint16_t aliveCounter
 
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
 
uint16_t hwModel
 
uint8_t hwMaskRevision
 
uint16_t spiRXBuffer [100]
 
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 149 of file mxm_17841b.h.

Field Documentation

◆ aliveCounter

uint16_t MXM_41B_INSTANCE::aliveCounter

TODO: clarify

Definition at line 157 of file mxm_17841b.h.

◆ extendMessageBytes

uint8_t MXM_41B_INSTANCE::extendMessageBytes

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

Definition at line 158 of file mxm_17841b.h.

◆ hwMaskRevision

uint8_t MXM_41B_INSTANCE::hwMaskRevision

mask revision of the connected IC

Definition at line 168 of file mxm_17841b.h.

◆ hwModel

uint16_t MXM_41B_INSTANCE::hwModel

model number of the connected IC

Definition at line 167 of file mxm_17841b.h.

◆ payloadLength

uint16_t MXM_41B_INSTANCE::payloadLength

length of the payload array

Definition at line 153 of file mxm_17841b.h.

◆ pPayload

uint16_t* MXM_41B_INSTANCE::pPayload

payload that is processed by the state-machine

Definition at line 152 of file mxm_17841b.h.

◆ processed

MXM_41B_STATE_REQUEST_STATUS_e* MXM_41B_INSTANCE::processed

status-indicator of the state-machine

Definition at line 156 of file mxm_17841b.h.

◆ pRxBuffer

uint16_t* MXM_41B_INSTANCE::pRxBuffer

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

Definition at line 154 of file mxm_17841b.h.

◆ regConfig1

uint8_t MXM_41B_INSTANCE::regConfig1

local storage for the Config 1 register

Definition at line 164 of file mxm_17841b.h.

◆ regConfig2

uint8_t MXM_41B_INSTANCE::regConfig2

local storage for the Config 2 register

Definition at line 165 of file mxm_17841b.h.

◆ regConfig3

uint8_t MXM_41B_INSTANCE::regConfig3

local storage for the Config 3 register

Definition at line 166 of file mxm_17841b.h.

◆ regRXIntEnable

uint8_t MXM_41B_INSTANCE::regRXIntEnable

local storage for the RX Interrupt Enable register

Definition at line 160 of file mxm_17841b.h.

◆ regRXStatus

uint8_t MXM_41B_INSTANCE::regRXStatus

local storage for the RX Status register

Definition at line 162 of file mxm_17841b.h.

◆ regTXIntEnable

uint8_t MXM_41B_INSTANCE::regTXIntEnable

local storage for the TX Interrupt Enable register

Definition at line 161 of file mxm_17841b.h.

◆ regTXStatus

uint8_t MXM_41B_INSTANCE::regTXStatus

local storage for the TX status register

Definition at line 163 of file mxm_17841b.h.

◆ rxBufferLength

uint16_t MXM_41B_INSTANCE::rxBufferLength

length of the RX-buffer-array

Definition at line 155 of file mxm_17841b.h.

◆ spiRXBuffer

uint16_t MXM_41B_INSTANCE::spiRXBuffer[100]

rx buffer for SPI

Definition at line 169 of file mxm_17841b.h.

◆ spiTXBuffer

uint16_t MXM_41B_INSTANCE::spiTXBuffer[MXM_SPI_TX_BUFFER_LENGTH]

tx buffer for SPI

Definition at line 170 of file mxm_17841b.h.

◆ state

MXM_STATEMACH_41B_e MXM_41B_INSTANCE::state

state of Driver State Machine

Definition at line 150 of file mxm_17841b.h.

◆ substate

MXM_41B_SUBSTATES_e MXM_41B_INSTANCE::substate

substate of current Driver State

Definition at line 151 of file mxm_17841b.h.

◆ waitCounter

uint8_t MXM_41B_INSTANCE::waitCounter

general error counter, will be reset in funtions

Definition at line 159 of file mxm_17841b.h.


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