foxBMS  1.3.0
The foxBMS Battery Management System API Documentation
MXM_MONITORING_INSTANCE_s Struct Reference

#include <mxm_1785x_tools.h>

Collaboration diagram for MXM_MONITORING_INSTANCE_s:

Data Fields

bool resetNecessary
 
uint8_t errorCounter
 
uint32_t timestampLastError
 
uint32_t timestampInit
 
MXM_STATEMACHINE_STATES_e state
 
MXM_STATEMACHINE_OPERATION_STATES_e operationSubstate
 
bool allowStartup
 
bool operationRequested
 
bool firstMeasurementDone
 
bool stopRequested
 
bool openwireRequested
 
bool undervoltageAlert
 
uint8_t muxCounter
 
uint8_t diagnosticCounter
 
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_BALANCING_STATE_s *const pBalancingState
 
MXM_41B_INSTANCE_s *const pInstance41B
 
MXM_5X_INSTANCE_s *const pInstance5X
 
DATA_BLOCK_CELL_VOLTAGE_s *const pCellVoltages_table
 
DATA_BLOCK_CELL_TEMPERATURE_s *const pCellTemperatures_table
 
DATA_BLOCK_OPEN_WIRE_s *const pOpenwire_table
 
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 231 of file mxm_1785x_tools.h.

Field Documentation

◆ allowStartup

bool MXM_MONITORING_INSTANCE_s::allowStartup

indicates whether start of state-machine has been requested

Definition at line 238 of file mxm_1785x_tools.h.

◆ batteryCmdBuffer

MXM_5X_COMMAND_PAYLOAD_s MXM_MONITORING_INSTANCE_s::batteryCmdBuffer

buffer for Battery Management Commands

Definition at line 250 of file mxm_1785x_tools.h.

◆ dcByte

MXM_DC_BYTE_e MXM_MONITORING_INSTANCE_s::dcByte

content of the data-check-byte

Definition at line 246 of file mxm_1785x_tools.h.

◆ diagnosticCounter

uint8_t MXM_MONITORING_INSTANCE_s::diagnosticCounter

upward counter for determining when a diagnostic cycle should be entered

Definition at line 245 of file mxm_1785x_tools.h.

◆ errorCounter

uint8_t MXM_MONITORING_INSTANCE_s::errorCounter

counts the number of errors and issues a reset when the counter trips

Definition at line 233 of file mxm_1785x_tools.h.

◆ firstMeasurementDone

bool MXM_MONITORING_INSTANCE_s::firstMeasurementDone

this bit is set after the first measurement cycle

Definition at line 240 of file mxm_1785x_tools.h.

◆ highest5xDevice

uint8_t MXM_MONITORING_INSTANCE_s::highest5xDevice

address of highest monitoring device of the 5x family

Definition at line 248 of file mxm_1785x_tools.h.

◆ localVoltages

MXM_DATA_STORAGE_s MXM_MONITORING_INSTANCE_s::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_CELL_BLOCKS_PER_MODULE and BS_NR_OF_MODULES_PER_STRING. 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 273 of file mxm_1785x_tools.h.

◆ muxCounter

uint8_t MXM_MONITORING_INSTANCE_s::muxCounter

counter for the currently selected mux channel

Definition at line 244 of file mxm_1785x_tools.h.

◆ mxmVoltageCellCounter

uint8_t MXM_MONITORING_INSTANCE_s::mxmVoltageCellCounter

counter for getting all cellvoltages

Definition at line 247 of file mxm_1785x_tools.h.

◆ openwireRequested

bool MXM_MONITORING_INSTANCE_s::openwireRequested

indicates that an openwire-check has been requested

Definition at line 242 of file mxm_1785x_tools.h.

◆ operationRequested

bool MXM_MONITORING_INSTANCE_s::operationRequested

indicates whether the measurement cycle should run

Definition at line 239 of file mxm_1785x_tools.h.

◆ operationSubstate

