54 void *wbuf,
size_t wcount,
void *rbuf,
57 I2C_Transaction i2cTransaction = {
62 .slaveAddress = slave_addr,
69 return I2C_transfer(i2c_handle, &i2cTransaction);
80 I2C_close(i2c_handle);
86 I2C_Params i2c_params;
88 I2C_Params_init(&i2c_params);
90 i2c_params.transferMode = I2C_MODE_BLOCKING;
91 i2c_params.bitRate = I2C_400kHz;
93 return I2C_open(index, &i2c_params);
Implementation of the I2C HAL driver for CC13xx/CC26xx.
bool i2c_arch_write_read(I2C_Handle i2c_handle, uint_least8_t slave_addr, void *wbuf, size_t wcount, void *rbuf, size_t rcount)
Setup and peform an I2C transaction.
void i2c_arch_release(I2C_Handle i2c_handle)
Release the I2C Peripheral for other modules to use.
I2C_Handle i2c_arch_acquire(uint_least8_t index)
Open and lock the I2C Peripheral for use.