libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
FIFO Control Register bits
Collaboration diagram for FIFO Control Register bits:

Macros

#define USART_FCR_FIFOEN   BIT0
 Enable both UART RX and TX FIFOs, must be set before writing rest of FCR. More...
 
#define USART_FCR_RXFIFORST   BIT1
 RX FIFO Reset. More...
 
#define USART_FCR_TXFIFORST   BIT2
 TX FIFO Reset. More...
 
#define USART_FCR_TXTL_MASK   (3)
 
#define USART_FCR_TXTL_SHIFT   4
 
#define USART_FCR_TXTL(txtl)   (((txtl) & USART_FCR_TXTL_MASK) << USART_FCR_TXTL_SHIFT)
 TX Trigger Level. More...
 
#define USART_FCR_RXTL_MASK   (3)
 
#define USART_FCR_RXTL_SHIFT   6
 
#define USART_FCR_RXTL(rxtl)   (((rxtl) & USART_FCR_RXTL_MASK) << USART_FCR_RXTL_SHIFT)
 RX Trigger Level. More...
 
#define USART_FIFO_TRIG_1CHAR   (0)
 
#define USART_FIFO_TRIG_4CHAR   (1)
 
#define USART_FIFO_TRIG_8CHAR   (2)
 
#define USART_FIFO_TRIG_14CHAR   (3)
 

Detailed Description

Macro Definition Documentation

◆ USART_FCR_FIFOEN

#define USART_FCR_FIFOEN   BIT0

Enable both UART RX and TX FIFOs, must be set before writing rest of FCR.

Definition at line 91 of file usart.h.

◆ USART_FCR_RXFIFORST

#define USART_FCR_RXFIFORST   BIT1

RX FIFO Reset.

Write 1 to clear. This bit is self-clearing.

Definition at line 93 of file usart.h.

◆ USART_FCR_RXTL

#define USART_FCR_RXTL (   rxtl)    (((rxtl) & USART_FCR_RXTL_MASK) << USART_FCR_RXTL_SHIFT)

RX Trigger Level.

Definition at line 103 of file usart.h.

◆ USART_FCR_RXTL_MASK

#define USART_FCR_RXTL_MASK   (3)

Definition at line 100 of file usart.h.

◆ USART_FCR_RXTL_SHIFT

#define USART_FCR_RXTL_SHIFT   6

Definition at line 101 of file usart.h.

◆ USART_FCR_TXFIFORST

#define USART_FCR_TXFIFORST   BIT2

TX FIFO Reset.

Write 1 to clear. This bit is self-clearing.

Definition at line 95 of file usart.h.

◆ USART_FCR_TXTL

#define USART_FCR_TXTL (   txtl)    (((txtl) & USART_FCR_TXTL_MASK) << USART_FCR_TXTL_SHIFT)

TX Trigger Level.

Definition at line 99 of file usart.h.

◆ USART_FCR_TXTL_MASK

#define USART_FCR_TXTL_MASK   (3)

Definition at line 96 of file usart.h.

◆ USART_FCR_TXTL_SHIFT

#define USART_FCR_TXTL_SHIFT   4

Definition at line 97 of file usart.h.

◆ USART_FIFO_TRIG_14CHAR

#define USART_FIFO_TRIG_14CHAR   (3)

Definition at line 107 of file usart.h.

◆ USART_FIFO_TRIG_1CHAR

#define USART_FIFO_TRIG_1CHAR   (0)

Definition at line 104 of file usart.h.

◆ USART_FIFO_TRIG_4CHAR

#define USART_FIFO_TRIG_4CHAR   (1)

Definition at line 105 of file usart.h.

◆ USART_FIFO_TRIG_8CHAR

#define USART_FIFO_TRIG_8CHAR   (2)

Definition at line 106 of file usart.h.