Defines | |
#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) |
#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_BAUDRATE(BAUDRATE) (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) |
#define | IS_USART_ADDRESS(ADDRESS) ((ADDRESS) <= 0xF) |
#define | IS_USART_DATA(DATA) ((DATA) <= 0x1FF) |
#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_BAUDRATE(BAUDRATE) (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) |
#define | IS_USART_ADDRESS(ADDRESS) ((ADDRESS) <= 0xF) |
#define | IS_USART_DATA(DATA) ((DATA) <= 0x1FF) |
#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_BAUDRATE(BAUDRATE) (((BAUDRATE) > 0) && ((BAUDRATE) < 0x003D0901)) |
#define | IS_USART_ADDRESS(ADDRESS) ((ADDRESS) <= 0xF) |
#define | IS_USART_DATA(DATA) ((DATA) <= 0x1FF) |
#define USART_FLAG_CTS ((uint16_t)0x0200) |
Referenced by USART_ClearFlag(), and USART_GetFlagStatus().
#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) |
Referenced by Stm32UsartBusTransfer().
#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 | ) |
(((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))
Referenced by USART_GetFlagStatus().
#define IS_USART_CLEAR_FLAG | ( | FLAG | ) | ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) |
Referenced by USART_ClearFlag().
#define IS_USART_PERIPH_FLAG | ( | PERIPH, | |
USART_FLAG | |||
) |
((((*(uint32_t*)&(PERIPH)) != UART4_BASE) &&\ ((*(uint32_t*)&(PERIPH)) != UART5_BASE)) \ || ((USART_FLAG) != USART_FLAG_CTS))
#define IS_USART_BAUDRATE | ( | BAUDRATE | ) | (((BAUDRATE) > 0) && ((BAUDRATE) < 0x0044AA21)) |
Referenced by USART_Init().
#define IS_USART_ADDRESS | ( | ADDRESS | ) | ((ADDRESS) <= 0xF) |
Referenced by USART_SetAddress().
#define IS_USART_DATA | ( | DATA | ) | ((DATA) <= 0x1FF) |
Referenced by USART_SendData().
#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 | ) |
(((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))
#define IS_USART_CLEAR_FLAG | ( | FLAG | ) | ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) |
#define IS_USART_BAUDRATE | ( | BAUDRATE | ) | (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) |
#define IS_USART_ADDRESS | ( | ADDRESS | ) | ((ADDRESS) <= 0xF) |
#define IS_USART_DATA | ( | DATA | ) | ((DATA) <= 0x1FF) |
#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 | ) |
(((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))
#define IS_USART_CLEAR_FLAG | ( | FLAG | ) | ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) |
#define IS_USART_BAUDRATE | ( | BAUDRATE | ) | (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001)) |
#define IS_USART_ADDRESS | ( | ADDRESS | ) | ((ADDRESS) <= 0xF) |
#define IS_USART_DATA | ( | DATA | ) | ((DATA) <= 0x1FF) |
#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 | ) |
(((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))
#define IS_USART_CLEAR_FLAG | ( | FLAG | ) | ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00)) |
#define IS_USART_BAUDRATE | ( | BAUDRATE | ) | (((BAUDRATE) > 0) && ((BAUDRATE) < 0x003D0901)) |
#define IS_USART_ADDRESS | ( | ADDRESS | ) | ((ADDRESS) <= 0xF) |
#define IS_USART_DATA | ( | DATA | ) | ((DATA) <= 0x1FF) |