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

Macros
UART Exported Constants
Standard Driver » UART Driver

## Macros
#define | UART0_FIFO_SIZE
#define | UART1_FIFO_SIZE
#define | UART2_FIFO_SIZE
#define | UART3_FIFO_SIZE
#define | UART4_FIFO_SIZE
#define | UART5_FIFO_SIZE
#define | UART_FIFO_RFITL_1BYTE
#define | UART_FIFO_RFITL_4BYTES
#define | UART_FIFO_RFITL_8BYTES
#define | UART_FIFO_RFITL_14BYTES
#define | UART_FIFO_RTSTRGLV_1BYTE
#define | UART_FIFO_RTSTRGLV_4BYTES
#define | UART_FIFO_RTSTRGLV_8BYTES
#define | UART_FIFO_RTSTRGLV_14BYTES
#define | UART_WORD_LEN_5
#define | UART_WORD_LEN_6
#define | UART_WORD_LEN_7
#define | UART_WORD_LEN_8
#define | UART_PARITY_NONE
#define | UART_PARITY_ODD
#define | UART_PARITY_EVEN
#define | UART_PARITY_MARK
#define | UART_PARITY_SPACE
#define | UART_STOP_BIT_1
#define | UART_STOP_BIT_1_5
#define | UART_STOP_BIT_2
#define | UART_RTS_IS_LOW_LEV_ACTIVE
#define | UART_RTS_IS_HIGH_LEV_ACTIVE
#define | UART_IRDA_TXEN
#define | UART_IRDA_RXEN
#define | UART_FUNCSEL_UART
#define | UART_FUNCSEL_LIN
#define | UART_FUNCSEL_IrDA
#define | UART_FUNCSEL_RS485
#define | UART_LINCTL_BRKFL(x)
#define | UART_LINCTL_BSL(x)
#define | UART_LINCTL_HSEL_BREAK
#define | UART_LINCTL_HSEL_BREAK_SYNC
#define | UART_LINCTL_HSEL_BREAK_SYNC_ID
#define | UART_LINCTL_PID(x)
#define | UART_BAUD_MODE0
#define | UART_BAUD_MODE2

## Detailed Description

## Macro Definition Documentation

## ◆ UART0_FIFO_SIZE

#define UART0_FIFO_SIZE

UART0 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 35 of file uart.h.

## ◆ UART1_FIFO_SIZE

#define UART1_FIFO_SIZE

UART1 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 36 of file uart.h.

## ◆ UART2_FIFO_SIZE

#define UART2_FIFO_SIZE

UART2 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 37 of file uart.h.

## ◆ UART3_FIFO_SIZE

#define UART3_FIFO_SIZE

UART3 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 38 of file uart.h.

## ◆ UART4_FIFO_SIZE

#define UART4_FIFO_SIZE

UART4 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 39 of file uart.h.

## ◆ UART5_FIFO_SIZE

#define UART5_FIFO_SIZE

UART5 supports separated receive/transmit 16/16 bytes entry FIFO

Definition at line 40 of file uart.h.

## ◆ UART_BAUD_MODE0

#define UART_BAUD_MODE0

Set UART Baudrate Mode is Mode0

Definition at line 112 of file uart.h.

## ◆ UART_BAUD_MODE2

#define UART_BAUD_MODE2

Set UART Baudrate Mode is Mode2

Definition at line 113 of file uart.h.

## ◆ UART_FIFO_RFITL_14BYTES

#define UART_FIFO_RFITL_14BYTES

UART_FIFO setting to set RX FIFO Trigger Level to 14 bytes

Definition at line 49 of file uart.h.

## ◆ UART_FIFO_RFITL_1BYTE

#define UART_FIFO_RFITL_1BYTE

UART_FIFO setting to set RX FIFO Trigger Level to 1 byte

Definition at line 46 of file uart.h.

## ◆ UART_FIFO_RFITL_4BYTES

#define UART_FIFO_RFITL_4BYTES

UART_FIFO setting to set RX FIFO Trigger Level to 4 bytes

Definition at line 47 of file uart.h.

## ◆ UART_FIFO_RFITL_8BYTES

#define UART_FIFO_RFITL_8BYTES

UART_FIFO setting to set RX FIFO Trigger Level to 8 bytes

Definition at line 48 of file uart.h.

## ◆ UART_FIFO_RTSTRGLV_14BYTES

#define UART_FIFO_RTSTRGLV_14BYTES

UART_FIFO setting to set RTS Trigger Level to 14 bytes

Definition at line 54 of file uart.h.

## ◆ UART_FIFO_RTSTRGLV_1BYTE

#define UART_FIFO_RTSTRGLV_1BYTE

UART_FIFO setting to set RTS Trigger Level to 1 byte

Definition at line 51 of file uart.h.

## ◆ UART_FIFO_RTSTRGLV_4BYTES

#define UART_FIFO_RTSTRGLV_4BYTES

UART_FIFO setting to set RTS Trigger Level to 4 bytes

Definition at line 52 of file uart.h.

## ◆ UART_FIFO_RTSTRGLV_8BYTES

