USART_Private_Defines
[USART]

Defines

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

Define Documentation

#define CR1_CLEAR_Mask   ((uint16_t)0xE9F3)

USART CR1 Mask

Definition at line 54 of file stm32f10x_usart.c.

#define CR1_OVER8_Reset   ((u16)0x7FFF)

Definition at line 84 of file stm32f10x_usart.c.

Referenced by USART_OverSampling8Cmd().

#define CR1_OVER8_Set   ((u16)0x8000)

Definition at line 83 of file stm32f10x_usart.c.

Referenced by USART_Init(), and USART_OverSampling8Cmd().

#define CR1_RWU_Reset   ((uint16_t)0xFFFD)

USART mute mode Enable Mask

Definition at line 52 of file stm32f10x_usart.c.

Referenced by USART_ReceiverWakeUpCmd().

#define CR1_RWU_Set   ((uint16_t)0x0002)

USART mute mode Enable Mask

Definition at line 51 of file stm32f10x_usart.c.

Referenced by USART_ReceiverWakeUpCmd().

#define CR1_SBK_Set   ((uint16_t)0x0001)

USART Break Character send Mask

Definition at line 53 of file stm32f10x_usart.c.

Referenced by USART_SendBreak().

#define CR1_UE_Reset   ((uint16_t)0xDFFF)

USART Disable Mask

Definition at line 47 of file stm32f10x_usart.c.

Referenced by USART_Cmd().

#define CR1_UE_Set   ((uint16_t)0x2000)

USART Enable Mask

Definition at line 46 of file stm32f10x_usart.c.

Referenced by USART_Cmd().

#define CR1_WAKE_Mask   ((uint16_t)0xF7FF)

USART WakeUp Method Mask

Definition at line 49 of file stm32f10x_usart.c.

Referenced by USART_WakeUpConfig().

#define CR2_Address_Mask   ((uint16_t)0xFFF0)

USART address Mask

Definition at line 55 of file stm32f10x_usart.c.

Referenced by USART_SetAddress().

#define CR2_CLOCK_CLEAR_Mask   ((uint16_t)0xF0FF)

USART CR2 Clock Mask

Definition at line 62 of file stm32f10x_usart.c.

Referenced by USART_ClockInit().

#define CR2_LBDL_Mask   ((uint16_t)0xFFDF)

USART LIN Break detection Mask

Definition at line 60 of file stm32f10x_usart.c.

Referenced by USART_LINBreakDetectLengthConfig().

#define CR2_LINEN_Reset   ((uint16_t)0xBFFF)

USART LIN Disable Mask

Definition at line 58 of file stm32f10x_usart.c.

Referenced by USART_LINCmd().

#define CR2_LINEN_Set   ((uint16_t)0x4000)

USART LIN Enable Mask

Definition at line 57 of file stm32f10x_usart.c.

Referenced by USART_LINCmd().

#define CR2_STOP_CLEAR_Mask   ((uint16_t)0xCFFF)

USART CR2 STOP Bits Mask

Definition at line 61 of file stm32f10x_usart.c.

Referenced by USART_Init().

#define CR3_CLEAR_Mask   ((uint16_t)0xFCFF)

USART CR3 Mask

Definition at line 74 of file stm32f10x_usart.c.

Referenced by USART_Init().

#define CR3_HDSEL_Reset   ((uint16_t)0xFFF7)

USART Half-Duplex Disable Mask

Definition at line 71 of file stm32f10x_usart.c.

Referenced by USART_HalfDuplexCmd().

#define CR3_HDSEL_Set   ((uint16_t)0x0008)

USART Half-Duplex Enable Mask

Definition at line 70 of file stm32f10x_usart.c.

Referenced by USART_HalfDuplexCmd().

#define CR3_IREN_Reset   ((uint16_t)0xFFFD)

USART IrDA Disable Mask

Definition at line 77 of file stm32f10x_usart.c.

Referenced by USART_IrDACmd().

#define CR3_IREN_Set   ((uint16_t)0x0002)

USART IrDA Enable Mask

Definition at line 76 of file stm32f10x_usart.c.

Referenced by USART_IrDACmd().

#define CR3_IRLP_Mask   ((uint16_t)0xFFFB)

USART IrDA LowPower mode Mask

Definition at line 73 of file stm32f10x_usart.c.

Referenced by USART_IrDAConfig().

#define CR3_NACK_Reset   ((uint16_t)0xFFEF)

USART SC NACK Disable Mask

Definition at line 68 of file stm32f10x_usart.c.

Referenced by USART_SmartCardNACKCmd().

#define CR3_NACK_Set   ((uint16_t)0x0010)

USART SC NACK Enable Mask

Definition at line 67 of file stm32f10x_usart.c.

Referenced by USART_SmartCardNACKCmd().

#define CR3_ONEBITE_Reset   ((u16)0xF7FF)

Definition at line 88 of file stm32f10x_usart.c.

Referenced by USART_OneBitMethodCmd().

#define CR3_ONEBITE_Set   ((u16)0x0800)

Definition at line 87 of file stm32f10x_usart.c.

Referenced by USART_OneBitMethodCmd().

#define CR3_SCEN_Reset   ((uint16_t)0xFFDF)

USART SC Disable Mask

Definition at line 65 of file stm32f10x_usart.c.

Referenced by USART_SmartCardCmd().

#define CR3_SCEN_Set   ((uint16_t)0x0020)

USART SC Enable Mask

Definition at line 64 of file stm32f10x_usart.c.

Referenced by USART_SmartCardCmd().

#define GTPR_LSB_Mask   ((uint16_t)0x00FF)

Guard Time Register LSB Mask

Definition at line 78 of file stm32f10x_usart.c.

Referenced by USART_SetGuardTime().

#define GTPR_MSB_Mask   ((uint16_t)0xFF00)

Guard Time Register MSB Mask

Definition at line 79 of file stm32f10x_usart.c.

Referenced by USART_SetPrescaler().

#define IT_Mask   ((uint16_t)0x001F)

USART Interrupt Mask

Definition at line 80 of file stm32f10x_usart.c.

Referenced by USART_GetITStatus(), and USART_ITConfig().

STM32F10x Standard Peripherals Library: Footer

 

 

 

      For complete documentation on STM32(CORTEX M3) 32-bit Microcontrollers platform visit  www.st.com/STM32