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
129 extern void TEST_N775_BalanceControl(
N775_STATE_s *pState);
130 extern void TEST_N775_BalanceSetup(
N775_STATE_s *pState);
131 extern void TEST_N775_CaptureMeasurement(
N775_STATE_s *pState);
134 extern void TEST_N775_IncrementMuxIndex(
N775_STATE_s *pState);
135 extern void TEST_N775_IncrementStringSequence(
N775_STATE_s *pState);
137 extern void TEST_N775_InitializeDatabase(
N775_STATE_s *pState);
138 extern void TEST_N775_InitializeI2c(
N775_STATE_s *pState);
139 extern void TEST_N775_ResetStringSequence(
N775_STATE_s *pState);
140 extern void TEST_N775_ResetMuxIndex(
N775_STATE_s *pState);
141 extern void TEST_N775_SetFirstMeasurementCycleFinished(
N775_STATE_s *pState);
143 extern void TEST_N775_StartMeasurement(
N775_STATE_s *pState);
145 extern void TEST_N775_Wait(uint32_t milliseconds);
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.
N775_STATE_s n775_stateBase
void N775_Measure(N775_STATE_s *pState)
trigger function for the N775 driver state machine.
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.