Enumerated Types

group group_scb_i2c_enums

Enums

enum cy_en_scb_i2c_status_t

cy_en_scb_i2c_status_t: I2C status codes.

Values:

enumerator CY_SCB_I2C_SUCCESS

Operation completed successfully.

enumerator CY_SCB_I2C_BAD_PARAM

One or more of input parameters are invalid.

enumerator CY_SCB_I2C_MASTER_NOT_READY

The master is not ready to start a new transaction.

Either the master is still processing a previous transaction or in the master-slave mode, the slave operation is in progress.

enumerator CY_SCB_I2C_MASTER_MANUAL_TIMEOUT

The master operation timed out before completing.

Applicable only for the Master Low-Level functions.

enumerator CY_SCB_I2C_MASTER_MANUAL_ADDR_NAK

The slave NACKed the address.

Applicable only for the Master Low-Level functions.

enumerator CY_SCB_I2C_MASTER_MANUAL_NAK

The slave NACKed the data byte.

Applicable only for the Master Low-Level.

enumerator CY_SCB_I2C_MASTER_MANUAL_ARB_LOST

The master lost arbitration, the transaction was aborted.

Applicable only for the Master Low-Level functions.

enumerator CY_SCB_I2C_MASTER_MANUAL_BUS_ERR

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

Applicable only for the Master Low-Level functions.

enumerator CY_SCB_I2C_MASTER_MANUAL_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.

Applicable only for the Master Low-Level functions.

enum cy_en_scb_i2c_mode_t

cy_en_scb_i2c_mode_t: I2C Operation Modes.

Values:

enumerator CY_SCB_I2C_SLAVE

Configures SCB for I2C Slave operation.

enumerator CY_SCB_I2C_MASTER

Configures SCB for I2C Master operation.

enumerator CY_SCB_I2C_MASTER_SLAVE

Configures SCB for I2C Master-Slave operation.

enum cy_en_scb_i2c_direction_t

cy_en_scb_i2c_direction_t: I2C Transaction Direction.

Values:

enumerator CY_SCB_I2C_WRITE_XFER

Current transaction is Write.

enumerator CY_SCB_I2C_READ_XFER

Current transaction is Read.

enum cy_en_scb_i2c_command_t

cy_en_scb_i2c_command_t: I2C Command ACK / NAK.

Values:

enumerator CY_SCB_I2C_ACK

Send ACK to current byte.

enumerator CY_SCB_I2C_NAK

Send NAK to current byte.