MG32F157 Standard Peripherals Firmware Library
Macros
USART_Private_Defines

Macros

#define CR1_UE_Set   ((uint16_t)0x2000)
 
#define CR1_UE_Reset   ((uint16_t)0xDFFF)
 
#define CR1_WAKE_Mask   ((uint16_t)0xF7FF)
 
#define CR1_RWU_Set   ((uint16_t)0x0002)
 
#define CR1_RWU_Reset   ((uint16_t)0xFFFD)
 
#define CR1_SBK_Set   ((uint16_t)0x0001)
 
#define CR1_CLEAR_Mask   ((uint16_t)0xE9F3)
 
#define CR2_Address_Mask   ((uint16_t)0xFFF0)
 
#define CR2_LINEN_Set   ((uint16_t)0x4000)
 
#define CR2_LINEN_Reset   ((uint16_t)0xBFFF)
 
#define CR2_LBDL_Mask   ((uint16_t)0xFFDF)
 
#define CR2_STOP_CLEAR_Mask   ((uint16_t)0xCFFF)
 
#define CR2_CLOCK_CLEAR_Mask   ((uint16_t)0xF0FF)
 
#define CR3_SCEN_Set   ((uint16_t)0x0020)
 
#define CR3_SCEN_Reset   ((uint16_t)0xFFDF)
 
#define CR3_NACK_Set   ((uint16_t)0x0010)
 
#define CR3_NACK_Reset   ((uint16_t)0xFFEF)
 
#define CR3_HDSEL_Set   ((uint16_t)0x0008)
 
#define CR3_HDSEL_Reset   ((uint16_t)0xFFF7)
 
#define CR3_IRLP_Mask   ((uint16_t)0xFFFB)
 
#define CR3_CLEAR_Mask   ((uint16_t)0xFCFF)
 
#define CR3_IREN_Set   ((uint16_t)0x0002)
 
#define CR3_IREN_Reset   ((uint16_t)0xFFFD)
 
#define GTPR_LSB_Mask   ((uint16_t)0x00FF)
 
#define GTPR_MSB_Mask   ((uint16_t)0xFF00)
 
#define IT_Mask   ((uint16_t)0x001F)
 
#define CR1_OVER8_Set   ((uint16_t)0x8000) /* USART OVER8 mode Enable Mask */
 
#define CR1_OVER8_Reset   ((uint16_t)0x7FFF) /* USART OVER8 mode Disable Mask */
 
#define CR3_ONEBITE_Set   ((uint16_t)0x0800) /* USART ONEBITE mode Enable Mask */
 
#define CR3_ONEBITE_Reset   ((uint16_t)0xF7FF) /* USART ONEBITE mode Disable Mask */
 

Detailed Description

Macro Definition Documentation

◆ CR1_CLEAR_Mask

#define CR1_CLEAR_Mask   ((uint16_t)0xE9F3)

USART CR1 Mask

◆ CR1_RWU_Reset

#define CR1_RWU_Reset   ((uint16_t)0xFFFD)

USART mute mode Enable Mask

◆ CR1_RWU_Set

#define CR1_RWU_Set   ((uint16_t)0x0002)

USART mute mode Enable Mask

◆ CR1_SBK_Set

#define CR1_SBK_Set   ((uint16_t)0x0001)

USART Break Character send Mask

◆ CR1_UE_Reset

#define CR1_UE_Reset   ((uint16_t)0xDFFF)

USART Disable Mask

◆ CR1_UE_Set

#define CR1_UE_Set   ((uint16_t)0x2000)

USART Enable Mask

◆ CR1_WAKE_Mask

#define CR1_WAKE_Mask   ((uint16_t)0xF7FF)

USART WakeUp Method Mask

◆ CR2_Address_Mask

#define CR2_Address_Mask   ((uint16_t)0xFFF0)

USART address Mask

◆ CR2_CLOCK_CLEAR_Mask

#define CR2_CLOCK_CLEAR_Mask   ((uint16_t)0xF0FF)

USART CR2 Clock Mask

◆ CR2_LBDL_Mask

#define CR2_LBDL_Mask   ((uint16_t)0xFFDF)

USART LIN Break detection Mask

◆ CR2_LINEN_Reset

#define CR2_LINEN_Reset   ((uint16_t)0xBFFF)

USART LIN Disable Mask

◆ CR2_LINEN_Set

#define CR2_LINEN_Set   ((uint16_t)0x4000)

USART LIN Enable Mask

◆ CR2_STOP_CLEAR_Mask

#define CR2_STOP_CLEAR_Mask   ((uint16_t)0xCFFF)

USART CR2 STOP Bits Mask

◆ CR3_CLEAR_Mask

#define CR3_CLEAR_Mask   ((uint16_t)0xFCFF)

USART CR3 Mask

◆ CR3_HDSEL_Reset

#define CR3_HDSEL_Reset   ((uint16_t)0xFFF7)

USART Half-Duplex Disable Mask

◆ CR3_HDSEL_Set

#define CR3_HDSEL_Set   ((uint16_t)0x0008)

USART Half-Duplex Enable Mask

◆ CR3_IREN_Reset

#define CR3_IREN_Reset   ((uint16_t)0xFFFD)

USART IrDA Disable Mask

◆ CR3_IREN_Set

#define CR3_IREN_Set   ((uint16_t)0x0002)

USART IrDA Enable Mask

◆ CR3_IRLP_Mask

#define CR3_IRLP_Mask   ((uint16_t)0xFFFB)

USART IrDA LowPower mode Mask

◆ CR3_NACK_Reset

#define CR3_NACK_Reset   ((uint16_t)0xFFEF)

USART SC NACK Disable Mask

◆ CR3_NACK_Set

#define CR3_NACK_Set   ((uint16_t)0x0010)

USART SC NACK Enable Mask

◆ CR3_SCEN_Reset

#define CR3_SCEN_Reset   ((uint16_t)0xFFDF)

USART SC Disable Mask

◆ CR3_SCEN_Set

#define CR3_SCEN_Set   ((uint16_t)0x0020)

USART SC Enable Mask

◆ GTPR_LSB_Mask

#define GTPR_LSB_Mask   ((uint16_t)0x00FF)

Guard Time Register LSB Mask

◆ GTPR_MSB_Mask

#define GTPR_MSB_Mask   ((uint16_t)0xFF00)

Guard Time Register MSB Mask

◆ IT_Mask

#define IT_Mask   ((uint16_t)0x001F)

USART Interrupt Mask