Mbed OS Reference
Loading...
Searching...
No Matches
SPI Events Macros

Macros

#define SPI_EVENT_ERROR   (1 << 1)
 Indicates that some kind of error occurred when starting the transfer. More...
 
#define SPI_EVENT_COMPLETE   (1 << 2)
 Indicates that the transfer completed successfully. More...
 
#define SPI_EVENT_RX_OVERFLOW   (1 << 3)
 Indicates an Rx overflow: the interrupt system or DMA controller was not able to keep up with the flow of bytes from the SPI peripheral and data was lost. More...
 
#define SPI_EVENT_ALL   (SPI_EVENT_ERROR | SPI_EVENT_COMPLETE | SPI_EVENT_RX_OVERFLOW)
 Union of all of the above events. More...
 

Detailed Description

Macro Definition Documentation

◆ SPI_EVENT_ERROR

#define SPI_EVENT_ERROR   (1 << 1)

Indicates that some kind of error occurred when starting the transfer.

Definition at line 41 of file spi_api.h.

◆ SPI_EVENT_COMPLETE

#define SPI_EVENT_COMPLETE   (1 << 2)

Indicates that the transfer completed successfully.

Definition at line 46 of file spi_api.h.

◆ SPI_EVENT_RX_OVERFLOW

#define SPI_EVENT_RX_OVERFLOW   (1 << 3)

Indicates an Rx overflow: the interrupt system or DMA controller was not able to keep up with the flow of bytes from the SPI peripheral and data was lost.

Definition at line 52 of file spi_api.h.

◆ SPI_EVENT_ALL

#define SPI_EVENT_ALL   (SPI_EVENT_ERROR | SPI_EVENT_COMPLETE | SPI_EVENT_RX_OVERFLOW)

Union of all of the above events.

Definition at line 57 of file spi_api.h.