57 #ifndef FOXBMS__NXP_MC33775A_H_
58 #define FOXBMS__NXP_MC33775A_H_
104 uint8_t deviceAddress,
106 uint8_t writeDataLength,
108 uint8_t readDataLength);
127 #ifdef UNITY_UNIT_TEST
Header for the low level driver for the MC33775A.
enum N775_COMMUNICATION_STATUS N775_COMMUNICATION_STATUS_e
STD_RETURN_TYPE_e N775_I2cWriteRead(uint8_t module, uint8_t deviceAddress, uint8_t *pDataWrite, uint8_t writeDataLength, uint8_t *pDataRead, uint8_t readDataLength)
trigger a read on the I2C bus of the slave, first write address of register to read.
bool N775_IsFirstMeasurementCycleFinished(N775_STATE_s *pState)
gets the measurement initialization status.
void TEST_N775_BalanceSetup(N775_STATE_s *pState)
N775_STATE_s n775_stateBase
void TEST_N775_ResetStringSequence(N775_STATE_s *pState)
void TEST_N775_Wait(uint32_t milliseconds)
void TEST_N775_IncrementMuxIndex(N775_STATE_s *pState)
STD_RETURN_TYPE_e TEST_N775_Enumerate(N775_STATE_s *pState)
STD_RETURN_TYPE_e TEST_N775_TransmitI2c(N775_STATE_s *pState)
void TEST_N775_CaptureMeasurement(N775_STATE_s *pState)
void TEST_N775_IncrementStringSequence(N775_STATE_s *pState)
void TEST_N775_ErrorHandling(N775_STATE_s *pState, N775_COMMUNICATION_STATUS_e returnedValue, uint8_t module)
void N775_Measure(N775_STATE_s *pState)
trigger function for the N775 driver state machine.
void TEST_N775_Initialize(N775_STATE_s *pState)
void TEST_N775_BalanceControl(N775_STATE_s *pState)
void TEST_N775_ResetMuxIndex(N775_STATE_s *pState)
STD_RETURN_TYPE_e TEST_N775_SetMuxChannel(N775_STATE_s *pState)
void TEST_N775_InitializeI2c(N775_STATE_s *pState)
void TEST_N775_InitializeDatabase(N775_STATE_s *pState)
void TEST_N775_SetFirstMeasurementCycleFinished(N775_STATE_s *pState)
void TEST_N775_StartMeasurement(N775_STATE_s *pState)
STD_RETURN_TYPE_e N775_I2cRead(uint8_t module, uint8_t deviceAddress, uint8_t *pData, uint8_t dataLength)
trigger a read on the I2C bus of the slave.
STD_RETURN_TYPE_e N775_I2cWrite(uint8_t module, uint8_t deviceAddress, uint8_t *pData, uint8_t dataLength)
trigger a write on the I2C bus of the slave.
Header for the configuration for the MC33775A analog front-end.