MINI58_BSP V3.01.005
The Board Support Package for Mini58 Series MCU
Modules | Macros
UART Exported Constants
Collaboration diagram for UART Exported Constants:

Modules

 UART Exported Functions
 

Macros

#define UART_FIFO_RFITL_1BYTE   (0x0 << UART_FIFO_RFITL_Pos)
 
#define UART_FIFO_RFITL_4BYTES   (0x1 << UART_FIFO_RFITL_Pos)
 
#define UART_FIFO_RFITL_8BYTES   (0x2 << UART_FIFO_RFITL_Pos)
 
#define UART_FIFO_RFITL_14BYTES   (0x3 << UART_FIFO_RFITL_Pos)
 
#define UART_FIFO_RTSTRGLV_1BYTE   (0x0 << UART_FIFO_RTSTRGLV_Pos)
 
#define UART_FIFO_RTSTRGLV_4BYTES   (0x1 << UART_FIFO_RTSTRGLV_Pos)
 
#define UART_FIFO_RTSTRGLV_8BYTES   (0x2 << UART_FIFO_RTSTRGLV_Pos)
 
#define UART_FIFO_RTSTRGLV_14BYTES   (0x3 << UART_FIFO_RTSTRGLV_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_LINE_PBE_Pos)
 
#define UART_PARITY_ODD   (0x1 << UART_LINE_PBE_Pos)
 
#define UART_PARITY_EVEN   (0x3 << UART_LINE_PBE_Pos)
 
#define UART_PARITY_MARK   (0x5 << UART_LINE_PBE_Pos)
 
#define UART_PARITY_SPACE   (0x7 << UART_LINE_PBE_Pos)
 
#define UART_STOP_BIT_1   (0x0 << UART_LINE_NSB_Pos)
 
#define UART_STOP_BIT_1_5   (0x1 << UART_LINE_NSB_Pos)
 
#define UART_STOP_BIT_2   (0x1 << UART_LINE_NSB_Pos)
 
#define UART_RTS_IS_HIGH_LEV_TRG   (0x1 << UART_MODEM_RTSACTLV_Pos)
 
#define UART_RTS_IS_LOW_LEV_TRG   (0x0 << UART_MODEM_RTSACTLV_Pos)
 
#define UART_FUNC_SEL_UART   (0x0 << UART_FUNSEL_FUN_SEL_Pos)
 
#define UART_FUNC_SEL_IrDA   (0x2 << UART_FUNSEL_FUN_SEL_Pos)
 
#define UART_FUNC_SEL_RS485   (0x3 << UART_FUNSEL_FUN_SEL_Pos)
 

Detailed Description

Macro Definition Documentation

◆ UART_FIFO_RFITL_14BYTES

#define UART_FIFO_RFITL_14BYTES   (0x3 << UART_FIFO_RFITL_Pos)

UART_FIFO setting to set RX FIFO Trigger Level to 14 bits

Definition at line 40 of file uart.h.

◆ UART_FIFO_RFITL_1BYTE

#define UART_FIFO_RFITL_1BYTE   (0x0 << UART_FIFO_RFITL_Pos)

UART_FIFO setting to set RX FIFO Trigger Level to 1 bit

Definition at line 37 of file uart.h.

◆ UART_FIFO_RFITL_4BYTES

#define UART_FIFO_RFITL_4BYTES   (0x1 << UART_FIFO_RFITL_Pos)

UART_FIFO setting to set RX FIFO Trigger Level to 4 bits

Definition at line 38 of file uart.h.

◆ UART_FIFO_RFITL_8BYTES

#define UART_FIFO_RFITL_8BYTES   (0x2 << UART_FIFO_RFITL_Pos)

UART_FIFO setting to set RX FIFO Trigger Level to 8 bits

Definition at line 39 of file uart.h.

◆ UART_FIFO_RTSTRGLV_14BYTES

#define UART_FIFO_RTSTRGLV_14BYTES   (0x3 << UART_FIFO_RTSTRGLV_Pos)

UART_FIFO setting to set RTS Trigger Level to 14 bits

Definition at line 45 of file uart.h.

◆ UART_FIFO_RTSTRGLV_1BYTE

#define UART_FIFO_RTSTRGLV_1BYTE   (0x0 << UART_FIFO_RTSTRGLV_Pos)

UART_FIFO setting to set RTS Trigger Level to 1 bit

Definition at line 42 of file uart.h.

◆ UART_FIFO_RTSTRGLV_4BYTES

#define UART_FIFO_RTSTRGLV_4BYTES   (0x1 << UART_FIFO_RTSTRGLV_Pos)

UART_FIFO setting to set RTS Trigger Level to 4 bits

Definition at line 43 of file uart.h.

◆ UART_FIFO_RTSTRGLV_8BYTES

#define UART_FIFO_RTSTRGLV_8BYTES   (0x2 << UART_FIFO_RTSTRGLV_Pos)

UART_FIFO 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_FUNSEL_FUN_SEL_Pos)

UART_FUNCSEL setting to set IrDA Function

Definition at line 76 of file uart.h.

◆ UART_FUNC_SEL_RS485

#define UART_FUNC_SEL_RS485   (0x3 << UART_FUNSEL_FUN_SEL_Pos)

UART_FUNCSEL setting to set RS485 Function

Definition at line 77 of file uart.h.

◆ UART_FUNC_SEL_UART

#define UART_FUNC_SEL_UART   (0x0 << UART_FUNSEL_FUN_SEL_Pos)

UART_FUNCSEL setting to set UART Function (Default)

Definition at line 75 of file uart.h.

◆ UART_PARITY_EVEN

#define UART_PARITY_EVEN   (0x3 << UART_LINE_PBE_Pos)

UART_LINE setting to set UART as even parity

Definition at line 57 of file uart.h.

◆ UART_PARITY_MARK

#define UART_PARITY_MARK   (0x5 << UART_LINE_PBE_Pos)

UART_LINE setting to keep parity bit as '1'

Definition at line 58 of file uart.h.

◆ UART_PARITY_NONE

#define UART_PARITY_NONE   (0x0 << UART_LINE_PBE_Pos)

UART_LINE setting to set UART as no parity

Definition at line 55 of file uart.h.

◆ UART_PARITY_ODD

#define UART_PARITY_ODD   (0x1 << UART_LINE_PBE_Pos)

UART_LINE setting to set UART as odd parity

Definition at line 56 of file uart.h.

◆ UART_PARITY_SPACE

#define UART_PARITY_SPACE   (0x7 << UART_LINE_PBE_Pos)

UART_LINE 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_MODEM_RTSACTLV_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_MODEM_RTSACTLV_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_LINE_NSB_Pos)

UART_LINE 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_LINE_NSB_Pos)

UART_LINE 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_LINE_NSB_Pos)

UART_LINE 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)

UART_LINE 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)

UART_LINE 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)

UART_LINE 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)

UART_LINE setting to set UART word length to 8 bits

Definition at line 53 of file uart.h.