libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
USART_CR2 Values
Collaboration diagram for USART_CR2 Values:

Modules

 Auto baud rate mode
 ABRMOD[1:0]: Auto baud rate mode.
 

Macros

#define USART_CR2_ADD_SHIFT   24
 ADD[7:0]: Address of the USART node. More...
 
#define USART_CR2_ADD   (0xFF << USART_CR2_ADD_SHIFT)
 
#define USART_CR2_ADD_VAL(x)   ((x) << USART_CR2_ADD_SHIFT)
 
#define USART_CR2_ABRMOD_MASK   3
 
#define USART_CR2_ABRMOD_SHIFT   21
 
#define USART_CR2_RTOEN   (1 << 23)
 RTOEN: Receiver timeout enable. More...
 
#define USART_CR2_ABREN   (1 << 20)
 ABREN: Auto baud rate enable. More...
 
#define USART_CR2_MSBFIRST   (1 << 19)
 MSBFIRST: Most significant bit first. More...
 
#define USART_CR2_DATAINV   (1 << 18)
 DATAINV: Binary data inversion. More...
 
#define USART_CR2_TXINV   (1 << 17)
 TXINV: TX pin active level inversion. More...
 
#define USART_CR2_RXINV   (1 << 16)
 RXINV: RX pin active level inversion. More...
 
#define USART_CR2_SWAP   (1 << 15)
 SWAP: Swap TX/RX pins. More...
 
#define USART_CR2_LINEN   (1 << 14)
 LINEN: LIN mode enable. More...
 
#define USART_CR2_CLKEN   (1 << 11)
 CLKEN: Clock enable. More...
 
#define USART_CR2_CPOL   (1 << 10)
 CPOL: Clock polarity. More...
 
#define USART_CR2_CPHA   (1 << 9)
 CPHA: Clock phase. More...
 
#define USART_CR2_LBCL   (1 << 8)
 LBCL: Last bit clock pulse. More...
 
#define USART_CR2_LBDIE   (1 << 6)
 LBDIE: LIN break detection interrupt enable. More...
 
#define USART_CR2_LBDL   (1 << 5)
 LBDL: LIN break detection length. More...
 
#define USART_CR2_ADDM7   (1 << 4)
 ADDM7:7-bit Address Detection/4-bit Address Detection. More...
 

Detailed Description

Macro Definition Documentation

◆ USART_CR2_ABREN

#define USART_CR2_ABREN   (1 << 20)

ABREN: Auto baud rate enable.

Definition at line 322 of file usart_common_v2.h.

◆ USART_CR2_ABRMOD_MASK

#define USART_CR2_ABRMOD_MASK   3

Definition at line 305 of file usart_common_v2.h.

◆ USART_CR2_ABRMOD_SHIFT

#define USART_CR2_ABRMOD_SHIFT   21

Definition at line 306 of file usart_common_v2.h.

◆ USART_CR2_ADD

#define USART_CR2_ADD   (0xFF << USART_CR2_ADD_SHIFT)

Definition at line 302 of file usart_common_v2.h.

◆ USART_CR2_ADD_SHIFT

#define USART_CR2_ADD_SHIFT   24

ADD[7:0]: Address of the USART node.

Definition at line 301 of file usart_common_v2.h.

◆ USART_CR2_ADD_VAL

#define USART_CR2_ADD_VAL (   x)    ((x) << USART_CR2_ADD_SHIFT)

Definition at line 303 of file usart_common_v2.h.

◆ USART_CR2_ADDM7

#define USART_CR2_ADDM7   (1 << 4)

ADDM7:7-bit Address Detection/4-bit Address Detection.

Definition at line 361 of file usart_common_v2.h.

◆ USART_CR2_CLKEN

#define USART_CR2_CLKEN   (1 << 11)

CLKEN: Clock enable.

Definition at line 343 of file usart_common_v2.h.

◆ USART_CR2_CPHA

#define USART_CR2_CPHA   (1 << 9)

CPHA: Clock phase.

Definition at line 349 of file usart_common_v2.h.

◆ USART_CR2_CPOL

#define USART_CR2_CPOL   (1 << 10)

CPOL: Clock polarity.

Definition at line 346 of file usart_common_v2.h.

◆ USART_CR2_DATAINV

#define USART_CR2_DATAINV   (1 << 18)

DATAINV: Binary data inversion.

Definition at line 328 of file usart_common_v2.h.

◆ USART_CR2_LBCL

#define USART_CR2_LBCL   (1 << 8)

LBCL: Last bit clock pulse.

Definition at line 352 of file usart_common_v2.h.

◆ USART_CR2_LBDIE

#define USART_CR2_LBDIE   (1 << 6)

LBDIE: LIN break detection interrupt enable.

Definition at line 355 of file usart_common_v2.h.

◆ USART_CR2_LBDL

#define USART_CR2_LBDL   (1 << 5)

LBDL: LIN break detection length.

Definition at line 358 of file usart_common_v2.h.

◆ USART_CR2_LINEN

#define USART_CR2_LINEN   (1 << 14)

LINEN: LIN mode enable.

Definition at line 340 of file usart_common_v2.h.

◆ USART_CR2_MSBFIRST

#define USART_CR2_MSBFIRST   (1 << 19)

MSBFIRST: Most significant bit first.

Definition at line 325 of file usart_common_v2.h.

◆ USART_CR2_RTOEN

#define USART_CR2_RTOEN   (1 << 23)

RTOEN: Receiver timeout enable.

Definition at line 319 of file usart_common_v2.h.

◆ USART_CR2_RXINV

#define USART_CR2_RXINV   (1 << 16)

RXINV: RX pin active level inversion.

Definition at line 334 of file usart_common_v2.h.

◆ USART_CR2_SWAP

#define USART_CR2_SWAP   (1 << 15)

SWAP: Swap TX/RX pins.

Definition at line 337 of file usart_common_v2.h.

◆ USART_CR2_TXINV

#define USART_CR2_TXINV   (1 << 17)

TXINV: TX pin active level inversion.

Definition at line 331 of file usart_common_v2.h.