PDK API Guide for J721E
I2C_Transaction Struct Reference

Data Fields

uint32_t validParams
 
void * writeBuf
 
size_t writeCount
 
void * readBuf
 
size_t readCount
 
uint32_t slaveAddress
 
void * arg
 
void * nextPtr
 
uint32_t timeout
 
bool masterMode
 
bool expandSA
 

Field Documentation

◆ validParams

uint32_t I2C_Transaction::validParams

Valid transaction parameter bit fields, to keep backward compatibility if supported bit field of validParams is 0: the driver will use the default configurations, if it is not 0: the driver will use the configuration that is set by the bit field

◆ writeBuf

void* I2C_Transaction::writeBuf

master mode: buffer containing data to be written to slave slave mode: buffer containing data to be written to master

◆ writeCount

size_t I2C_Transaction::writeCount

master mode: number of bytes to be written to the slave slave mode: number of bytes to be written to the master

◆ readBuf

void* I2C_Transaction::readBuf

master mode: buffer to which data from slave is to be read into slave mode: buffer to which data from master is to be read into

◆ readCount

size_t I2C_Transaction::readCount

master mode: number of bytes to be read from the slave slave mode: number of bytes to be read to the master

◆ slaveAddress

uint32_t I2C_Transaction::slaveAddress

master mode: input field from user to set the address of I2C slave device; slave mode: output field from driver to report the address of a slave channel when multi-slave channels are supported, if only one channel is supported, this field is ignored

◆ 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

◆ timeout

uint32_t I2C_Transaction::timeout

Timeout value for i2c transaction

◆ masterMode

bool I2C_Transaction::masterMode

I2C master or slave mode

◆ expandSA

bool I2C_Transaction::expandSA

Expand slave address: true: 10-bit address mode, false: 7-bit address mode