Data Fields
I2C_Transaction_ Struct Reference

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
 

Detailed Description

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.

See also
I2C_transfer()

Field Documentation

§ writeBuf

void* I2C_Transaction_::writeBuf

Pointer to a buffer containing data to be written.

§ writeCount

size_t I2C_Transaction_::writeCount

Number of bytes to write from the writeBuf.

§ readBuf

void* I2C_Transaction_::readBuf

Pointer to a buffer to store data read.

§ readCount

size_t I2C_Transaction_::readCount

Number of bytes to be read from the slave

§ slaveAddress

uint_least8_t I2C_Transaction_::slaveAddress

Address of the I2C slave peripheral.

§ arg

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.

§ nextPtr

void* I2C_Transaction_::nextPtr

This value is used internally by the driver and must never be modified by the application.


The documentation for this struct was generated from the following file:
Copyright 2018, Texas Instruments Incorporated