MTB CAT1 Peripheral driver library

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   (0x00000001UL)
 There is a read transaction in progress.
 
#define CY_SCB_I2C_SLAVE_RD_IN_FIFO   (0x00000002UL)
 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   (0x00000004UL)
 The master has finished reading data from the slave.
 
#define CY_SCB_I2C_SLAVE_RD_UNDRFL   (0x00000008UL)
 Set when the master tried to read more bytes than available in the configured read buffer. More...
 
#define CY_SCB_I2C_SLAVE_WR_BUSY   (0x00000010UL)
 There is a write transaction in progress.
 
#define CY_SCB_I2C_SLAVE_WR_CMPLT   (0x00000020UL)
 The master has finished writing data into the slave.
 
#define CY_SCB_I2C_SLAVE_WR_OVRFL   (0x00000040UL)
 The master attempted to write more bytes than space available in the configured Write buffer. More...
 
#define CY_SCB_I2C_SLAVE_ARB_LOST   (0x00000080UL)
 The slave lost arbitration, and the transaction was aborted.
 
#define CY_SCB_I2C_SLAVE_BUS_ERR   (0x00000100UL)
 The slave captured an error on the bus during a master transaction (source of error is misplaced Start or Stop).
 

Macro Definition Documentation

◆ CY_SCB_I2C_SLAVE_RD_UNDRFL

#define CY_SCB_I2C_SLAVE_RD_UNDRFL   (0x00000008UL)

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_OVRFL

#define CY_SCB_I2C_SLAVE_WR_OVRFL   (0x00000040UL)

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

Note that all subsequent bytes are dropped.