Enumerations
Enumerations
Peripheral Driver » APP DRIVER » SPI

## Enumerations
enum | app_spi_id_t { APP_SPI_ID_SLAVE, APP_SPI_ID_MASTER, APP_SPI_ID_MAX }
| SPI module Enumerations definition. More...
enum | app_spi_type_t { APP_SPI_TYPE_INTERRUPT, APP_SPI_TYPE_POLLING, APP_SPI_TYPE_DMA, APP_SPI_TYPE_MAX }
| SPI operating mode Enumerations definition. More...
enum | app_spi_evt_type_t { APP_SPI_EVT_ERROR, APP_SPI_EVT_TX_CPLT, APP_SPI_EVT_RX_DATA, APP_SPI_EVT_TX_RX }
| SPI event Enumerations definition. More...

## Detailed Description

## Enumeration Type Documentation

## ◆ app_spi_evt_type_t

enum app_spi_evt_type_t

SPI event Enumerations definition.

Enumerator
APP_SPI_EVT_ERROR | Error reported by UART peripheral.
APP_SPI_EVT_TX_CPLT | Requested TX transfer completed.
APP_SPI_EVT_RX_DATA | Requested RX transfer completed.
APP_SPI_EVT_TX_RX | Requested TX/RX transfer completed.

Definition at line 107 of file app_spi.h.

## ◆ app_spi_id_t

enum app_spi_id_t

SPI module Enumerations definition.

Enumerator
APP_SPI_ID_SLAVE | SPI slave module.
APP_SPI_ID_MASTER | SPI master module.
APP_SPI_ID_MAX | Only for check parameter, not used as input parameters.

Definition at line 86 of file app_spi.h.

## ◆ app_spi_type_t

enum app_spi_type_t

SPI operating mode Enumerations definition.

Enumerator
APP_SPI_TYPE_INTERRUPT | Interrupt operation mode.
APP_SPI_TYPE_POLLING | Polling operation mode
APP_SPI_TYPE_DMA | DMA operation mode
APP_SPI_TYPE_MAX | Only for check parameter, not used as input parameters.

Definition at line 96 of file app_spi.h.