56 #ifndef FOXBMS__AFE_H_
57 #define FOXBMS__AFE_H_
93 uint8_t readData[13u];
95 uint8_t writeData[13u];
100 #define AFE_ERROR_OPEN_WIRE_PERIOD_ms (30000u)
177 #ifdef UNITY_UNIT_TEST
STD_RETURN_TYPE_e AFE_RequestEepromRead(uint8_t string)
Makes the request to the AFE state machine to read from the external EEPROM on slaves.
STD_RETURN_TYPE_e AFE_RequestEepromWrite(uint8_t string)
Makes the request to the AFE state machine to write to the external EEPROM on slaves.
STD_RETURN_TYPE_e AFE_RequestIoRead(uint8_t string)
Makes the request to the AFE state machine to read from the IO port-expander.
STD_RETURN_TYPE_e AFE_TriggerIc(void)
STD_RETURN_TYPE_e AFE_RequestOpenWireCheck(uint8_t string)
Makes the request to the AFE state machine to perform open-wire check.
bool AFE_IsFirstMeasurementCycleFinished(void)
Checks if the first AFE measurement cycle was made.
STD_RETURN_TYPE_e AFE_RequestBalancingFeedbackRead(uint8_t string)
Makes the request to the AFE state machine to read balancing feedback from the slaves.
STD_RETURN_TYPE_e AFE_RequestTemperatureRead(uint8_t string)
Makes the request to the AFE state machine to read from the external temperature sensor on slaves.
@ AFE_I2C_TRANSFER_TYPE_WRITE
@ AFE_I2C_TRANSFER_TYPE_WRITEREAD
@ AFE_I2C_TRANSFER_TYPE_READ_SUCCESS
@ AFE_I2C_TRANSFER_TYPE_WRITE_FAIL
@ AFE_I2C_TRANSFER_TYPE_READ
@ AFE_I2C_TRANSFER_TYPE_WRITE_SUCCESS
@ AFE_I2C_TRANSFER_TYPE_READ_FAIL
STD_RETURN_TYPE_e AFE_RequestIoWrite(uint8_t string)
Makes the request to the AFE state machine to write to the IO port-expander.
STD_RETURN_TYPE_e AFE_Initialize(void)
STD_RETURN_TYPE_e AFE_StartMeasurement(void)
Makes the initialization request to the AFE state machine.
Definition of foxBMS standard types.
AFE_I2C_TRANSFER_TYPE_e transferType