#define UART_FIFO_RTSTRGLV_8BYTES

UART_FIFO setting to set RTS Trigger Level to 8 bytes

Definition at line 53 of file uart.h.

## ◆ UART_FUNCSEL_IrDA

#define UART_FUNCSEL_IrDA

UART_FUNCSEL setting to set IrDA Function

Definition at line 94 of file uart.h.

## ◆ UART_FUNCSEL_LIN

#define UART_FUNCSEL_LIN

UART_FUNCSEL setting to set LIN Function

Definition at line 93 of file uart.h.

## ◆ UART_FUNCSEL_RS485

#define UART_FUNCSEL_RS485

UART_FUNCSEL setting to set RS485 Function

Definition at line 95 of file uart.h.

## ◆ UART_FUNCSEL_UART

#define UART_FUNCSEL_UART

UART_FUNCSEL setting to set UART Function (Default)

Definition at line 92 of file uart.h.

## ◆ UART_IRDA_RXEN

#define UART_IRDA_RXEN

Set IrDA function Rx mode

Definition at line 86 of file uart.h.

## ◆ UART_IRDA_TXEN

#define UART_IRDA_TXEN

Set IrDA function Tx mode

Definition at line 85 of file uart.h.

## ◆ UART_LINCTL_BRKFL

#define UART_LINCTL_BRKFL | ( |  | x | ) |

UART_LINCTL setting to set LIN Break Field Length, x = 10 ~ 15, default value is 12

Definition at line 101 of file uart.h.

## ◆ UART_LINCTL_BSL

#define UART_LINCTL_BSL | ( |  | x | ) |

UART_LINCTL setting to set LIN Break/Sync Delimiter Length, x = 1 ~ 4

Definition at line 102 of file uart.h.

## ◆ UART_LINCTL_HSEL_BREAK

#define UART_LINCTL_HSEL_BREAK

UART_LINCTL setting to set LIN Header Select to break field

Definition at line 103 of file uart.h.

## ◆ UART_LINCTL_HSEL_BREAK_SYNC

#define UART_LINCTL_HSEL_BREAK_SYNC

UART_LINCTL setting to set LIN Header Select to break field and sync field

Definition at line 104 of file uart.h.

## ◆ UART_LINCTL_HSEL_BREAK_SYNC_ID

#define UART_LINCTL_HSEL_BREAK_SYNC_ID

UART_LINCTL setting to set LIN Header Select to break field, sync field and ID field

Definition at line 105 of file uart.h.

## ◆ UART_LINCTL_PID

#define UART_LINCTL_PID | ( |  | x | ) |

UART_LINCTL setting to set LIN PID value

Definition at line 106 of file uart.h.

## ◆ UART_PARITY_EVEN

#define UART_PARITY_EVEN

UART_LINE setting to set UART as even parity

Definition at line 66 of file uart.h.

## ◆ UART_PARITY_MARK

#define UART_PARITY_MARK

UART_LINE setting to keep parity bit as '1'

Definition at line 67 of file uart.h.

## ◆ UART_PARITY_NONE

#define UART_PARITY_NONE

UART_LINE setting to set UART as no parity

Definition at line 64 of file uart.h.

## ◆ UART_PARITY_ODD

#define UART_PARITY_ODD

UART_LINE setting to set UART as odd parity

Definition at line 65 of file uart.h.

## ◆ UART_PARITY_SPACE

#define UART_PARITY_SPACE

UART_LINE setting to keep parity bit as '0'

Definition at line 68 of file uart.h.

## ◆ UART_RTS_IS_HIGH_LEV_ACTIVE

#define UART_RTS_IS_HIGH_LEV_ACTIVE

Set RTS is High Level Active

Definition at line 79 of file uart.h.

## ◆ UART_RTS_IS_LOW_LEV_ACTIVE

#define UART_RTS_IS_LOW_LEV_ACTIVE

Set RTS is Low Level Active

Definition at line 78 of file uart.h.

## ◆ UART_STOP_BIT_1

#define UART_STOP_BIT_1

UART_LINE setting for one stop bit

Definition at line 70 of file uart.h.

## ◆ UART_STOP_BIT_1_5

#define UART_STOP_BIT_1_5

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

Definition at line 71 of file uart.h.

## ◆ UART_STOP_BIT_2

#define UART_STOP_BIT_2

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

Definition at line 72 of file uart.h.

## ◆ UART_WORD_LEN_5

#define UART_WORD_LEN_5

UART_LINE setting to set UART word length to 5 bits

Definition at line 59 of file uart.h.

## ◆ UART_WORD_LEN_6

#define UART_WORD_LEN_6

UART_LINE setting to set UART word length to 6 bits

Definition at line 60 of file uart.h.

## ◆ UART_WORD_LEN_7

#define UART_WORD_LEN_7

UART_LINE setting to set UART word length to 7 bits

Definition at line 61 of file uart.h.

## ◆ UART_WORD_LEN_8

#define UART_WORD_LEN_8

UART_LINE setting to set UART word length to 8 bits

Definition at line 62 of file uart.h.