| NUC029FAE BSP V3.01.002 The Board Support Package for NUC029FAE

Macros
UART Exported Constants
NUC029FAE Device Driver » UART Driver

## Macros
#define | UART_FCR_RFITL_1BYTE (0x0 << UART_FCR_RFITL_Pos)
#define | UART_FCR_RFITL_4BYTES (0x1 << UART_FCR_RFITL_Pos)
#define | UART_FCR_RFITL_8BYTES (0x2 << UART_FCR_RFITL_Pos)
#define | UART_FCR_RFITL_14BYTES (0x3 << UART_FCR_RFITL_Pos)
#define | UART_FCR_RTS_TRI_LEV_1BYTE (0x0 << UART_FCR_RTS_TRI_LEV_Pos)
#define | UART_FCR_RTS_TRI_LEV_4BYTES (0x1 << UART_FCR_RTS_TRI_LEV_Pos)
#define | UART_FCR_RTS_TRI_LEV_8BYTES (0x2 << UART_FCR_RTS_TRI_LEV_Pos)
#define | UART_FCR_RTS_TRI_LEV_14BYTES (0x3 << UART_FCR_RTS_TRI_LEV_Pos)
#define | UART_WORD_LEN_5 (0)
#define | UART_WORD_LEN_6 (1)
#define | UART_WORD_LEN_7 (2)
#define | UART_WORD_LEN_8 (3)
#define | UART_PARITY_NONE (0x0 << UART_LCR_PBE_Pos)
#define | UART_PARITY_ODD (0x1 << UART_LCR_PBE_Pos)
#define | UART_PARITY_EVEN (0x3 << UART_LCR_PBE_Pos)
#define | UART_PARITY_MARK (0x5 << UART_LCR_PBE_Pos)
#define | UART_PARITY_SPACE (0x7 << UART_LCR_PBE_Pos)
#define | UART_STOP_BIT_1 (0x0 << UART_LCR_NSB_Pos)
#define | UART_STOP_BIT_1_5 (0x1 << UART_LCR_NSB_Pos)
#define | UART_STOP_BIT_2 (0x1 << UART_LCR_NSB_Pos)
#define | UART_RTS_IS_HIGH_LEV_TRG (0x1 << UART_MCR_LEV_RTS_Pos)
#define | UART_RTS_IS_LOW_LEV_TRG (0x0 << UART_MCR_LEV_RTS_Pos)
#define | UART_FUNC_SEL_UART (0x0 << UART_FUN_SEL_FUN_SEL_Pos)
#define | UART_FUNC_SEL_IrDA (0x2 << UART_FUN_SEL_FUN_SEL_Pos)
#define | UART_FUNC_SEL_RS485 (0x3 << UART_FUN_SEL_FUN_SEL_Pos)

## Detailed Description

## Macro Definition Documentation

## ◆ UART_FCR_RFITL_14BYTES

#define UART_FCR_RFITL_14BYTES (0x3 << UART_FCR_RFITL_Pos)

UA_FCR setting to set RX FIFO Trigger Level to 14 bits

Definition at line 40 of file uart.h.

## ◆ UART_FCR_RFITL_1BYTE

#define UART_FCR_RFITL_1BYTE (0x0 << UART_FCR_RFITL_Pos)

UA_FCR setting to set RX FIFO Trigger Level to 1 bit

Definition at line 37 of file uart.h.

## ◆ UART_FCR_RFITL_4BYTES

#define UART_FCR_RFITL_4BYTES (0x1 << UART_FCR_RFITL_Pos)

UA_FCR setting to set RX FIFO Trigger Level to 4 bits

Definition at line 38 of file uart.h.

## ◆ UART_FCR_RFITL_8BYTES

#define UART_FCR_RFITL_8BYTES (0x2 << UART_FCR_RFITL_Pos)

UA_FCR setting to set RX FIFO Trigger Level to 8 bits

Definition at line 39 of file uart.h.

## ◆ UART_FCR_RTS_TRI_LEV_14BYTES

#define UART_FCR_RTS_TRI_LEV_14BYTES (0x3 << UART_FCR_RTS_TRI_LEV_Pos)

UA_FCR setting to set RTS Trigger Level to 14 bits

Definition at line 45 of file uart.h.

## ◆ UART_FCR_RTS_TRI_LEV_1BYTE

#define UART_FCR_RTS_TRI_LEV_1BYTE (0x0 << UART_FCR_RTS_TRI_LEV_Pos)

UA_FCR setting to set RTS Trigger Level to 1 bit

Definition at line 42 of file uart.h.

