Macros
Collaboration diagram for USART_Flags:

Macros

#define IS_USART_ADDRESS(ADDRESS)   ((ADDRESS) <= 0xF)
 
#define IS_USART_ADDRESS(ADDRESS)   ((ADDRESS) <= 0xF)
 
#define IS_USART_BAUDRATE(BAUDRATE)   (((BAUDRATE) > 0) && ((BAUDRATE) < 0x0044AA21))
 
#define IS_USART_BAUDRATE(BAUDRATE)   (((BAUDRATE) > 0) && ((BAUDRATE) < 7500001))
 
#define IS_USART_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00))
 
#define IS_USART_CLEAR_FLAG(FLAG)   ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00))
 
#define IS_USART_CLEAR_FLAG(FLAG)
 
#define IS_USART_DATA(DATA)   ((DATA) <= 0x1FF)
 
#define IS_USART_DATA(DATA)   ((DATA) <= 0x1FF)
 
#define IS_USART_FLAG(FLAG)
 
#define IS_USART_FLAG(FLAG)
 
#define IS_USART_FLAG(FLAG)
 
#define IS_USART_PERIPH_FLAG(PERIPH, USART_FLAG)
 
#define USART_FLAG_ABRE   USART_ISR_ABRE
 
#define USART_FLAG_ABRF   USART_ISR_ABRF
 
#define USART_FLAG_BUSY   USART_ISR_BUSY
 
#define USART_FLAG_CM   USART_ISR_CMF
 
#define USART_FLAG_CTS   ((uint16_t)0x0200)
 
#define USART_FLAG_CTS   ((uint16_t)0x0200)
 
#define USART_FLAG_CTS   USART_ISR_CTSIF
 
#define USART_FLAG_EOB   USART_ISR_EOBF
 
#define USART_FLAG_FE   ((uint16_t)0x0002)
 
#define USART_FLAG_FE   ((uint16_t)0x0002)
 
#define USART_FLAG_FE   USART_ISR_FE
 
#define USART_FLAG_IDLE   ((uint16_t)0x0010)
 
#define USART_FLAG_IDLE   ((uint16_t)0x0010)
 
#define USART_FLAG_IDLE   USART_ISR_IDLE
 
#define USART_FLAG_LBD   ((uint16_t)0x0100)
 
#define USART_FLAG_LBD   ((uint16_t)0x0100)
 
#define USART_FLAG_LBD   USART_ISR_LBD
 
#define USART_FLAG_nCTSS   USART_ISR_CTS
 
#define USART_FLAG_NE   ((uint16_t)0x0004)
 
#define USART_FLAG_NE   ((uint16_t)0x0004)
 
#define USART_FLAG_NE   USART_ISR_NE
 
#define USART_FLAG_ORE   ((uint16_t)0x0008)
 
#define USART_FLAG_ORE   ((uint16_t)0x0008)
 
#define USART_FLAG_ORE   USART_ISR_ORE
 
#define USART_FLAG_PE   ((uint16_t)0x0001)
 
#define USART_FLAG_PE   ((uint16_t)0x0001)
 
#define USART_FLAG_PE   USART_ISR_PE
 
#define USART_FLAG_REACK   USART_ISR_REACK
 
#define USART_FLAG_RTO   USART_ISR_RTOF
 
#define USART_FLAG_RWU   USART_ISR_RWU
 
#define USART_FLAG_RXNE   ((uint16_t)0x0020)
 
#define USART_FLAG_RXNE   ((uint16_t)0x0020)
 
#define USART_FLAG_RXNE   USART_ISR_RXNE
 
#define USART_FLAG_SBK   USART_ISR_SBKF
 
#define USART_FLAG_TC   ((uint16_t)0x0040)
 
#define USART_FLAG_TC   ((uint16_t)0x0040)
 
#define USART_FLAG_TC   USART_ISR_TC
 
#define USART_FLAG_TEACK   USART_ISR_TEACK
 
#define USART_FLAG_TXE   ((uint16_t)0x0080)
 
#define USART_FLAG_TXE   ((uint16_t)0x0080)
 
#define USART_FLAG_TXE   USART_ISR_TXE
 
#define USART_FLAG_WU   USART_ISR_WUF
 

Detailed Description

Macro Definition Documentation

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

Definition at line 342 of file stm32f10x_usart.h.

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

Definition at line 354 of file stm32f4xx_usart.h.

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

Definition at line 341 of file stm32f10x_usart.h.

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

Definition at line 353 of file stm32f4xx_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_CLEAR_FLAG (   FLAG)    ((((FLAG) & (uint16_t)0xFC9F) == 0x00) && ((FLAG) != (uint16_t)0x00))

