| NUC029FAE_BSP V3.02.000 The Board Support Package for NUC029FAE MCU

Modules | Macros
SPI Exported Constants
NUC029FAE Device Driver » SPI Driver
Collaboration diagram for SPI Exported Constants:

## Modules
| SPI Exported Functions

## Macros
#define | SPI_MODE_0 (SPI_CNTRL_TX_NEG_Msk)
#define | SPI_MODE_1 (SPI_CNTRL_RX_NEG_Msk)
#define | SPI_MODE_2 (SPI_CNTRL_CLKP_Msk | SPI_CNTRL_RX_NEG_Msk)
#define | SPI_MODE_3 (SPI_CNTRL_CLKP_Msk | SPI_CNTRL_TX_NEG_Msk)
#define | SPI_SLAVE (SPI_CNTRL_SLAVE_Msk)
#define | SPI_MASTER (0x0)
#define | SPI_SS (SPI_SSR_SSR_Msk)
#define | SPI_SS_ACTIVE_HIGH (SPI_SSR_SS_LVL_Msk)
#define | SPI_SS_ACTIVE_LOW (0x0)
#define | SPI_IE_MASK (0x01)
#define | SPI_SSTA_INTEN_MASK (0x04)
#define | SPI_FIFO_TX_INTEN_MASK (0x08)
#define | SPI_FIFO_RX_INTEN_MASK (0x10)
#define | SPI_FIFO_RXOV_INTEN_MASK (0x20)
#define | SPI_FIFO_TIMEOUT_INTEN_MASK (0x40)

## Detailed Description

## Macro Definition Documentation

## ◆ SPI_FIFO_RX_INTEN_MASK

#define SPI_FIFO_RX_INTEN_MASK (0x10)

FIFO RX interrupt mask

Definition at line 48 of file spi.h.

## ◆ SPI_FIFO_RXOV_INTEN_MASK

#define SPI_FIFO_RXOV_INTEN_MASK (0x20)

FIFO RX overrun interrupt mask

Definition at line 49 of file spi.h.

## ◆ SPI_FIFO_TIMEOUT_INTEN_MASK

#define SPI_FIFO_TIMEOUT_INTEN_MASK (0x40)

FIFO timeout interrupt mask

Definition at line 50 of file spi.h.

## ◆ SPI_FIFO_TX_INTEN_MASK

#define SPI_FIFO_TX_INTEN_MASK (0x08)

FIFO TX interrupt mask

Definition at line 47 of file spi.h.

## ◆ SPI_IE_MASK

#define SPI_IE_MASK (0x01)

Interrupt enable mask

Definition at line 45 of file spi.h.

## ◆ SPI_MASTER

#define SPI_MASTER (0x0)

Set as master

Definition at line 39 of file spi.h.

## ◆ SPI_MODE_0

#define SPI_MODE_0 (SPI_CNTRL_TX_NEG_Msk)

CLKP=0; RX_NEG=0; TX_NEG=1

Definition at line 33 of file spi.h.

## ◆ SPI_MODE_1

#define SPI_MODE_1 (SPI_CNTRL_RX_NEG_Msk)

CLKP=0; RX_NEG=1; TX_NEG=0

Definition at line 34 of file spi.h.

## ◆ SPI_MODE_2

#define SPI_MODE_2 (SPI_CNTRL_CLKP_Msk | SPI_CNTRL_RX_NEG_Msk)

CLKP=1; RX_NEG=1; TX_NEG=0

Definition at line 35 of file spi.h.

## ◆ SPI_MODE_3

#define SPI_MODE_3 (SPI_CNTRL_CLKP_Msk | SPI_CNTRL_TX_NEG_Msk)

CLKP=1; RX_NEG=0; TX_NEG=1

Definition at line 36 of file spi.h.

## ◆ SPI_SLAVE

#define SPI_SLAVE (SPI_CNTRL_SLAVE_Msk)

Set as slave

Definition at line 38 of file spi.h.

## ◆ SPI_SS

#define SPI_SS (SPI_SSR_SSR_Msk)

Set SS0

Definition at line 41 of file spi.h.

## ◆ SPI_SS_ACTIVE_HIGH

#define SPI_SS_ACTIVE_HIGH (SPI_SSR_SS_LVL_Msk)

SS active high

Definition at line 42 of file spi.h.

## ◆ SPI_SS_ACTIVE_LOW

#define SPI_SS_ACTIVE_LOW (0x0)

SS active low

Definition at line 43 of file spi.h.

## ◆ SPI_SSTA_INTEN_MASK

#define SPI_SSTA_INTEN_MASK (0x04)

Slave 3-Wire mode start interrupt enable mask

Definition at line 46 of file spi.h.