MTB CAT5 Peripheral driver library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
I2C Slave Status

General Description

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.

Macros

#define CY_SCB_I2C_SLAVE_RD_BUSY   (0x00000001u)
 There is a read transaction in progress.
 
#define CY_SCB_I2C_SLAVE_RD_IN_FIFO   (0x00000002u)
 All read data has been loaded into the TX FIFO, applicable only if the TX FIFO is used.
 
#define CY_SCB_I2C_SLAVE_RD_CMPLT   (0x00000004u)
 The master has finished reading data from the slave.
 
#define CY_SCB_I2C_SLAVE_RD_UNDRFL   (0x00000008u)
 Set when the master tried to read more bytes than available in the configured read buffer. More...
 
#define CY_SCB_I2C_SLAVE_WR_BUSY   (0x00000010u)
 There is a write transaction in progress.
 
#define CY_SCB_I2C_SLAVE_WR_CMPLT   (0x00000020u)
 The master has finished writing data into the slave.
 
#define CY_SCB_I2C_SLAVE_WR_OVRFL   (0x00000040u)
 The master attempted to write more bytes than space available in the configured Write buffer. More...
 
#define CY_SCB_I2C_SLAVE_ARB_LOST   (0x00000080u)
 The slave lost arbitration, and the transaction was aborted.
 
#define CY_SCB_I2C_SLAVE_BUS_ERR   (0x00000100u)
 The slave captured an error on the bus during a master transaction (source of error is misplaced Start or Stop).
 

Macro Definition Documentation

#define CY_SCB_I2C_SLAVE_RD_UNDRFL   (0x00000008u)

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.

#define CY_SCB_I2C_SLAVE_WR_OVRFL   (0x00000040u)

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

Note that all subsequent bytes are dropped.