USART_Flags
[USART_Exported_Constants]

Defines

#define IS_USART_ADDRESS(ADDRESS)   ((ADDRESS) <= 0xF)
#define IS_USART_BAUDRATE(BAUDRATE)   (((BAUDRATE) > 0) && ((BAUDRATE) < 0x0044AA21))
#define IS_USART_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00))
#define IS_USART_DATA(DATA)   ((DATA) <= 0x1FF)
#define IS_USART_FLAG(FLAG)
#define IS_USART_PERIPH_FLAG(PERIPH, USART_FLAG)
#define USART_FLAG_CTS   ((uint16_t)0x0200)
#define USART_FLAG_FE   ((uint16_t)0x0002)
#define USART_FLAG_IDLE   ((uint16_t)0x0010)
#define USART_FLAG_LBD   ((uint16_t)0x0100)
#define USART_FLAG_NE   ((uint16_t)0x0004)
#define USART_FLAG_ORE   ((uint16_t)0x0008)
#define USART_FLAG_PE   ((uint16_t)0x0001)
#define USART_FLAG_RXNE   ((uint16_t)0x0020)
#define USART_FLAG_TC   ((uint16_t)0x0040)
#define USART_FLAG_TXE   ((uint16_t)0x0080)

Define Documentation

#define IS_USART_ADDRESS ( ADDRESS   )     ((ADDRESS) <= 0xF)

Definition at line 341 of file stm32f10x_usart.h.

Referenced by USART_SetAddress().

#define IS_USART_BAUDRATE ( BAUDRATE   )     (((BAUDRATE) > 0) && ((BAUDRATE) < 0x0044AA21))

Definition at line 340 of file stm32f10x_usart.h.

Referenced by USART_Init().

#define IS_USART_CLEAR_FLAG ( FLAG   )     ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00))

Definition at line 336 of file stm32f10x_usart.h.

Referenced by USART_ClearFlag().

#define IS_USART_DATA ( DATA   )     ((DATA) <= 0x1FF)

Definition at line 342 of file stm32f10x_usart.h.

Referenced by USART_SendData().

#define IS_USART_FLAG ( FLAG   ) 
Value:
(((FLAG) == USART_FLAG_PE) || ((FLAG) == USART_FLAG_TXE) || \
                             ((FLAG) == USART_FLAG_TC) || ((FLAG) == USART_FLAG_RXNE) || \
                             ((FLAG) == USART_FLAG_IDLE) || ((FLAG) == USART_FLAG_LBD) || \
                             ((FLAG) == USART_FLAG_CTS) || ((FLAG) == USART_FLAG_ORE) || \
                             ((FLAG) == USART_FLAG_NE) || ((FLAG) == USART_FLAG_FE))

Definition at line 330 of file stm32f10x_usart.h.

Referenced by USART_GetFlagStatus().

#define IS_USART_PERIPH_FLAG ( PERIPH,
USART_FLAG   ) 
Value:
((((*(uint32_t*)&(PERIPH)) != UART4_BASE) &&\
                                                  ((*(uint32_t*)&(PERIPH)) != UART5_BASE)) \
                                                  || ((USART_FLAG) != USART_FLAG_CTS))

Definition at line 337 of file stm32f10x_usart.h.

#define USART_FLAG_CTS   ((uint16_t)0x0200)

Definition at line 320 of file stm32f10x_usart.h.

Referenced by USART_ClearFlag(), and USART_GetFlagStatus().

#define USART_FLAG_FE   ((uint16_t)0x0002)

Definition at line 328 of file stm32f10x_usart.h.

#define USART_FLAG_IDLE   ((uint16_t)0x0010)

Definition at line 325 of file stm32f10x_usart.h.

#define USART_FLAG_LBD   ((uint16_t)0x0100)

Definition at line 321 of file stm32f10x_usart.h.

#define USART_FLAG_NE   ((uint16_t)0x0004)

Definition at line 327 of file stm32f10x_usart.h.

#define USART_FLAG_ORE   ((uint16_t)0x0008)

Definition at line 326 of file stm32f10x_usart.h.

#define USART_FLAG_PE   ((uint16_t)0x0001)

Definition at line 329 of file stm32f10x_usart.h.

#define USART_FLAG_RXNE   ((uint16_t)0x0020)

Definition at line 324 of file stm32f10x_usart.h.

Referenced by main().

#define USART_FLAG_TC   ((uint16_t)0x0040)

Definition at line 323 of file stm32f10x_usart.h.

Referenced by main().

#define USART_FLAG_TXE   ((uint16_t)0x0080)

Definition at line 322 of file stm32f10x_usart.h.

Referenced by EXTI0_IRQHandler(), and main().

STM32F10x Standard Peripherals Library: Footer

 

 

 

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