Definition at line 351 of file stm32f4xx_usart.h.

#define IS_USART_CLEAR_FLAG (   FLAG)
Value:
(((FLAG) == USART_FLAG_WU) || ((FLAG) == USART_FLAG_TC) || \
((FLAG) == USART_FLAG_IDLE) || ((FLAG) == USART_FLAG_ORE) || \
((FLAG) == USART_FLAG_NE) || ((FLAG) == USART_FLAG_FE) || \
((FLAG) == USART_FLAG_LBD) || ((FLAG) == USART_FLAG_CTS) || \
((FLAG) == USART_FLAG_RTO) || ((FLAG) == USART_FLAG_EOB) || \
((FLAG) == USART_FLAG_CM) || ((FLAG) == USART_FLAG_PE))
#define USART_FLAG_RTO
#define USART_FLAG_ORE
#define USART_FLAG_PE
#define USART_FLAG_FE
#define USART_FLAG_IDLE
#define USART_FLAG_LBD
#define USART_FLAG_CM
#define USART_FLAG_CTS
#define USART_FLAG_EOB
#define USART_FLAG_TC
#define USART_FLAG_WU
#define USART_FLAG_NE

Definition at line 439 of file stm32f30x_usart.h.

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

Definition at line 343 of file stm32f10x_usart.h.

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

Definition at line 355 of file stm32f4xx_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))
#define USART_FLAG_RXNE
#define USART_FLAG_ORE
#define USART_FLAG_PE
#define USART_FLAG_FE
#define USART_FLAG_IDLE
#define USART_FLAG_LBD
#define USART_FLAG_CTS
#define USART_FLAG_TC
#define USART_FLAG_TXE
#define USART_FLAG_NE

Definition at line 331 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))
#define USART_FLAG_RXNE
#define USART_FLAG_ORE
#define USART_FLAG_PE
#define USART_FLAG_FE
#define USART_FLAG_IDLE
#define USART_FLAG_LBD
#define USART_FLAG_CTS
#define USART_FLAG_TC
#define USART_FLAG_TXE
#define USART_FLAG_NE

Definition at line 345 of file stm32f4xx_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) || \
((FLAG) == USART_FLAG_nCTSS) || ((FLAG) == USART_FLAG_RTO) || \
((FLAG) == USART_FLAG_EOB) || ((FLAG) == USART_FLAG_ABRE) || \
((FLAG) == USART_FLAG_ABRF) || ((FLAG) == USART_FLAG_BUSY) || \
((FLAG) == USART_FLAG_CM) || ((FLAG) == USART_FLAG_SBK) || \
((FLAG) == USART_FLAG_RWU) || ((FLAG) == USART_FLAG_WU) || \
((FLAG) == USART_FLAG_TEACK)|| ((FLAG) == USART_FLAG_REACK))
#define USART_FLAG_REACK
#define USART_FLAG_RTO
#define USART_FLAG_RXNE
#define USART_FLAG_ORE
#define USART_FLAG_PE
#define USART_FLAG_TEACK
#define USART_FLAG_ABRF
#define USART_FLAG_FE
#define USART_FLAG_IDLE
#define USART_FLAG_LBD
#define USART_FLAG_CM
#define USART_FLAG_SBK
#define USART_FLAG_RWU
#define USART_FLAG_CTS
#define USART_FLAG_EOB
#define USART_FLAG_TC
#define USART_FLAG_ABRE
#define USART_FLAG_TXE
#define USART_FLAG_WU
#define USART_FLAG_nCTSS
#define USART_FLAG_BUSY
#define USART_FLAG_NE

Definition at line 427 of file stm32f30x_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))
#define UART5_BASE
Definition: stm32f4xx.h:1907
#define UART4_BASE
Definition: stm32f4xx.h:1906
#define USART_FLAG_CTS

Definition at line 338 of file stm32f10x_usart.h.

#define USART_FLAG_ABRE   USART_ISR_ABRE

Definition at line 413 of file stm32f30x_usart.h.

#define USART_FLAG_ABRF   USART_ISR_ABRF

Definition at line 412 of file stm32f30x_usart.h.

#define USART_FLAG_BUSY   USART_ISR_BUSY

Definition at line 411 of file stm32f30x_usart.h.

#define USART_FLAG_CM   USART_ISR_CMF

Definition at line 410 of file stm32f30x_usart.h.

#define USART_FLAG_CTS   ((uint16_t)0x0200)

Definition at line 321 of file stm32f10x_usart.h.

#define USART_FLAG_CTS   ((uint16_t)0x0200)

