uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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   ((u16)0x8000) /* USART OVER8 mode Enable Mask */
 
#define CR1_OVER8_Reset   ((u16)0x7FFF) /* USART OVER8 mode Disable Mask */
 
#define CR3_ONEBITE_Set   ((u16)0x0800) /* USART ONEBITE mode Enable Mask */
 
#define CR3_ONEBITE_Reset   ((u16)0xF7FF) /* USART ONEBITE mode Disable Mask */
 

Detailed Description

Macro Definition Documentation

#define CR1_CLEAR_Mask   ((uint16_t)0xE9F3)

USART CR1 Mask

Definition at line 55 of file stm32f10x_usart.c.

#define CR1_OVER8_Reset   ((u16)0x7FFF) /* USART OVER8 mode Disable Mask */

Definition at line 85 of file stm32f10x_usart.c.

#define CR1_OVER8_Set   ((u16)0x8000) /* USART OVER8 mode Enable Mask */

Definition at line 84 of file stm32f10x_usart.c.

#define CR1_RWU_Reset   ((uint16_t)0xFFFD)

USART mute mode Enable Mask

Definition at line 53 of file stm32f10x_usart.c.

#define CR1_RWU_Set   ((uint16_t)0x0002)

USART mute mode Enable Mask

Definition at line 52 of file stm32f10x_usart.c.

#define CR1_SBK_Set   ((uint16_t)0x0001)

USART Break Character send Mask

Definition at line 54 of file stm32f10x_usart.c.

#define CR1_UE_Reset   ((uint16_t)0xDFFF)

USART Disable Mask

Definition at line 48 of file stm32f10x_usart.c.

#define CR1_UE_Set   ((uint16_t)0x2000)

USART Enable Mask

Definition at line 47 of file stm32f10x_usart.c.

#define CR1_WAKE_Mask   ((uint16_t)0xF7FF)

USART WakeUp Method Mask

Definition at line 50 of file stm32f10x_usart.c.

#define CR2_Address_Mask   ((uint16_t)0xFFF0)

USART address Mask

Definition at line 56 of file stm32f10x_usart.c.

#define CR2_CLOCK_CLEAR_Mask   ((uint16_t)0xF0FF)

USART CR2 Clock Mask

Definition at line 63 of file stm32f10x_usart.c.

#define CR2_LBDL_Mask   ((uint16_t)0xFFDF)

USART LIN Break detection Mask

Definition at line 61 of file stm32f10x_usart.c.

#define CR2_LINEN_Reset   ((uint16_t)0xBFFF)

USART LIN Disable Mask

Definition at line 59 of file stm32f10x_usart.c.

#define CR2_LINEN_Set   ((uint16_t)0x4000)

USART LIN Enable Mask

Definition at line 58 of file stm32f10x_usart.c.

#define CR2_STOP_CLEAR_Mask   ((uint16_t)0xCFFF)

USART CR2 STOP Bits Mask

Definition at line 62 of file stm32f10x_usart.c.

#define CR3_CLEAR_Mask   ((uint16_t)0xFCFF)

USART CR3 Mask

Definition at line 75 of file stm32f10x_usart.c.

#define CR3_HDSEL_Reset   ((uint16_t)0xFFF7)

USART Half-Duplex Disable Mask

Definition at line 72 of file stm32f10x_usart.c.

#define CR3_HDSEL_Set   ((uint16_t)0x0008)

USART Half-Duplex Enable Mask

Definition at line 71 of file stm32f10x_usart.c.

#define CR3_IREN_Reset   ((uint16_t)0xFFFD)

USART IrDA Disable Mask

Definition at line 78 of file stm32f10x_usart.c.

#define CR3_IREN_Set   ((uint16_t)0x0002)

USART IrDA Enable Mask

Definition at line 77 of file stm32f10x_usart.c.

#define CR3_IRLP_Mask   ((uint16_t)0xFFFB)

USART IrDA LowPower mode Mask

Definition at line 74 of file stm32f10x_usart.c.

#define CR3_NACK_Reset   ((uint16_t)0xFFEF)

USART SC NACK Disable Mask

Definition at line 69 of file stm32f10x_usart.c.

#define CR3_NACK_Set   ((uint16_t)0x0010)

USART SC NACK Enable Mask

Definition at line 68 of file stm32f10x_usart.c.

#define CR3_ONEBITE_Reset   ((u16)0xF7FF) /* USART ONEBITE mode Disable Mask */

Definition at line 89 of file stm32f10x_usart.c.

#define CR3_ONEBITE_Set   ((u16)0x0800) /* USART ONEBITE mode Enable Mask */

Definition at line 88 of file stm32f10x_usart.c.

#define CR3_SCEN_Reset   ((uint16_t)0xFFDF)

USART SC Disable Mask

Definition at line 66 of file stm32f10x_usart.c.

#define CR3_SCEN_Set   ((uint16_t)0x0020)

USART SC Enable Mask

Definition at line 65 of file stm32f10x_usart.c.

#define GTPR_LSB_Mask   ((uint16_t)0x00FF)

Guard Time Register LSB Mask

Definition at line 79 of file stm32f10x_usart.c.

#define GTPR_MSB_Mask   ((uint16_t)0xFF00)

Guard Time Register MSB Mask

Definition at line 80 of file stm32f10x_usart.c.

#define IT_Mask   ((uint16_t)0x001F)

USART Interrupt Mask

Definition at line 81 of file stm32f10x_usart.c.