|
foxBMS-UnitTests
1.0.0
The foxBMS Unit Tests API Documentation
|
Go to the documentation of this file.
70 .extendMessageBytes = 0,
72 .regRXIntEnable = 0x00u,
73 .regTXIntEnable = 0x00u,
94 .numberOfSatellites = 0,
103 .allowStartup =
false,
104 .operationRequested =
false,
105 .firstMeasurementDone =
false,
106 .stopRequested =
false,
107 .openwireRequested =
false,
108 .undervoltageAlert =
false,
110 .mxmVoltageCellCounter = 0,
111 .highest5xDevice = 0,
118 .deviceAddress = 0x00,
134 .localVoltages = {0},
STD_RETURN_TYPE_e MIC_RequestOpenWireCheck(uint8_t string)
Makes the request to the MIC state machine to perform open-wire check.
STD_RETURN_TYPE_e MIC_StartMeasurement(void)
Makes the initialization request to the MIC state machine.
5x statemachine structure
MXM_5X_INSTANCE_s * pInstance5X
bool MIC_IsFirstMeasurementCycleFinished(void)
Checks if the first MIC measurement cycle was made.
void MXM_41BStateMachine(MXM_41B_INSTANCE_s *pInstance)
Execute state-machine for the MAX17841B.
STD_RETURN_TYPE_e MIC_RequestEepromWrite(uint8_t string)
Makes the request to the MIC state machine to write to the external EEPROM on slaves.
Headers for the driver for the MAX17841B ASCI and MAX1785x monitoring chip.
enum STD_RETURN_TYPE STD_RETURN_TYPE_e
static int32_t mxm_numberOfInstances
@ MXM_STATEMACH_5X_UNINITIALIZED
STD_RETURN_TYPE_e MIC_Init(void)
STD_RETURN_TYPE_e MIC_RequestIoRead(uint8_t string)
Makes the request to the MIC state machine to read from the IO port-expander.
@ MXM_STATEMACH_41B_UNINITIALIZED
static MXM_5X_INSTANCE_s mxm_5x_state
MXM_STATEMACHINE_STATES_e state
Measurement IC driver header.
static MXM_41B_INSTANCE_s mxm_41b_state
MXM_STATEMACH_41B_e state
MXM_STATEMACHINE_5X_e state
Struct for the state-variable of state-machine.
STD_RETURN_TYPE_e MIC_RequestTemperatureRead(uint8_t string)
Makes the request to the MIC state machine to read from the external temperature sensor on slaves.
STD_RETURN_TYPE_e MIC_RequestBalancingFeedbackRead(uint8_t string)
Makes the request to the MIC state machine to read balancing feedback from the slaves.
void MXM_StateMachine(MXM_MONITORING_INSTANCE_s *pInstance)
Battery monitoring driver for MAX1785x battery monitoring ICs.
void MXM_MonitoringPinInit(void)
Initialize the pins connected to the MAX17841B.
enum MXM_REG_NAME MXM_REG_NAME_e
MAX1785x register names.
STD_RETURN_TYPE_e MIC_TriggerIc(void)
static void MXM_Tick(void)
Tick function.
static MXM_MONITORING_INSTANCE_s mxm_state
bool firstMeasurementDone
STD_RETURN_TYPE_e MIC_RequestEepromRead(uint8_t string)
Makes the request to the MIC state machine to read from the external EEPROM on slaves.
STD_RETURN_TYPE_e MIC_RequestIoWrite(uint8_t string)
Makes the request to the MIC state machine to write to the IO port-expander.
MXM_41B_INSTANCE_s * pInstance41B
Headers for the driver for the MAX17841B ASCI and MAX1785x monitoring chip.
void MXM_5XStateMachine(MXM_41B_INSTANCE_s *pInstance41b, MXM_5X_INSTANCE_s *pInstance5x)
Execute state-machine for Battery Management Protocol.
Headers for the driver for the MAX17841B ASCI and MAX1785x monitoring chip.