foxBMS-UnitTests  1.0.0
The foxBMS Unit Tests API Documentation
MXM_MONITORING_INSTANCE Struct Reference

#include <mxm_1785x_tools.h>

Collaboration diagram for MXM_MONITORING_INSTANCE:

Data Fields

MXM_STATEMACHINE_STATES_e state
 
MXM_STATEMACHINE_OPERATION_STATES_e operationSubstate
 
bool allowStartup
 
bool operationRequested
 
bool firstMeasurementDone
 
bool stopRequested
 
bool openwireRequested
 
bool undervoltageAlert
 
MXM_DC_BYTE_e dcByte
 
uint8_t mxmVoltageCellCounter
 
uint8_t highest5xDevice
 
MXM_5X_STATE_REQUEST_STATUS_e requestStatus5x
 
MXM_5X_COMMAND_PAYLOAD_s batteryCmdBuffer
 
STD_RETURN_TYPE_e resultSelfCheck
 
MXM_SELFCHECK_s selfCheck
 
MXM_41B_INSTANCE_spInstance41B
 
MXM_5X_INSTANCE_spInstance5X
 
MXM_DATA_STORAGE_s localVoltages
 Local storage for cell-voltages. More...
 
MXM_REGISTRY_ENTRY_s registry [MXM_MAXIMUM_NR_OF_MODULES]
 
uint8_t rxBuffer [MXM_RX_BUFFER_LENGTH]
 

Detailed Description

Status of the Maxim-main-state-machine.

Definition at line 188 of file mxm_1785x_tools.h.

Field Documentation

◆ allowStartup

bool MXM_MONITORING_INSTANCE::allowStartup

indicates whether start of state-machine has been requested

Definition at line 191 of file mxm_1785x_tools.h.

◆ batteryCmdBuffer

MXM_5X_COMMAND_PAYLOAD_s MXM_MONITORING_INSTANCE::batteryCmdBuffer

buffer for Battery Management Commands

Definition at line 202 of file mxm_1785x_tools.h.

◆ dcByte

MXM_DC_BYTE_e MXM_MONITORING_INSTANCE::dcByte

content of the data-check-byte

Definition at line 198 of file mxm_1785x_tools.h.

◆ firstMeasurementDone

bool MXM_MONITORING_INSTANCE::firstMeasurementDone

this bit is set after the first measurement cycle

Definition at line 193 of file mxm_1785x_tools.h.

◆ highest5xDevice

uint8_t MXM_MONITORING_INSTANCE::highest5xDevice

address of highest monitoring device of the 5x family

Definition at line 200 of file mxm_1785x_tools.h.

◆ localVoltages

MXM_DATA_STORAGE_s MXM_MONITORING_INSTANCE::localVoltages

Local storage for cell-voltages.

This local variable stores the measured cell- and AUX-voltages. Independent of the actual configuration, it stores the measurement values always at the same place and never changes in size. As an example the voltage of cell 5 (cells are numbered from 1 to 14) in module 0 (modules are numbered from 0 to 31) will be in entry 4. The voltage of cell 14 of module 1 will be in entry 27. This is independent of the size of the setup which is defined in the defines BS_NR_OF_CELLS_PER_MODULE and BS_NR_OF_MODULES. Therefore, the size of the arrays inside this struct is defined as MXM_MAXIMUM_NR_OF_MODULES times MXM_MAXIMUM_NR_OF_CELLS_PER_MODULE.

Definition at line 221 of file mxm_1785x_tools.h.

◆ mxmVoltageCellCounter

uint8_t MXM_MONITORING_INSTANCE::mxmVoltageCellCounter

counter for getting all cellvoltages

Definition at line 199 of file mxm_1785x_tools.h.

◆ openwireRequested

bool MXM_MONITORING_INSTANCE::openwireRequested

indicates that an openwire-check has been requested

Definition at line 195 of file mxm_1785x_tools.h.

◆ operationRequested

bool MXM_MONITORING_INSTANCE::operationRequested

indicates whether the measurement cycle should run

Definition at line 192 of file mxm_1785x_tools.h.

◆ operationSubstate

MXM_STATEMACHINE_OPERATION_STATES_e MXM_MONITORING_INSTANCE::operationSubstate

substate during operation of monitoring

Definition at line 190 of file mxm_1785x_tools.h.

◆ pInstance41B

MXM_41B_INSTANCE_s* MXM_MONITORING_INSTANCE::pInstance41B

instance-pointer of the 41b-state-machine

Definition at line 205 of file mxm_1785x_tools.h.

◆ pInstance5X

MXM_5X_INSTANCE_s* MXM_MONITORING_INSTANCE::pInstance5X

instance-pointer of the 5x-state-machine

Definition at line 206 of file mxm_1785x_tools.h.

◆ registry

MXM_REGISTRY_ENTRY_s MXM_MONITORING_INSTANCE::registry[MXM_MAXIMUM_NR_OF_MODULES]

registry for connected monitoring ICs

Definition at line 222 of file mxm_1785x_tools.h.

◆ requestStatus5x

MXM_5X_STATE_REQUEST_STATUS_e MXM_MONITORING_INSTANCE::requestStatus5x

status of request to 5x

Definition at line 201 of file mxm_1785x_tools.h.

◆ resultSelfCheck

STD_RETURN_TYPE_e MXM_MONITORING_INSTANCE::resultSelfCheck

Status of driver-wide self-check

Definition at line 203 of file mxm_1785x_tools.h.

◆ rxBuffer

uint8_t MXM_MONITORING_INSTANCE::rxBuffer[MXM_RX_BUFFER_LENGTH]

buffer that stores the incoming data from the lower state-machines. It contains the command sequence as it is received on the ASCI together with the Battery Management Protocol command.

Definition at line 223 of file mxm_1785x_tools.h.

◆ selfCheck

MXM_SELFCHECK_s MXM_MONITORING_INSTANCE::selfCheck

stores self check return values

Definition at line 204 of file mxm_1785x_tools.h.

◆ state

MXM_STATEMACHINE_STATES_e MXM_MONITORING_INSTANCE::state

state of the maxim state-machine

Definition at line 189 of file mxm_1785x_tools.h.

◆ stopRequested

bool MXM_MONITORING_INSTANCE::stopRequested

indicates that no new measurement cycles should be run

Definition at line 194 of file mxm_1785x_tools.h.

◆ undervoltageAlert

bool MXM_MONITORING_INSTANCE::undervoltageAlert

whether undervoltage alert has occurred

Definition at line 196 of file mxm_1785x_tools.h.


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