I2C Master Status

group group_scb_i2c_macros_master_status

Macros to check current I2C master status returned by Cy_SCB_I2C_MasterGetStatus function.

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

Defines

CY_SCB_I2C_MASTER_BUSY

The master is busy executing operation started by Cy_SCB_I2C_MasterRead or Cy_SCB_I2C_MasterWrite.

CY_SCB_I2C_MASTER_WR_IN_FIFO

All Write data has been loaded into the TX FIFO.

CY_SCB_I2C_MASTER_ADDR_NAK

The slave NACKed the address.

CY_SCB_I2C_MASTER_DATA_NAK

Write completed before all bytes were sent (last byte was NAKed)

CY_SCB_I2C_MASTER_ARB_LOST

The master lost arbitration, the transaction was aborted.

CY_SCB_I2C_MASTER_BUS_ERR

The master detected an erroneous start or stop, the transaction was aborted.

CY_SCB_I2C_MASTER_ABORT_START

The master transaction was aborted and the slave transaction is on-going because the slave was addressed before the master generated a start.