63 #define SENSOR_I2C_0 0 65 #define SENSOR_I2C_1 1 67 #define SENSOR_I2C_NONE -1 bool SensorI2C_writeReg(uint8_t regAddr, uint8_t *pData, uint8_t nBytes)
Write to an I2C device starting at regAddr.
void SensorI2C_close(void)
Close the I2C interface and release the data lines.
void SensorI2C_deselect(void)
Allow other tasks to access the I2C driver.
bool SensorI2C_write(uint8_t *pData, uint8_t nBytes)
Burst write to an I2C device.
bool SensorI2C_read(uint8_t *pData, uint8_t nBytes)
Burst read from an I2C device.
bool SensorI2C_open(void)
Initialize the RTOS I2C driver (must be called only once)
bool SensorI2C_select(uint8_t i2cInterface, uint8_t i2cAddr)
Select an I2C interface and I2C device.
bool SensorI2C_readReg(uint8_t regAddr, uint8_t *pData, uint8_t nBytes)
Read from an I2C device starting at regAddr.