Enumerations

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_evt_type_t {
  APP_SPI_EVT_ERROR,
  APP_SPI_EVT_TX_CPLT,
  APP_SPI_EVT_RX_CPLT,
  APP_SPI_EVT_TX_RX_CPLT,
  APP_SPI_EVT_ABORT
}
 SPI event Enumerations definition. More...
 
enum  app_spi_state_t {
  APP_SPI_INVALID = 0,
  APP_SPI_ACTIVITY
}
 App spi state types. More...
 
enum  app_spi_dma_state_t {
  APP_SPI_DMA_INVALID = 0,
  APP_SPI_DMA_ACTIVITY
}
 App spi dma state types. More...
 

Detailed Description

Enumeration Type Documentation

◆ app_spi_dma_state_t

App spi dma state types.

Enumerator
APP_SPI_DMA_INVALID 
APP_SPI_DMA_ACTIVITY 

Definition at line 198 of file app_spi.h.

◆ 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_CPLT 

Requested RX transfer completed.

APP_SPI_EVT_TX_RX_CPLT 

Requested TX/RX transfer completed.

APP_SPI_EVT_ABORT 

Abort reported by SPI peripheral.

Definition at line 106 of file app_spi.h.

◆ app_spi_id_t

SPI module Enumerations definition.

Note
: 1. When the SPI device is configured as a Slave mode, the pull-up or pull-down mode of the CS pin should be set according to the clock polarity: if the clock polarity is configured for low level active, the CS pin should be configured as pull-up mode; if the clock polarity is configured for high level active, the CS pin should be configured as pull-down mode. 2. It is recommended that when initializing the SPI Slave device, the SPI Master device should first be initialized and in a stable state to avoid interference to the Slave device from I/O signal changes during the Master device's initialization.
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 89 of file app_spi.h.

◆ app_spi_state_t

App spi state types.

Enumerator
APP_SPI_INVALID 
APP_SPI_ACTIVITY 

Definition at line 188 of file app_spi.h.