CAT2 Peripheral Driver Library
cy_stc_scb_i2c_master_xfer_config_t Struct Reference

Description

The I2C Master transfer structure.

Data Fields

uint8_t slaveAddress
 The 7-bit right justified slave address to communicate with.
 
uint8_t * buffer
 The pointer to the buffer for data to read from the slave or data to write into the slave.
 
uint32_t bufferSize
 The size of the buffer.
 
bool xferPending
 The transfer operation is pending - the stop condition will not be generated. More...
 

Field Documentation

◆ xferPending

bool cy_stc_scb_i2c_master_xfer_config_t::xferPending

The transfer operation is pending - the stop condition will not be generated.

A new transfer starts from start condition and ends with or without stop condition. The stop condition releases I2C bus from master control. When stop is not generated master keeps bus control (transfer is pending) and can issue the next transfer using restart condition instead of start. The I2C driver automatically generates start or restart condition depends on current state. Note if master lost arbitration during transfer it stops control the bus and does not send/receive data or generate stop condition - the transfer ends.