STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros
UART Private Macros

Macros

#define UART_DIV_LPUART(_PCLK_, _BAUD_)    ((((_PCLK_)*256)+((_BAUD_)/2))/((_BAUD_)))
 BRR division operation to set BRR register with LPUART. More...
 
#define UART_DIV_SAMPLING8(_PCLK_, _BAUD_)    ((((_PCLK_)*2)+((_BAUD_)/2))/((_BAUD_)))
 BRR division operation to set BRR register in 8-bit oversampling mode. More...
 
#define UART_DIV_SAMPLING16(_PCLK_, _BAUD_)    ((((_PCLK_))+((_BAUD_)/2))/((_BAUD_)))
 BRR division operation to set BRR register in 16-bit oversampling mode. More...
 
#define IS_UART_BAUDRATE(BAUDRATE)   ((BAUDRATE) < 9000001)
 Check UART Baud rate. More...
 
#define IS_UART_ASSERTIONTIME(TIME)    ((TIME) <= 0x1F)
 Check UART assertion time. More...
 
#define IS_UART_DEASSERTIONTIME(TIME)   ((TIME) <= 0x1F)
 Check UART deassertion time. More...
 
#define IS_UART_STOPBITS(STOPBITS)
 
#define IS_UART_PARITY(PARITY)
 
#define IS_UART_HARDWARE_FLOW_CONTROL(CONTROL)
 
#define IS_UART_MODE(MODE)   ((((MODE) & (~((uint32_t)(UART_MODE_TX_RX)))) == (uint32_t)0x00) && ((MODE) != (uint32_t)0x00))
 
#define IS_UART_STATE(STATE)
 
#define IS_UART_OVERSAMPLING(SAMPLING)
 
#define IS_UART_ONE_BIT_SAMPLE(ONEBIT)
 
#define IS_UART_ADVFEATURE_AUTOBAUDRATEMODE(MODE)
 
#define IS_UART_RECEIVER_TIMEOUT(TIMEOUT)
 
#define IS_UART_LIN(LIN)
 
#define IS_UART_WAKEUPMETHOD(WAKEUP)
 
#define IS_UART_LIN_BREAK_DETECT_LENGTH(LENGTH)
 
#define IS_UART_DMA_TX(DMATX)
 
#define IS_UART_DMA_RX(DMARX)
 
#define IS_UART_HALF_DUPLEX(HDSEL)
 
#define IS_UART_REQUEST_PARAMETER(PARAM)
 
#define IS_UART_ADVFEATURE_INIT(INIT)
 
#define IS_UART_ADVFEATURE_TXINV(TXINV)
 
#define IS_UART_ADVFEATURE_RXINV(RXINV)
 
#define IS_UART_ADVFEATURE_DATAINV(DATAINV)
 
#define IS_UART_ADVFEATURE_SWAP(SWAP)
 
#define IS_UART_OVERRUN(OVERRUN)
 
#define IS_UART_ADVFEATURE_AUTOBAUDRATE(AUTOBAUDRATE)
 
#define IS_UART_ADVFEATURE_DMAONRXERROR(DMA)
 
#define IS_UART_ADVFEATURE_MSBFIRST(MSBFIRST)
 
#define IS_UART_MUTE_MODE(MUTE)
 
#define IS_UART_DE_POLARITY(POLARITY)
 

Detailed Description

Macro Definition Documentation