MXM_STATEMACHINE_OPERATION_STATES_e MXM_MONITORING_INSTANCE_s::operationSubstate

substate during operation of monitoring

Definition at line 237 of file mxm_1785x_tools.h.

◆ pBalancingState

MXM_BALANCING_STATE_s* const MXM_MONITORING_INSTANCE_s::pBalancingState

pointer to the balancing structure

Definition at line 253 of file mxm_1785x_tools.h.

◆ pCellTemperatures_table

DATA_BLOCK_CELL_TEMPERATURE_s* const MXM_MONITORING_INSTANCE_s::pCellTemperatures_table

cell temperatures table

Definition at line 257 of file mxm_1785x_tools.h.

◆ pCellVoltages_table

DATA_BLOCK_CELL_VOLTAGE_s* const MXM_MONITORING_INSTANCE_s::pCellVoltages_table

cell voltages table

Definition at line 256 of file mxm_1785x_tools.h.

◆ pInstance41B

MXM_41B_INSTANCE_s* const MXM_MONITORING_INSTANCE_s::pInstance41B

instance-pointer of the 41b-state-machine

Definition at line 254 of file mxm_1785x_tools.h.

◆ pInstance5X

MXM_5X_INSTANCE_s* const MXM_MONITORING_INSTANCE_s::pInstance5X

instance-pointer of the 5x-state-machine

Definition at line 255 of file mxm_1785x_tools.h.

◆ pOpenwire_table

DATA_BLOCK_OPEN_WIRE_s* const MXM_MONITORING_INSTANCE_s::pOpenwire_table

open wire table

Definition at line 258 of file mxm_1785x_tools.h.

◆ registry

MXM_REGISTRY_ENTRY_s MXM_MONITORING_INSTANCE_s::registry[MXM_MAXIMUM_NR_OF_MODULES]

registry for connected monitoring ICs

Definition at line 274 of file mxm_1785x_tools.h.

◆ requestStatus5x

MXM_5X_STATE_REQUEST_STATUS_e MXM_MONITORING_INSTANCE_s::requestStatus5x

status of request to 5x

Definition at line 249 of file mxm_1785x_tools.h.

◆ resetNecessary

bool MXM_MONITORING_INSTANCE_s::resetNecessary

a reset of the whole driver is requested (due to an error)

Definition at line 232 of file mxm_1785x_tools.h.

◆ resultSelfCheck

STD_RETURN_TYPE_e MXM_MONITORING_INSTANCE_s::resultSelfCheck

Status of driver-wide self-check

Definition at line 251 of file mxm_1785x_tools.h.

◆ rxBuffer

uint8_t MXM_MONITORING_INSTANCE_s::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 275 of file mxm_1785x_tools.h.

◆ selfCheck

MXM_SELFCHECK_s MXM_MONITORING_INSTANCE_s::selfCheck

stores self check return values

Definition at line 252 of file mxm_1785x_tools.h.

◆ state

MXM_STATEMACHINE_STATES_e MXM_MONITORING_INSTANCE_s::state

state of the maxim state-machine

Definition at line 236 of file mxm_1785x_tools.h.

◆ stopRequested

bool MXM_MONITORING_INSTANCE_s::stopRequested

indicates that no new measurement cycles should be run

Definition at line 241 of file mxm_1785x_tools.h.

◆ timestampInit

uint32_t MXM_MONITORING_INSTANCE_s::timestampInit

timestamp of the moment that init has been initialized

Definition at line 235 of file mxm_1785x_tools.h.

◆ timestampLastError

uint32_t MXM_MONITORING_INSTANCE_s::timestampLastError

timestamp of last error counter increment; will be reset if old enough

Definition at line 234 of file mxm_1785x_tools.h.

◆ undervoltageAlert

bool MXM_MONITORING_INSTANCE_s::undervoltageAlert

whether undervoltage alert has occurred. TODO remove? replaced by DC?

Definition at line 243 of file mxm_1785x_tools.h.


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