CAT2 Peripheral Driver Library

Macros to check SPI events passed by cy_cb_scb_spi_handle_events_t callback. More...

Macros

#define CY_SCB_SPI_TRANSFER_IN_FIFO_EVENT   (0x01U)
 All data elements specified by Cy_SCB_SPI_Transfer for transmission have been loaded into the TX FIFO.
 
#define CY_SCB_SPI_TRANSFER_CMPLT_EVENT   (0x02U)
 The transfer operation started by Cy_SCB_SPI_Transfer is complete.
 
#define CY_SCB_SPI_TRANSFER_ERR_EVENT   (0x04U)
 An error occurred during the transfer. More...
 

Detailed Description

Macros to check SPI events passed by cy_cb_scb_spi_handle_events_t callback.

Note that only single event is notified by the callback when it is called.

Macro Definition Documentation

◆ CY_SCB_SPI_TRANSFER_ERR_EVENT

#define CY_SCB_SPI_TRANSFER_ERR_EVENT   (0x04U)

An error occurred during the transfer.

This includes overflow, underflow transfer error and parity error. Check Cy_SCB_SPI_GetTransferStatus.