![]()  | 
  
    PDK API Guide for J721E
    
   | 
 
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 | 
| 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
| void* I2C_Transaction::writeBuf | 
master mode: buffer containing data to be written to slave slave mode: buffer containing data to be written to master
| 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
| 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
| 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
| 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
| void* I2C_Transaction::arg | 
argument to be passed to the callback function
| void* I2C_Transaction::nextPtr | 
used for queuing in I2C_MODE_CALLBACK mode
| uint32_t I2C_Transaction::timeout | 
Timeout value for i2c transaction
| bool I2C_Transaction::masterMode | 
I2C master or slave mode
| bool I2C_Transaction::expandSA | 
Expand slave address: true: 10-bit address mode, false: 7-bit address mode