Nano102_112 Series BSP  V3.03.002
The Board Support Package for Nano102_112 Series
Macros
UART Exported Constants

Macros

#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_TLCTL_PBE_Pos)
 
#define UART_PARITY_ODD   (0x1 << UART_TLCTL_PBE_Pos)
 
#define UART_PARITY_EVEN   (0x3 << UART_TLCTL_PBE_Pos)
 
#define UART_PARITY_MARK   (0x5 << UART_TLCTL_PBE_Pos)
 
#define UART_PARITY_SPACE   (0x7 << UART_TLCTL_PBE_Pos)
 
#define UART_STOP_BIT_1   (0x0 << UART_TLCTL_NSB_Pos)
 
#define UART_STOP_BIT_1_5   (0x1 << UART_TLCTL_NSB_Pos)
 
#define UART_STOP_BIT_2   (0x1 << UART_TLCTL_NSB_Pos)
 
#define UART_TLCTL_RFITL_1BYTE   (0x0 << UART_TLCTL_RFITL_Pos)
 
#define UART_TLCTL_RFITL_4BYTES   (0x1 << UART_TLCTL_RFITL_Pos)
 
#define UART_TLCTL_RFITL_8BYTES   (0x2 << UART_TLCTL_RFITL_Pos)
 
#define UART_TLCTL_RFITL_14BYTES   (0x3 << UART_TLCTL_RFITL_Pos)
 
#define UART_TLCTL_RTS_TRI_LEV_1BYTE   (0x0 << UART_TLCTL_RTS_TRI_LEV_Pos)
 
#define UART_TLCTL_RTS_TRI_LEV_4BYTES   (0x1 << UART_TLCTL_RTS_TRI_LEV_Pos)
 
#define UART_TLCTL_RTS_TRI_LEV_8BYTES   (0x2 << UART_TLCTL_RTS_TRI_LEV_Pos)
 
#define UART_TLCTL_RTS_TRI_LEV_14BYTES   (0x3 << UART_TLCTL_RTS_TRI_LEV_Pos)
 
#define UART_RTS_IS_HIGH_LEV_TRG   (0x1 << UART_MCSR_LEV_RTS_Pos)
 
#define UART_RTS_IS_LOW_LEV_TRG   (0x0 << UART_MCSR_LEV_RTS_Pos)
 
#define UART_FUNC_SEL_UART   (0x0 << UART_FUN_SEL_FUN_SEL_Pos)
 
#define UART_FUNC_SEL_LIN   (0x1 << 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_FUNC_SEL_IrDA

#define UART_FUNC_SEL_IrDA   (0x2 << UART_FUN_SEL_FUN_SEL_Pos)

UART_FUN_SEL setting to set IrDA Function

Definition at line 75 of file uart.h.

◆ UART_FUNC_SEL_LIN

#define UART_FUNC_SEL_LIN   (0x1 << UART_FUN_SEL_FUN_SEL_Pos)

UART_FUN_SEL setting to set LIN Function

Definition at line 74 of file uart.h.

◆ UART_FUNC_SEL_RS485

#define UART_FUNC_SEL_RS485   (0x3 << UART_FUN_SEL_FUN_SEL_Pos)

UART_FUN_SEL setting to set RS485 Function

Definition at line 76 of file uart.h.

◆ UART_FUNC_SEL_UART

#define UART_FUNC_SEL_UART   (0x0 << UART_FUN_SEL_FUN_SEL_Pos)

UART_FUN_SEL setting to set UART Function (Default)

Definition at line 73 of file uart.h.

◆ UART_PARITY_EVEN

#define UART_PARITY_EVEN   (0x3 << UART_TLCTL_PBE_Pos)

UART_TLCTL setting to set UART as even parity

Definition at line 45 of file uart.h.

◆ UART_PARITY_MARK

#define UART_PARITY_MARK   (0x5 << UART_TLCTL_PBE_Pos)

UART_TLCTL setting to keep parity bit as '1'

Definition at line 46 of file uart.h.

◆ UART_PARITY_NONE

#define UART_PARITY_NONE   (0x0 << UART_TLCTL_PBE_Pos)

UART_TLCTL setting to set UART as no parity

Definition at line 43 of file uart.h.

◆ UART_PARITY_ODD

#define UART_PARITY_ODD   (0x1 << UART_TLCTL_PBE_Pos)

UART_TLCTL setting to set UART as odd parity

Definition at line 44 of file uart.h.

◆ UART_PARITY_SPACE

#define UART_PARITY_SPACE   (0x7 << UART_TLCTL_PBE_Pos)

