I2C 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.
There is a read transaction in progress.
All read data has been loaded into the TX FIFO, applicable only if the TX FIFO is used.
The master has finished reading data from the slave.
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.
There is a write transaction in progress.
The master has finished writing data into the slave.
The master attempted to write more bytes than space available in the configured Write buffer.
Note that all subsequent bytes are dropped.
The slave lost arbitration, and the transaction was aborted.
The slave captured an error on the bus during a master transaction (source of error is misplaced Start or Stop).