foxBMS
1.3.0
The foxBMS Battery Management System API Documentation
|
#include <mxm_1785x_tools.h>
Status of the Maxim-main-state-machine.
Definition at line 231 of file mxm_1785x_tools.h.
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.
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.
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.
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.
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.
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.
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.
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.
uint8_t MXM_MONITORING_INSTANCE_s::muxCounter |
counter for the currently selected mux channel
Definition at line 244 of file mxm_1785x_tools.h.
uint8_t MXM_MONITORING_INSTANCE_s::mxmVoltageCellCounter |
counter for getting all cellvoltages
Definition at line 247 of file mxm_1785x_tools.h.
bool MXM_MONITORING_INSTANCE_s::openwireRequested |
indicates that an openwire-check has been requested
Definition at line 242 of file mxm_1785x_tools.h.
bool MXM_MONITORING_INSTANCE_s::operationRequested |
indicates whether the measurement cycle should run
Definition at line 239 of file mxm_1785x_tools.h.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
MXM_SELFCHECK_s MXM_MONITORING_INSTANCE_s::selfCheck |
stores self check return values
Definition at line 252 of file mxm_1785x_tools.h.
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.
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.
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.
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.
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.