UART_TLCTL setting to keep parity bit as '0'

Definition at line 47 of file uart.h.

◆ UART_RTS_IS_HIGH_LEV_TRG

#define UART_RTS_IS_HIGH_LEV_TRG   (0x1 << UART_MCSR_LEV_RTS_Pos)

Set RTS is High Level Trigger

Definition at line 67 of file uart.h.

◆ UART_RTS_IS_LOW_LEV_TRG

#define UART_RTS_IS_LOW_LEV_TRG   (0x0 << UART_MCSR_LEV_RTS_Pos)

Set RTS is Low Level Trigger

Definition at line 68 of file uart.h.

◆ UART_STOP_BIT_1

#define UART_STOP_BIT_1   (0x0 << UART_TLCTL_NSB_Pos)

UART_TLCTL setting for one stop bit

Definition at line 49 of file uart.h.

◆ UART_STOP_BIT_1_5

#define UART_STOP_BIT_1_5   (0x1 << UART_TLCTL_NSB_Pos)

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

Definition at line 50 of file uart.h.

◆ UART_STOP_BIT_2

#define UART_STOP_BIT_2   (0x1 << UART_TLCTL_NSB_Pos)

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

Definition at line 51 of file uart.h.

◆ UART_TLCTL_RFITL_14BYTES

#define UART_TLCTL_RFITL_14BYTES   (0x3 << UART_TLCTL_RFITL_Pos)

UART_TLCTL setting to set RX FIFO Trigger Level to 14 bits

Definition at line 56 of file uart.h.

◆ UART_TLCTL_RFITL_1BYTE

#define UART_TLCTL_RFITL_1BYTE   (0x0 << UART_TLCTL_RFITL_Pos)

UART_TLCTL setting to set RX FIFO Trigger Level to 1 bit

Definition at line 53 of file uart.h.

◆ UART_TLCTL_RFITL_4BYTES

#define UART_TLCTL_RFITL_4BYTES   (0x1 << UART_TLCTL_RFITL_Pos)

UART_TLCTL setting to set RX FIFO Trigger Level to 4 bits

Definition at line 54 of file uart.h.

◆ UART_TLCTL_RFITL_8BYTES

#define UART_TLCTL_RFITL_8BYTES   (0x2 << UART_TLCTL_RFITL_Pos)

UART_TLCTL setting to set RX FIFO Trigger Level to 8 bits

Definition at line 55 of file uart.h.

◆ UART_TLCTL_RTS_TRI_LEV_14BYTES

#define UART_TLCTL_RTS_TRI_LEV_14BYTES   (0x3 << UART_TLCTL_RTS_TRI_LEV_Pos)

UART_TLCTL setting to set RTS Trigger Level to 14 bits

Definition at line 61 of file uart.h.

◆ UART_TLCTL_RTS_TRI_LEV_1BYTE

#define UART_TLCTL_RTS_TRI_LEV_1BYTE   (0x0 << UART_TLCTL_RTS_TRI_LEV_Pos)

UART_TLCTL setting to set RTS Trigger Level to 1 bit

Definition at line 58 of file uart.h.

◆ UART_TLCTL_RTS_TRI_LEV_4BYTES

#define UART_TLCTL_RTS_TRI_LEV_4BYTES   (0x1 << UART_TLCTL_RTS_TRI_LEV_Pos)

UART_TLCTL setting to set RTS Trigger Level to 4 bits

Definition at line 59 of file uart.h.

◆ UART_TLCTL_RTS_TRI_LEV_8BYTES

#define UART_TLCTL_RTS_TRI_LEV_8BYTES   (0x2 << UART_TLCTL_RTS_TRI_LEV_Pos)

UART_TLCTL setting to set RTS Trigger Level to 8 bits

Definition at line 60 of file uart.h.

◆ UART_WORD_LEN_5

#define UART_WORD_LEN_5   (0)

UART_TLCTL setting to set UART word length to 5 bits

Definition at line 38 of file uart.h.

◆ UART_WORD_LEN_6

#define UART_WORD_LEN_6   (1)

UART_TLCTL setting to set UART word length to 6 bits

Definition at line 39 of file uart.h.

◆ UART_WORD_LEN_7

#define UART_WORD_LEN_7   (2)

UART_TLCTL setting to set UART word length to 7 bits

Definition at line 40 of file uart.h.

◆ UART_WORD_LEN_8

#define UART_WORD_LEN_8   (3)

UART_TLCTL setting to set UART word length to 8 bits

Definition at line 41 of file uart.h.