uc-sdk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Macros

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

Detailed Description

Macro Definition Documentation

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

Definition at line 342 of file stm32f10x_usart.h.

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

Definition at line 341 of file stm32f10x_usart.h.

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

Definition at line 337 of file stm32f10x_usart.h.

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

Definition at line 343 of file stm32f10x_usart.h.

#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 331 of file stm32f10x_usart.h.

#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 338 of file stm32f10x_usart.h.

#define USART_FLAG_CTS   ((uint16_t)0x0200)

Definition at line 321 of file stm32f10x_usart.h.

#define USART_FLAG_FE   ((uint16_t)0x0002)

Definition at line 329 of file stm32f10x_usart.h.

#define USART_FLAG_IDLE   ((uint16_t)0x0010)

Definition at line 326 of file stm32f10x_usart.h.

#define USART_FLAG_LBD   ((uint16_t)0x0100)

Definition at line 322 of file stm32f10x_usart.h.

#define USART_FLAG_NE   ((uint16_t)0x0004)

Definition at line 328 of file stm32f10x_usart.h.

#define USART_FLAG_ORE   ((uint16_t)0x0008)

Definition at line 327 of file stm32f10x_usart.h.

#define USART_FLAG_PE   ((uint16_t)0x0001)

Definition at line 330 of file stm32f10x_usart.h.

#define USART_FLAG_RXNE   ((uint16_t)0x0020)

Definition at line 325 of file stm32f10x_usart.h.

#define USART_FLAG_TC   ((uint16_t)0x0040)

Definition at line 324 of file stm32f10x_usart.h.

#define USART_FLAG_TXE   ((uint16_t)0x0080)

Definition at line 323 of file stm32f10x_usart.h.