This structure defines the I2C slave address, pointers to write and read buffers, and their associated byte counts. If no data needs to be written, the write byte count should be zero. Similarly, if no data needs to be read, the read byte count should be set to zero. More...
#include <I2C.h>
Data Fields | |
void * | writeBuf |
size_t | writeCount |
void * | readBuf |
size_t | readCount |
uint_least8_t | slaveAddress |
void * | arg |
void * | nextPtr |
This structure defines the I2C slave address, pointers to write and read buffers, and their associated byte counts. If no data needs to be written, the write byte count should be zero. Similarly, if no data needs to be read, the read byte count should be set to zero.
void* I2C_Transaction_::writeBuf |
Pointer to a buffer containing data to be written.
size_t I2C_Transaction_::writeCount |
Number of bytes to write from the writeBuf
.
void* I2C_Transaction_::readBuf |
Pointer to a buffer to store data read.
size_t I2C_Transaction_::readCount |
Number of bytes to be read from the slave
uint_least8_t I2C_Transaction_::slaveAddress |
Address of the I2C slave peripheral.
void* I2C_Transaction_::arg |
Optional application argument. This argument will be passed to the callback function specified by I2C_Params.transferCallbackFxn when using I2C_MODE_CALLBACK.
void* I2C_Transaction_::nextPtr |
This value is used internally by the driver and must never be modified by the application.