| M480 BSP V3.05.001 The Board Support Package for M480 Series

Macros
SPI Exported Constants
Standard Driver » SPI Driver

## Macros
#define | SPI_MODE_0
#define | SPI_MODE_1
#define | SPI_MODE_2
#define | SPI_MODE_3
#define | SPI_SLAVE
#define | SPI_MASTER
#define | SPI_SS
#define | SPI_SS_ACTIVE_HIGH
#define | SPI_SS_ACTIVE_LOW
#define | SPI_UNIT_INT_MASK
#define | SPI_SSACT_INT_MASK
#define | SPI_SSINACT_INT_MASK
#define | SPI_SLVUR_INT_MASK
#define | SPI_SLVBE_INT_MASK
#define | SPI_TXUF_INT_MASK
#define | SPI_FIFO_TXTH_INT_MASK
#define | SPI_FIFO_RXTH_INT_MASK
#define | SPI_FIFO_RXOV_INT_MASK
#define | SPI_FIFO_RXTO_INT_MASK
#define | SPI_BUSY_MASK
#define | SPI_RX_EMPTY_MASK
#define | SPI_RX_FULL_MASK
#define | SPI_TX_EMPTY_MASK
#define | SPI_TX_FULL_MASK
#define | SPI_TXRX_RESET_MASK
#define | SPI_SPIEN_STS_MASK
#define | SPI_SSLINE_STS_MASK
#define | SPII2S_DATABIT_8
#define | SPII2S_DATABIT_16
#define | SPII2S_DATABIT_24
#define | SPII2S_DATABIT_32
#define | SPII2S_MONO
#define | SPII2S_STEREO
#define | SPII2S_FORMAT_I2S
#define | SPII2S_FORMAT_MSB
#define | SPII2S_FORMAT_PCMA
#define | SPII2S_FORMAT_PCMB
#define | SPII2S_MODE_SLAVE
#define | SPII2S_MODE_MASTER
#define | SPII2S_MONO_RIGHT
#define | SPII2S_MONO_LEFT
#define | SPII2S_RIGHT
#define | SPII2S_LEFT
#define | SPII2S_FIFO_TXTH_INT_MASK
#define | SPII2S_FIFO_RXTH_INT_MASK
#define | SPII2S_FIFO_RXOV_INT_MASK
#define | SPII2S_FIFO_RXTO_INT_MASK
#define | SPII2S_TXUF_INT_MASK
#define | SPII2S_RIGHT_ZC_INT_MASK
#define | SPII2S_LEFT_ZC_INT_MASK

## Detailed Description

## Macro Definition Documentation

## ◆ SPI_BUSY_MASK

#define SPI_BUSY_MASK

Busy status mask

Definition at line 55 of file spi.h.

## ◆ SPI_FIFO_RXOV_INT_MASK

#define SPI_FIFO_RXOV_INT_MASK

FIFO RX overrun interrupt mask

Definition at line 51 of file spi.h.

## ◆ SPI_FIFO_RXTH_INT_MASK

#define SPI_FIFO_RXTH_INT_MASK

FIFO RX threshold interrupt mask

Definition at line 50 of file spi.h.

## ◆ SPI_FIFO_RXTO_INT_MASK

#define SPI_FIFO_RXTO_INT_MASK

FIFO RX time-out interrupt mask

Definition at line 52 of file spi.h.

## ◆ SPI_FIFO_TXTH_INT_MASK

#define SPI_FIFO_TXTH_INT_MASK

FIFO TX threshold interrupt mask

Definition at line 49 of file spi.h.

## ◆ SPI_MASTER

#define SPI_MASTER

Set as master

Definition at line 36 of file spi.h.

## ◆ SPI_MODE_0

#define SPI_MODE_0

CLKPOL=0; RXNEG=0; TXNEG=1

Definition at line 30 of file spi.h.

## ◆ SPI_MODE_1

#define SPI_MODE_1

CLKPOL=0; RXNEG=1; TXNEG=0

Definition at line 31 of file spi.h.

## ◆ SPI_MODE_2

#define SPI_MODE_2

CLKPOL=1; RXNEG=1; TXNEG=0

Definition at line 32 of file spi.h.

## ◆ SPI_MODE_3

#define SPI_MODE_3

CLKPOL=1; RXNEG=0; TXNEG=1

Definition at line 33 of file spi.h.

## ◆ SPI_RX_EMPTY_MASK

#define SPI_RX_EMPTY_MASK

RX empty status mask

Definition at line 56 of file spi.h.

## ◆ SPI_RX_FULL_MASK

#define SPI_RX_FULL_MASK

RX full status mask

Definition at line 57 of file spi.h.

## ◆ SPI_SLAVE

#define SPI_SLAVE

Set as slave

Definition at line 35 of file spi.h.

## ◆ SPI_SLVBE_INT_MASK

#define SPI_SLVBE_INT_MASK

Slave bit count error interrupt mask

Definition at line 47 of file spi.h.

## ◆ SPI_SLVUR_INT_MASK

#define SPI_SLVUR_INT_MASK

Slave under run interrupt mask

Definition at line 46 of file spi.h.

## ◆ SPI_SPIEN_STS_MASK

#define SPI_SPIEN_STS_MASK

SPIEN status mask

Definition at line 61 of file spi.h.

## ◆ SPI_SS

#define SPI_SS

Set SS

Definition at line 38 of file spi.h.

## ◆ SPI_SS_ACTIVE_HIGH

