Nut/OS  5.0.5
API Reference
USART_Private_Defines
Collaboration diagram for USART_Private_Defines:

Defines

#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)
#define CR1_OVER8_Reset   ((u16)0x7FFF)
#define CR3_ONEBITE_Set   ((u16)0x0800)
#define CR3_ONEBITE_Reset   ((u16)0xF7FF)

Define Documentation

#define CR1_UE_Set   ((uint16_t)0x2000)

USART Enable Mask

Referenced by USART_Cmd().

#define CR1_UE_Reset   ((uint16_t)0xDFFF)

USART Disable Mask

Referenced by USART_Cmd().

#define CR1_WAKE_Mask   ((uint16_t)0xF7FF)

USART WakeUp Method Mask

Referenced by USART_WakeUpConfig().

#define CR1_RWU_Set   ((uint16_t)0x0002)

USART mute mode Enable Mask

Referenced by USART_ReceiverWakeUpCmd().

#define CR1_RWU_Reset   ((uint16_t)0xFFFD)

USART mute mode Enable Mask

Referenced by USART_ReceiverWakeUpCmd().

#define CR1_SBK_Set   ((uint16_t)0x0001)

USART Break Character send Mask

Referenced by USART_SendBreak().

#define CR1_CLEAR_Mask   ((uint16_t)0xE9F3)

USART CR1 Mask

Referenced by USART_Init().

#define CR2_Address_Mask   ((uint16_t)0xFFF0)

USART address Mask

Referenced by USART_SetAddress().

#define CR2_LINEN_Set   ((uint16_t)0x4000)

USART LIN Enable Mask

Referenced by USART_LINCmd().

#define CR2_LINEN_Reset   ((uint16_t)0xBFFF)

USART LIN Disable Mask

Referenced by USART_LINCmd().

#define CR2_LBDL_Mask   ((uint16_t)0xFFDF)

USART LIN Break detection Mask

Referenced by USART_LINBreakDetectLengthConfig().

#define CR2_STOP_CLEAR_Mask   ((uint16_t)0xCFFF)

USART CR2 STOP Bits Mask

Referenced by USART_Init().

#define CR2_CLOCK_CLEAR_Mask   ((uint16_t)0xF0FF)

USART CR2 Clock Mask

Referenced by USART_ClockInit().

#define CR3_SCEN_Set   ((uint16_t)0x0020)

USART SC Enable Mask

Referenced by USART_SmartCardCmd().

#define CR3_SCEN_Reset   ((uint16_t)0xFFDF)

USART SC Disable Mask

Referenced by USART_SmartCardCmd().

#define CR3_NACK_Set   ((uint16_t)0x0010)

USART SC NACK Enable Mask

Referenced by USART_SmartCardNACKCmd().

#define CR3_NACK_Reset   ((uint16_t)0xFFEF)

USART SC NACK Disable Mask

Referenced by USART_SmartCardNACKCmd().

#define CR3_HDSEL_Set   ((uint16_t)0x0008)

USART Half-Duplex Enable Mask

Referenced by USART_HalfDuplexCmd().

#define CR3_HDSEL_Reset   ((uint16_t)0xFFF7)

USART Half-Duplex Disable Mask

Referenced by USART_HalfDuplexCmd().

#define CR3_IRLP_Mask   ((uint16_t)0xFFFB)

USART IrDA LowPower mode Mask

Referenced by USART_IrDAConfig().

#define CR3_CLEAR_Mask   ((uint16_t)0xFCFF)

USART CR3 Mask

Referenced by USART_Init().

#define CR3_IREN_Set   ((uint16_t)0x0002)

USART IrDA Enable Mask

Referenced by USART_IrDACmd().

#define CR3_IREN_Reset   ((uint16_t)0xFFFD)

USART IrDA Disable Mask

Referenced by USART_IrDACmd().

#define GTPR_LSB_Mask   ((uint16_t)0x00FF)

Guard Time Register LSB Mask

Referenced by USART_SetGuardTime().

#define GTPR_MSB_Mask   ((uint16_t)0xFF00)

Guard Time Register MSB Mask

Referenced by USART_SetPrescaler().

#define IT_Mask   ((uint16_t)0x001F)

USART Interrupt Mask

Referenced by USART_GetITStatus(), and USART_ITConfig().

#define CR1_OVER8_Set   ((u16)0x8000)
#define CR1_OVER8_Reset   ((u16)0x7FFF)

Referenced by USART_OverSampling8Cmd().

#define CR3_ONEBITE_Set   ((u16)0x0800)

Referenced by USART_OneBitMethodCmd().

#define CR3_ONEBITE_Reset   ((u16)0xF7FF)

Referenced by USART_OneBitMethodCmd().