|  |  | 
I2C transaction. More...
#include <I2C.h>
| Data Fields | |
| void * | writeBuf | 
| size_t | writeCount | 
| void * | readBuf | 
| size_t | readCount | 
| uint_least8_t | slaveAddress | 
| void * | arg | 
| void * | nextPtr | 
I2C transaction.
This structure defines an I2C transaction. It specifies the buffer(s) and buffer size(s) to be written to and/or read from an I2C slave peripheral. arg is an optional user-supplied argument that will be passed to the user-supplied callback function when the I2C driver is in I2C_MODE_CALLBACK. nextPtr is a pointer used internally by the driver for queuing of multiple transactions; this value must never be modified by the user application.
| void* I2C_Transaction_::writeBuf | 
Buffer containing data to be written
| size_t I2C_Transaction_::writeCount | 
Number of bytes to be written to the slave
| void* I2C_Transaction_::readBuf | 
Buffer to which data is to be read into
| 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 | 
Argument to be passed to the callback function
| void* I2C_Transaction_::nextPtr | 
Used for queuing in I2C_MODE_CALLBACK mode