Enumerated Types

group group_scb_spi_enums

Enums

enum cy_en_scb_spi_status_t

cy_en_scb_spi_status_t: SPI status codes.

Values:

enumerator CY_SCB_SPI_SUCCESS

Operation completed successfully.

enumerator CY_SCB_SPI_BAD_PARAM

One or more of input parameters are invalid.

enumerator CY_SCB_SPI_TRANSFER_BUSY

SPI is busy processing a transfer.

enum cy_en_scb_spi_mode_t

cy_en_scb_spi_mode_t: SPI Modes.

Values:

enumerator CY_SCB_SPI_SLAVE

Configures SCB for SPI Slave operation.

enumerator CY_SCB_SPI_MASTER

Configures SCB for SPI Master operation.

enum cy_en_scb_spi_sub_mode_t

cy_en_scb_spi_sub_mode_t: SPI Submodes.

Values:

enumerator CY_SCB_SPI_MOTOROLA

Configures an SPI for a standard Motorola SPI operation.

enumerator CY_SCB_SPI_TI_COINCIDES

Configures the SPI for the TI SPI operation.

In the TI mode, the slave select is a pulse. In this case, the pulse coincides with the first bit.

enumerator CY_SCB_SPI_NATIONAL

Configures an SPI for the National SPI operation.

This is a half-duplex mode of operation.

enumerator CY_SCB_SPI_TI_PRECEDES

Configures an SPI for the TI SPI operation, in the TI mode.

The slave select is a pulse. In this case the pulse precedes the first bit.

enum cy_en_scb_spi_sclk_mode_t

cy_en_scb_spi_sclk_mode_t: SPI SCLK Modes.

Values:

enumerator CY_SCB_SPI_CPHA0_CPOL0

Clock is active low, data is changed on first edge.

enumerator CY_SCB_SPI_CPHA1_CPOL0

Clock is active low, data is changed on second edge.

enumerator CY_SCB_SPI_CPHA0_CPOL1

Clock is active high, data is changed on first edge.

enumerator CY_SCB_SPI_CPHA1_CPOL1

Clock is active high, data is changed on second edge.

enum cy_en_scb_spi_slave_select_t

cy_en_scb_spi_slave_select_t: SPI Slave Selects.

Values:

enumerator CY_SCB_SPI_SLAVE_SELECT0

Master will use Slave Select 0.

enumerator CY_SCB_SPI_SLAVE_SELECT1

Master will use Slave Select 1.

enumerator CY_SCB_SPI_SLAVE_SELECT2

Master will use Slave Select 2.

enumerator CY_SCB_SPI_SLAVE_SELECT3

Master will use Slave Select 3.

enum cy_en_scb_spi_polarity_t

cy_en_scb_spi_polarity_t: SPI Polarity.

Values:

enumerator CY_SCB_SPI_ACTIVE_LOW

Signal in question is active low.

enumerator CY_SCB_SPI_ACTIVE_HIGH

Signal in question is active high.

enum cy_en_scb_spi_parity_t

cy_en_scb_spi_parity_t: SPI Parity.

note

This enum is available for CAT1B devices.

Values:

enumerator CY_SCB_SPI_PARITY_NONE

SPI has no parity check.

enumerator CY_SCB_SPI_PARITY_EVEN

SPI has even parity check.

enumerator CY_SCB_SPI_PARITY_ODD

SPI has odd parity check.