I2C Slave Status

group group_scb_i2c_macros_slave_status

Macros to check current I2C slave status returned by Cy_SCB_I2C_SlaveGetStatus function.

Each I2C slave status is encoded in a separate bit, therefore multiple bits may be set to indicate the current status.

Defines

CY_SCB_I2C_SLAVE_RD_BUSY

There is a read transaction in progress.

CY_SCB_I2C_SLAVE_RD_IN_FIFO

All read data has been loaded into the TX FIFO, applicable only if the TX FIFO is used.

CY_SCB_I2C_SLAVE_RD_CMPLT

The master has finished reading data from the slave.

CY_SCB_I2C_SLAVE_RD_UNDRFL

Set when the master tried to read more bytes than available in the configured read buffer.

The slave is not able to finish the transaction and sends CY_SCB_I2C_DEFAULT_TX.

CY_SCB_I2C_SLAVE_WR_BUSY

There is a write transaction in progress.

CY_SCB_I2C_SLAVE_WR_CMPLT

The master has finished writing data into the slave.

CY_SCB_I2C_SLAVE_WR_OVRFL

The master attempted to write more bytes than space available in the configured Write buffer.

Note that all subsequent bytes are dropped.

CY_SCB_I2C_SLAVE_ARB_LOST

The slave lost arbitration, and the transaction was aborted.

CY_SCB_I2C_SLAVE_BUS_ERR

The slave captured an error on the bus during a master transaction (source of error is misplaced Start or Stop).