## ◆ UART_FCR_RTS_TRI_LEV_4BYTES

#define UART_FCR_RTS_TRI_LEV_4BYTES (0x1 << UART_FCR_RTS_TRI_LEV_Pos)

UA_FCR setting to set RTS Trigger Level to 4 bits

Definition at line 43 of file uart.h.

## ◆ UART_FCR_RTS_TRI_LEV_8BYTES

#define UART_FCR_RTS_TRI_LEV_8BYTES (0x2 << UART_FCR_RTS_TRI_LEV_Pos)

UA_FCR setting to set RTS Trigger Level to 8 bits

Definition at line 44 of file uart.h.

## ◆ UART_FUNC_SEL_IrDA

#define UART_FUNC_SEL_IrDA (0x2 << UART_FUN_SEL_FUN_SEL_Pos)

UA_FUNC_SEL setting to set IrDA Function

Definition at line 76 of file uart.h.

## ◆ UART_FUNC_SEL_RS485

#define UART_FUNC_SEL_RS485 (0x3 << UART_FUN_SEL_FUN_SEL_Pos)

UA_FUNC_SEL setting to set RS485 Function

Definition at line 77 of file uart.h.

## ◆ UART_FUNC_SEL_UART

#define UART_FUNC_SEL_UART (0x0 << UART_FUN_SEL_FUN_SEL_Pos)

UA_FUNC_SEL setting to set UART Function (Default)

Definition at line 75 of file uart.h.

## ◆ UART_PARITY_EVEN

#define UART_PARITY_EVEN (0x3 << UART_LCR_PBE_Pos)

UA_LCR setting to set UART as even parity

Definition at line 57 of file uart.h.

## ◆ UART_PARITY_MARK

#define UART_PARITY_MARK (0x5 << UART_LCR_PBE_Pos)

UA_LCR setting to keep parity bit as '1'

Definition at line 58 of file uart.h.

## ◆ UART_PARITY_NONE

#define UART_PARITY_NONE (0x0 << UART_LCR_PBE_Pos)

UA_LCR setting to set UART as no parity

Definition at line 55 of file uart.h.

## ◆ UART_PARITY_ODD

#define UART_PARITY_ODD (0x1 << UART_LCR_PBE_Pos)

UA_LCR setting to set UART as odd parity

Definition at line 56 of file uart.h.

## ◆ UART_PARITY_SPACE

#define UART_PARITY_SPACE (0x7 << UART_LCR_PBE_Pos)

UA_LCR setting to keep parity bit as '0'

Definition at line 59 of file uart.h.

## ◆ UART_RTS_IS_HIGH_LEV_TRG

#define UART_RTS_IS_HIGH_LEV_TRG (0x1 << UART_MCR_LEV_RTS_Pos)

Set RTS is High Level Trigger

Definition at line 69 of file uart.h.

## ◆ UART_RTS_IS_LOW_LEV_TRG

#define UART_RTS_IS_LOW_LEV_TRG (0x0 << UART_MCR_LEV_RTS_Pos)

Set RTS is Low Level Trigger

Definition at line 70 of file uart.h.

## ◆ UART_STOP_BIT_1

#define UART_STOP_BIT_1 (0x0 << UART_LCR_NSB_Pos)

UA_LCR setting for one stop bit

Definition at line 61 of file uart.h.

## ◆ UART_STOP_BIT_1_5

#define UART_STOP_BIT_1_5 (0x1 << UART_LCR_NSB_Pos)

UA_LCR setting for 1.5 stop bit when 5-bit word length

Definition at line 62 of file uart.h.

## ◆ UART_STOP_BIT_2

#define UART_STOP_BIT_2 (0x1 << UART_LCR_NSB_Pos)

UA_LCR setting for two stop bit when 6, 7, 8-bit word length

Definition at line 63 of file uart.h.

## ◆ UART_WORD_LEN_5

#define UART_WORD_LEN_5 (0)

UA_LCR setting to set UART word length to 5 bits

Definition at line 50 of file uart.h.

## ◆ UART_WORD_LEN_6

#define UART_WORD_LEN_6 (1)

UA_LCR setting to set UART word length to 6 bits

Definition at line 51 of file uart.h.

## ◆ UART_WORD_LEN_7

#define UART_WORD_LEN_7 (2)

UA_LCR setting to set UART word length to 7 bits

Definition at line 52 of file uart.h.

## ◆ UART_WORD_LEN_8

#define UART_WORD_LEN_8 (3)

UA_LCR setting to set UART word length to 8 bits

Definition at line 53 of file uart.h.