#define SPI_SS_ACTIVE_HIGH

SS active high

Definition at line 39 of file spi.h.

## ◆ SPI_SS_ACTIVE_LOW

#define SPI_SS_ACTIVE_LOW

SS active low

Definition at line 40 of file spi.h.

## ◆ SPI_SSACT_INT_MASK

#define SPI_SSACT_INT_MASK

Slave selection signal active interrupt mask

Definition at line 44 of file spi.h.

## ◆ SPI_SSINACT_INT_MASK

#define SPI_SSINACT_INT_MASK

Slave selection signal inactive interrupt mask

Definition at line 45 of file spi.h.

## ◆ SPI_SSLINE_STS_MASK

#define SPI_SSLINE_STS_MASK

SPIx_SS line status mask

Definition at line 62 of file spi.h.

## ◆ SPI_TX_EMPTY_MASK

#define SPI_TX_EMPTY_MASK

TX empty status mask

Definition at line 58 of file spi.h.

## ◆ SPI_TX_FULL_MASK

#define SPI_TX_FULL_MASK

TX full status mask

Definition at line 59 of file spi.h.

## ◆ SPI_TXRX_RESET_MASK

#define SPI_TXRX_RESET_MASK

TX or RX reset status mask

Definition at line 60 of file spi.h.

## ◆ SPI_TXUF_INT_MASK

#define SPI_TXUF_INT_MASK

Slave TX underflow interrupt mask

Definition at line 48 of file spi.h.

## ◆ SPI_UNIT_INT_MASK

#define SPI_UNIT_INT_MASK

Unit transfer interrupt mask

Definition at line 43 of file spi.h.

## ◆ SPII2S_DATABIT_16

#define SPII2S_DATABIT_16

I2S data width is 16-bit

Definition at line 67 of file spi.h.

## ◆ SPII2S_DATABIT_24

#define SPII2S_DATABIT_24

I2S data width is 24-bit

Definition at line 68 of file spi.h.

## ◆ SPII2S_DATABIT_32

#define SPII2S_DATABIT_32

I2S data width is 32-bit

Definition at line 69 of file spi.h.

## ◆ SPII2S_DATABIT_8

#define SPII2S_DATABIT_8

I2S data width is 8-bit

Definition at line 66 of file spi.h.

## ◆ SPII2S_FIFO_RXOV_INT_MASK

#define SPII2S_FIFO_RXOV_INT_MASK

RX FIFO overrun interrupt mask

Definition at line 96 of file spi.h.

## ◆ SPII2S_FIFO_RXTH_INT_MASK

#define SPII2S_FIFO_RXTH_INT_MASK

RX FIFO threshold interrupt mask

Definition at line 95 of file spi.h.

## ◆ SPII2S_FIFO_RXTO_INT_MASK

#define SPII2S_FIFO_RXTO_INT_MASK

RX FIFO time-out interrupt mask

Definition at line 97 of file spi.h.

## ◆ SPII2S_FIFO_TXTH_INT_MASK

#define SPII2S_FIFO_TXTH_INT_MASK

TX FIFO threshold interrupt mask

Definition at line 94 of file spi.h.

## ◆ SPII2S_FORMAT_I2S

#define SPII2S_FORMAT_I2S

I2S data format

Definition at line 76 of file spi.h.

## ◆ SPII2S_FORMAT_MSB

#define SPII2S_FORMAT_MSB

MSB justified data format

Definition at line 77 of file spi.h.

## ◆ SPII2S_FORMAT_PCMA

#define SPII2S_FORMAT_PCMA

PCM mode A data format

Definition at line 78 of file spi.h.

## ◆ SPII2S_FORMAT_PCMB

#define SPII2S_FORMAT_PCMB

PCM mode B data format

Definition at line 79 of file spi.h.

## ◆ SPII2S_LEFT

#define SPII2S_LEFT

Select left channel

Definition at line 91 of file spi.h.

## ◆ SPII2S_LEFT_ZC_INT_MASK

#define SPII2S_LEFT_ZC_INT_MASK

Left channel zero cross interrupt mask

Definition at line 100 of file spi.h.

## ◆ SPII2S_MODE_MASTER

#define SPII2S_MODE_MASTER

As master mode

Definition at line 83 of file spi.h.

## ◆ SPII2S_MODE_SLAVE

#define SPII2S_MODE_SLAVE

As slave mode

Definition at line 82 of file spi.h.

## ◆ SPII2S_MONO

#define SPII2S_MONO

Monaural channel

Definition at line 72 of file spi.h.

## ◆ SPII2S_MONO_LEFT

#define SPII2S_MONO_LEFT

Record mono left channel

Definition at line 87 of file spi.h.

## ◆ SPII2S_MONO_RIGHT

#define SPII2S_MONO_RIGHT

Record mono right channel

Definition at line 86 of file spi.h.

## ◆ SPII2S_RIGHT

#define SPII2S_RIGHT

Select right channel

Definition at line 90 of file spi.h.

## ◆ SPII2S_RIGHT_ZC_INT_MASK

#define SPII2S_RIGHT_ZC_INT_MASK

Right channel zero cross interrupt mask

Definition at line 99 of file spi.h.

## ◆ SPII2S_STEREO

#define SPII2S_STEREO

Stereo channel

Definition at line 73 of file spi.h.

## ◆ SPII2S_TXUF_INT_MASK

#define SPII2S_TXUF_INT_MASK

TX FIFO underflow interrupt mask

Definition at line 98 of file spi.h.