12 #include "hal/I2CTypes.h"
13 #include "hal/Types.h"
49 const uint8_t* dataToSend, int32_t sendSize,
50 uint8_t* dataReceived, int32_t receiveSize);
64 int32_t
HAL_WriteI2C(HAL_I2CPort port, int32_t deviceAddress,
65 const uint8_t* dataToSend, int32_t sendSize);
81 int32_t
HAL_ReadI2C(HAL_I2CPort port, int32_t deviceAddress, uint8_t* buffer,
int32_t HAL_TransactionI2C(HAL_I2CPort port, int32_t deviceAddress, const uint8_t *dataToSend, int32_t sendSize, uint8_t *dataReceived, int32_t receiveSize)
Generic I2C read/write transaction.
void HAL_CloseI2C(HAL_I2CPort port)
Closes an I2C port.
int32_t HAL_WriteI2C(HAL_I2CPort port, int32_t deviceAddress, const uint8_t *dataToSend, int32_t sendSize)
Executes a write transaction with the device.
void HAL_InitializeI2C(HAL_I2CPort port, int32_t *status)
Initializes the I2C port.
int32_t HAL_ReadI2C(HAL_I2CPort port, int32_t deviceAddress, uint8_t *buffer, int32_t count)
Executes a read transaction with the device.