12 #include "hal/Types.h"
15 HAL_ENUM(HAL_I2CPort) { HAL_I2C_kOnboard = 0, HAL_I2C_kMXP };
30 void HAL_InitializeI2C(HAL_I2CPort port, int32_t* status);
45 int32_t HAL_TransactionI2C(HAL_I2CPort port, int32_t deviceAddress,
46 const uint8_t* dataToSend, int32_t sendSize,
47 uint8_t* dataReceived, int32_t receiveSize);
61 int32_t HAL_WriteI2C(HAL_I2CPort port, int32_t deviceAddress,
62 const uint8_t* dataToSend, int32_t sendSize);
78 int32_t HAL_ReadI2C(HAL_I2CPort port, int32_t deviceAddress, uint8_t* buffer,
86 void HAL_CloseI2C(HAL_I2CPort port);