Definition at line 335 of file stm32f4xx_usart.h.

#define USART_FLAG_CTS   USART_ISR_CTSIF

Definition at line 417 of file stm32f30x_usart.h.

#define USART_FLAG_EOB   USART_ISR_EOBF

Definition at line 414 of file stm32f30x_usart.h.

#define USART_FLAG_FE   ((uint16_t)0x0002)

Definition at line 329 of file stm32f10x_usart.h.

#define USART_FLAG_FE   ((uint16_t)0x0002)

Definition at line 343 of file stm32f4xx_usart.h.

#define USART_FLAG_FE   USART_ISR_FE

Definition at line 425 of file stm32f30x_usart.h.

#define USART_FLAG_IDLE   ((uint16_t)0x0010)

Definition at line 326 of file stm32f10x_usart.h.

#define USART_FLAG_IDLE   ((uint16_t)0x0010)

Definition at line 340 of file stm32f4xx_usart.h.

#define USART_FLAG_IDLE   USART_ISR_IDLE

Definition at line 422 of file stm32f30x_usart.h.

#define USART_FLAG_LBD   ((uint16_t)0x0100)

Definition at line 322 of file stm32f10x_usart.h.

#define USART_FLAG_LBD   ((uint16_t)0x0100)

Definition at line 336 of file stm32f4xx_usart.h.

#define USART_FLAG_LBD   USART_ISR_LBD

Definition at line 418 of file stm32f30x_usart.h.

#define USART_FLAG_nCTSS   USART_ISR_CTS

Definition at line 416 of file stm32f30x_usart.h.

#define USART_FLAG_NE   ((uint16_t)0x0004)

Definition at line 328 of file stm32f10x_usart.h.

#define USART_FLAG_NE   ((uint16_t)0x0004)

Definition at line 342 of file stm32f4xx_usart.h.

#define USART_FLAG_NE   USART_ISR_NE

Definition at line 424 of file stm32f30x_usart.h.

#define USART_FLAG_ORE   ((uint16_t)0x0008)

Definition at line 327 of file stm32f10x_usart.h.

#define USART_FLAG_ORE   ((uint16_t)0x0008)

Definition at line 341 of file stm32f4xx_usart.h.

#define USART_FLAG_ORE   USART_ISR_ORE

Definition at line 423 of file stm32f30x_usart.h.

#define USART_FLAG_PE   ((uint16_t)0x0001)

Definition at line 330 of file stm32f10x_usart.h.

#define USART_FLAG_PE   ((uint16_t)0x0001)

Definition at line 344 of file stm32f4xx_usart.h.

#define USART_FLAG_PE   USART_ISR_PE

Definition at line 426 of file stm32f30x_usart.h.

#define USART_FLAG_REACK   USART_ISR_REACK

Definition at line 405 of file stm32f30x_usart.h.

#define USART_FLAG_RTO   USART_ISR_RTOF

Definition at line 415 of file stm32f30x_usart.h.

#define USART_FLAG_RWU   USART_ISR_RWU

Definition at line 408 of file stm32f30x_usart.h.

#define USART_FLAG_RXNE   ((uint16_t)0x0020)

Definition at line 325 of file stm32f10x_usart.h.

#define USART_FLAG_RXNE   ((uint16_t)0x0020)

Definition at line 339 of file stm32f4xx_usart.h.

#define USART_FLAG_RXNE   USART_ISR_RXNE

Definition at line 421 of file stm32f30x_usart.h.

#define USART_FLAG_SBK   USART_ISR_SBKF

Definition at line 409 of file stm32f30x_usart.h.

#define USART_FLAG_TC   ((uint16_t)0x0040)

Definition at line 324 of file stm32f10x_usart.h.

#define USART_FLAG_TC   ((uint16_t)0x0040)

Definition at line 338 of file stm32f4xx_usart.h.

#define USART_FLAG_TC   USART_ISR_TC

Definition at line 420 of file stm32f30x_usart.h.

#define USART_FLAG_TEACK   USART_ISR_TEACK

Definition at line 406 of file stm32f30x_usart.h.

#define USART_FLAG_TXE   ((uint16_t)0x0080)

Definition at line 323 of file stm32f10x_usart.h.

#define USART_FLAG_TXE   ((uint16_t)0x0080)

Definition at line 337 of file stm32f4xx_usart.h.

#define USART_FLAG_TXE   USART_ISR_TXE

Definition at line 419 of file stm32f30x_usart.h.

#define USART_FLAG_WU   USART_ISR_WUF

Definition at line 407 of file stm32f30x_usart.h.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Sat May 9 2020 03:16:57