Data Fields
I2C_Transaction_ Struct Reference

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
 

Detailed Description

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.

Field Documentation

§ writeBuf

void* I2C_Transaction_::writeBuf

Buffer containing data to be written

§ writeCount

size_t I2C_Transaction_::writeCount

Number of bytes to be written to the slave

§ readBuf

void* I2C_Transaction_::readBuf

Buffer to which data is to be read into

§ 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

Argument to be passed to the callback function

§ nextPtr

void* I2C_Transaction_::nextPtr

Used for queuing in I2C_MODE_CALLBACK mode


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