libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
USART Tx/Rx Mode Selection
Collaboration diagram for USART Tx/Rx Mode Selection:

Macros

#define USART_MODE_RX   USART_CR1_RE
 
#define USART_MODE_TX   USART_CR1_TE
 
#define USART_MODE_TX_RX   (USART_CR1_RE | USART_CR1_TE)
 

Detailed Description

Macro Definition Documentation

◆ USART_MODE_RX

#define USART_MODE_RX   USART_CR1_RE

Definition at line 58 of file usart_common_all.h.

◆ USART_MODE_TX

#define USART_MODE_TX   USART_CR1_TE

Definition at line 59 of file usart_common_all.h.

◆ USART_MODE_TX_RX

#define USART_MODE_TX_RX   (USART_CR1_RE | USART_CR1_TE)

Definition at line 60 of file usart_common_all.h.