#define IS_UART_ADVFEATURE_AUTOBAUDRATE (   AUTOBAUDRATE)
Value:
(((AUTOBAUDRATE) == UART_ADVFEATURE_AUTOBAUDRATE_DISABLE) || \
#define UART_ADVFEATURE_AUTOBAUDRATE_ENABLE
#define UART_ADVFEATURE_AUTOBAUDRATE_DISABLE

Definition at line 1091 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_AUTOBAUDRATEMODE (   MODE)
Value:
#define UART_ADVFEATURE_AUTOBAUDRATE_ONFALLINGEDGE
#define UART_ADVFEATURE_AUTOBAUDRATE_ON0X7FFRAME
#define UART_ADVFEATURE_AUTOBAUDRATE_ONSTARTBIT
#define UART_ADVFEATURE_AUTOBAUDRATE_ON0X55FRAME

Definition at line 1034 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_DATAINV (   DATAINV)
Value:
(((DATAINV) == UART_ADVFEATURE_DATAINV_DISABLE) || \
#define UART_ADVFEATURE_DATAINV_DISABLE
#define UART_ADVFEATURE_DATAINV_ENABLE

Definition at line 1082 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_DMAONRXERROR (   DMA)
Value:
#define UART_ADVFEATURE_DMA_DISABLEONRXERROR
#define UART_ADVFEATURE_DMA_ENABLEONRXERROR

Definition at line 1094 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_INIT (   INIT)
Value:
((INIT) <= (UART_ADVFEATURE_NO_INIT | \
#define UART_ADVFEATURE_NO_INIT
#define UART_ADVFEATURE_DMADISABLEONERROR_INIT
#define UART_ADVFEATURE_SWAP_INIT
#define UART_ADVFEATURE_RXINVERT_INIT
#define UART_ADVFEATURE_RXOVERRUNDISABLE_INIT
#define UART_ADVFEATURE_DATAINVERT_INIT
#define UART_ADVFEATURE_AUTOBAUDRATE_INIT
#define UART_ADVFEATURE_TXINVERT_INIT
#define UART_ADVFEATURE_MSBFIRST_INIT

Definition at line 1066 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_MSBFIRST (   MSBFIRST)
Value:
(((MSBFIRST) == UART_ADVFEATURE_MSBFIRST_DISABLE) || \
#define UART_ADVFEATURE_MSBFIRST_DISABLE
#define UART_ADVFEATURE_MSBFIRST_ENABLE

Definition at line 1097 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_RXINV (   RXINV)
Value:
#define UART_ADVFEATURE_RXINV_DISABLE
#define UART_ADVFEATURE_RXINV_ENABLE

Definition at line 1079 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_SWAP (   SWAP)
Value:
#define UART_ADVFEATURE_SWAP_DISABLE
#define UART_ADVFEATURE_SWAP_ENABLE

Definition at line 1085 of file stm32f7xx_hal_uart.h.

#define IS_UART_ADVFEATURE_TXINV (   TXINV)
Value:
#define UART_ADVFEATURE_TXINV_DISABLE
#define UART_ADVFEATURE_TXINV_ENABLE

Definition at line 1076 of file stm32f7xx_hal_uart.h.

#define IS_UART_ASSERTIONTIME (   TIME)    ((TIME) <= 0x1F)

Check UART assertion time.

Parameters
TIME5-bit value assertion time
Return values
Testresult (TRUE or FALSE).

Definition at line 1002 of file stm32f7xx_hal_uart.h.

#define IS_UART_BAUDRATE (   BAUDRATE)    ((BAUDRATE) < 9000001)

Check UART Baud rate.

Parameters
BAUDRATEBaudrate specified by the user The maximum Baud Rate is derived from the maximum clock on F7 (i.e. 216 MHz) divided by the smallest oversampling used on the USART (i.e. 8)
Return values
Testresult (TRUE or FALSE).

Definition at line 996 of file stm32f7xx_hal_uart.h.

#define IS_UART_DE_POLARITY (   POLARITY)
Value:
(((POLARITY) == UART_DE_POLARITY_HIGH) || \
((POLARITY) == UART_DE_POLARITY_LOW))
#define UART_DE_POLARITY_LOW
#define UART_DE_POLARITY_HIGH

Definition at line 1103 of file stm32f7xx_hal_uart.h.

#define IS_UART_DEASSERTIONTIME (   TIME)    ((TIME) <= 0x1F)

Check UART deassertion time.

Parameters
TIME5-bit value deassertion time
Return values
Testresult (TRUE or FALSE).

Definition at line 1008 of file stm32f7xx_hal_uart.h.

#define IS_UART_DMA_RX (   DMARX)
Value:
(((DMARX) == UART_DMA_RX_DISABLE) || \
((DMARX) == UART_DMA_RX_ENABLE))
#define UART_DMA_RX_ENABLE
#define UART_DMA_RX_DISABLE

Definition at line 1054 of file stm32f7xx_hal_uart.h.

#define IS_UART_DMA_TX (   DMATX)
Value:
(((DMATX) == UART_DMA_TX_DISABLE) || \
((DMATX) == UART_DMA_TX_ENABLE))
#define UART_DMA_TX_DISABLE
#define UART_DMA_TX_ENABLE

Definition at line 1051 of file stm32f7xx_hal_uart.h.

#define IS_UART_HALF_DUPLEX (   HDSEL)
Value:
(((HDSEL) == UART_HALF_DUPLEX_DISABLE) || \
#define UART_HALF_DUPLEX_ENABLE
#define UART_HALF_DUPLEX_DISABLE

Definition at line 1057 of file stm32f7xx_hal_uart.h.

#define IS_UART_HARDWARE_FLOW_CONTROL (   CONTROL)
Value:
(((CONTROL) == UART_HWCONTROL_NONE) || \
((CONTROL) == UART_HWCONTROL_RTS) || \
((CONTROL) == UART_HWCONTROL_CTS) || \
((CONTROL) == UART_HWCONTROL_RTS_CTS))
#define UART_HWCONTROL_RTS_CTS
#define UART_HWCONTROL_CTS
#define UART_HWCONTROL_RTS
#define UART_HWCONTROL_NONE

Definition at line 1017 of file stm32f7xx_hal_uart.h.

#define IS_UART_LIN (   LIN)
Value:
(((LIN) == UART_LIN_DISABLE) || \
((LIN) == UART_LIN_ENABLE))
#define UART_LIN_ENABLE
#define UART_LIN_DISABLE

Definition at line 1042 of file stm32f7xx_hal_uart.h.

#define IS_UART_LIN_BREAK_DETECT_LENGTH (   LENGTH)
Value:
(((LENGTH) == UART_LINBREAKDETECTLENGTH_10B) || \
#define UART_LINBREAKDETECTLENGTH_10B
#define UART_LINBREAKDETECTLENGTH_11B

Definition at line 1048 of file stm32f7xx_hal_uart.h.

#define IS_UART_MODE (   MODE)    ((((MODE) & (~((uint32_t)(UART_MODE_TX_RX)))) == (uint32_t)0x00) && ((MODE) != (uint32_t)0x00))

Definition at line 1023 of file stm32f7xx_hal_uart.h.

#define IS_UART_MUTE_MODE (   MUTE)
Value:
#define UART_ADVFEATURE_MUTEMODE_ENABLE
#define UART_ADVFEATURE_MUTEMODE_DISABLE

Definition at line 1100 of file stm32f7xx_hal_uart.h.

#define IS_UART_ONE_BIT_SAMPLE (   ONEBIT)
Value:
(((ONEBIT) == UART_ONE_BIT_SAMPLE_DISABLE) || \
#define UART_ONE_BIT_SAMPLE_ENABLE
#define UART_ONE_BIT_SAMPLE_DISABLE

Definition at line 1031 of file stm32f7xx_hal_uart.h.

#define IS_UART_OVERRUN (   OVERRUN)
Value:
(((OVERRUN) == UART_ADVFEATURE_OVERRUN_ENABLE) || \
#define UART_ADVFEATURE_OVERRUN_ENABLE
#define UART_ADVFEATURE_OVERRUN_DISABLE

Definition at line 1088 of file stm32f7xx_hal_uart.h.

#define IS_UART_OVERSAMPLING (   SAMPLING)
Value:
(((SAMPLING) == UART_OVERSAMPLING_16) || \
((SAMPLING) == UART_OVERSAMPLING_8))
#define UART_OVERSAMPLING_16
#define UART_OVERSAMPLING_8

Definition at line 1028 of file stm32f7xx_hal_uart.h.

#define IS_UART_PARITY (   PARITY)
Value:
(((PARITY) == UART_PARITY_NONE) || \
((PARITY) == UART_PARITY_EVEN) || \
((PARITY) == UART_PARITY_ODD))
#define UART_PARITY_ODD
#define UART_PARITY_NONE
#define UART_PARITY_EVEN

Definition at line 1013 of file stm32f7xx_hal_uart.h.

#define IS_UART_RECEIVER_TIMEOUT (   TIMEOUT)
Value:
(((TIMEOUT) == UART_RECEIVER_TIMEOUT_DISABLE) || \
#define UART_RECEIVER_TIMEOUT_ENABLE
#define UART_RECEIVER_TIMEOUT_DISABLE

Definition at line 1039 of file stm32f7xx_hal_uart.h.

#define IS_UART_REQUEST_PARAMETER (   PARAM)
Value:
(((PARAM) == UART_AUTOBAUD_REQUEST) || \
((PARAM) == UART_SENDBREAK_REQUEST) || \
((PARAM) == UART_MUTE_MODE_REQUEST) || \
((PARAM) == UART_RXDATA_FLUSH_REQUEST) || \
#define UART_AUTOBAUD_REQUEST
#define UART_RXDATA_FLUSH_REQUEST
#define UART_SENDBREAK_REQUEST
#define UART_TXDATA_FLUSH_REQUEST
#define UART_MUTE_MODE_REQUEST

Definition at line 1060 of file stm32f7xx_hal_uart.h.

#define IS_UART_STATE (   STATE)
Value:
(((STATE) == UART_STATE_DISABLE) || \
((STATE) == UART_STATE_ENABLE))
#define UART_STATE_ENABLE
#define UART_STATE_DISABLE

Definition at line 1025 of file stm32f7xx_hal_uart.h.

#define IS_UART_STOPBITS (   STOPBITS)
Value:
(((STOPBITS) == UART_STOPBITS_1) || \
((STOPBITS) == UART_STOPBITS_2))
#define UART_STOPBITS_2
#define UART_STOPBITS_1

Definition at line 1010 of file stm32f7xx_hal_uart.h.

#define IS_UART_WAKEUPMETHOD (   WAKEUP)
Value:
(((WAKEUP) == UART_WAKEUPMETHOD_IDLELINE) || \
#define UART_WAKEUPMETHOD_IDLELINE
#define UART_WAKEUPMETHOD_ADDRESSMARK

Definition at line 1045 of file stm32f7xx_hal_uart.h.

#define UART_DIV_LPUART (   _PCLK_,
  _BAUD_ 
)    ((((_PCLK_)*256)+((_BAUD_)/2))/((_BAUD_)))

BRR division operation to set BRR register with LPUART.

Parameters
<em>PCLK</em>LPUART clock
<em>BAUD</em>Baud rate set by the user
Return values
Divisionresult

Definition at line 974 of file stm32f7xx_hal_uart.h.

#define UART_DIV_SAMPLING16 (   _PCLK_,
  _BAUD_ 
)    ((((_PCLK_))+((_BAUD_)/2))/((_BAUD_)))

BRR division operation to set BRR register in 16-bit oversampling mode.

Parameters
<em>PCLK</em>UART clock
<em>BAUD</em>Baud rate set by the user
Return values
Divisionresult

Definition at line 988 of file stm32f7xx_hal_uart.h.

#define UART_DIV_SAMPLING8 (   _PCLK_,
  _BAUD_ 
)    ((((_PCLK_)*2)+((_BAUD_)/2))/((_BAUD_)))

BRR division operation to set BRR register in 8-bit oversampling mode.

Parameters
<em>PCLK</em>UART clock
<em>BAUD</em>Baud rate set by the user
Return values
Divisionresult

Definition at line 981 of file stm32f7xx_hal_uart.h.