STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
|
Macros | |
#define | __HAL_UART_RESET_HANDLE_STATE(__HANDLE__) |
Reset UART handle gstate & RxState. | |
#define | __HAL_UART_FLUSH_DRREGISTER(__HANDLE__) |
Flushes the UART DR register. | |
#define | __HAL_UART_GET_FLAG(__HANDLE__, __FLAG__) |
Checks whether the specified UART flag is set or not. | |
#define | __HAL_UART_CLEAR_FLAG(__HANDLE__, __FLAG__) |
Clears the specified UART pending flag. | |
#define | __HAL_UART_CLEAR_PEFLAG(__HANDLE__) |
Clears the UART PE pending flag. | |
#define | __HAL_UART_CLEAR_FEFLAG(__HANDLE__) |
Clears the UART FE pending flag. | |
#define | __HAL_UART_CLEAR_NEFLAG(__HANDLE__) |
Clears the UART NE pending flag. | |
#define | __HAL_UART_CLEAR_OREFLAG(__HANDLE__) |
Clears the UART ORE pending flag. | |
#define | __HAL_UART_CLEAR_IDLEFLAG(__HANDLE__) |
Clears the UART IDLE pending flag. | |
#define | __HAL_UART_ENABLE_IT(__HANDLE__, __INTERRUPT__) |
Enable the specified UART interrupt. | |
#define | __HAL_UART_DISABLE_IT(__HANDLE__, __INTERRUPT__) |
Disable the specified UART interrupt. | |
#define | __HAL_UART_GET_IT_SOURCE(__HANDLE__, __IT__) |
Checks whether the specified UART interrupt source is enabled or not. | |
#define | __HAL_UART_HWCONTROL_CTS_ENABLE(__HANDLE__) |
Enable CTS flow control. | |
#define | __HAL_UART_HWCONTROL_CTS_DISABLE(__HANDLE__) |
Disable CTS flow control. | |
#define | __HAL_UART_HWCONTROL_RTS_ENABLE(__HANDLE__) |
Enable RTS flow control This macro allows to enable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. | |
#define | __HAL_UART_HWCONTROL_RTS_DISABLE(__HANDLE__) |
Disable RTS flow control This macro allows to disable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user. | |
#define | __HAL_UART_ONE_BIT_SAMPLE_ENABLE(__HANDLE__) |
Macro to enable the UART's one bit sample method. | |
#define | __HAL_UART_ONE_BIT_SAMPLE_DISABLE(__HANDLE__) |
Macro to disable the UART's one bit sample method. | |
#define | __HAL_UART_ENABLE(__HANDLE__) |
Enable UART. | |
#define | __HAL_UART_DISABLE(__HANDLE__) |
Disable UART. | |
#define __HAL_UART_RESET_HANDLE_STATE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Reset UART handle gstate & RxState.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 439 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_FLUSH_DRREGISTER | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Flushes the UART DR register.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
Definition at line 450 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_GET_FLAG | ( | __HANDLE__, | |
__FLAG__ ) |
#include <stm32f4xx_hal_uart.h>
Checks whether the specified UART flag is set or not.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
__FLAG__ | specifies the flag to check. This parameter can be one of the following values:
|
The | new state of FLAG (TRUE or FALSE). |
Definition at line 470 of file stm32f4xx_hal_uart.h.
Referenced by HAL_UARTEx_ReceiveToIdle(), UART_Receive_IT(), and UART_WaitOnFlagUntilTimeout().
#define __HAL_UART_CLEAR_FLAG | ( | __HANDLE__, | |
__FLAG__ ) |
#include <stm32f4xx_hal_uart.h>
Clears the specified UART pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
__FLAG__ | specifies the flag to check. This parameter can be any combination of the following values:
|
None |
Definition at line 494 of file stm32f4xx_hal_uart.h.
Referenced by HAL_UART_Transmit_DMA().
#define __HAL_UART_CLEAR_PEFLAG | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Clears the UART PE pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 502 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_CLEAR_FEFLAG | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Clears the UART FE pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 516 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_CLEAR_NEFLAG | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Clears the UART NE pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 524 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_CLEAR_OREFLAG | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Clears the UART ORE pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 532 of file stm32f4xx_hal_uart.h.
Referenced by HAL_UART_DMAResume(), UART_Start_Receive_DMA(), and UART_WaitOnFlagUntilTimeout().
#define __HAL_UART_CLEAR_IDLEFLAG | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Clears the UART IDLE pending flag.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
None |
Definition at line 540 of file stm32f4xx_hal_uart.h.
Referenced by HAL_UART_IRQHandler(), HAL_UARTEx_ReceiveToIdle(), HAL_UARTEx_ReceiveToIdle_DMA(), HAL_UARTEx_ReceiveToIdle_IT(), and UART_Receive_IT().
#define __HAL_UART_ENABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ ) |
#include <stm32f4xx_hal_uart.h>
Enable the specified UART interrupt.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
__INTERRUPT__ | specifies the UART interrupt source to enable. This parameter can be one of the following values:
|
None |
Definition at line 558 of file stm32f4xx_hal_uart.h.
Referenced by HAL_UART_Transmit_IT(), UART_Start_Receive_IT(), and UART_Transmit_IT().
#define __HAL_UART_DISABLE_IT | ( | __HANDLE__, | |
__INTERRUPT__ ) |
#include <stm32f4xx_hal_uart.h>
Disable the specified UART interrupt.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
__INTERRUPT__ | specifies the UART interrupt source to disable. This parameter can be one of the following values:
|
None |
Definition at line 578 of file stm32f4xx_hal_uart.h.
Referenced by UART_EndTransmit_IT(), UART_Receive_IT(), and UART_Transmit_IT().
#define __HAL_UART_GET_IT_SOURCE | ( | __HANDLE__, | |
__IT__ ) |
#include <stm32f4xx_hal_uart.h>
Checks whether the specified UART interrupt source is enabled or not.
__HANDLE__ | specifies the UART Handle. UART Handle selects the USARTx or UARTy peripheral (USART,UART availability and x,y values depending on device). |
__IT__ | specifies the UART interrupt source to check. This parameter can be one of the following values:
|
The | new state of IT (TRUE or FALSE). |
Definition at line 597 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_HWCONTROL_CTS_ENABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Enable CTS flow control.
__HANDLE__ | specifies the UART Handle. The Handle Instance can be any USARTx (supporting the HW Flow control feature). It is used to select the USART peripheral (USART availability and x value depending on device). |
None |
Definition at line 614 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_HWCONTROL_CTS_DISABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Disable CTS flow control.
__HANDLE__ | specifies the UART Handle. The Handle Instance can be any USARTx (supporting the HW Flow control feature). It is used to select the USART peripheral (USART availability and x value depending on device). |
None |
Definition at line 634 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_HWCONTROL_RTS_ENABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Enable RTS flow control This macro allows to enable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
__HANDLE__ | specifies the UART Handle. The Handle Instance can be any USARTx (supporting the HW Flow control feature). It is used to select the USART peripheral (USART availability and x value depending on device). |
None |
Definition at line 654 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_HWCONTROL_RTS_DISABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Disable RTS flow control This macro allows to disable RTS hardware flow control for a given UART instance, without need to call HAL_UART_Init() function. As involving direct access to UART registers, usage of this macro should be fully endorsed by user.
__HANDLE__ | specifies the UART Handle. The Handle Instance can be any USARTx (supporting the HW Flow control feature). It is used to select the USART peripheral (USART availability and x value depending on device). |
None |
Definition at line 674 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_ONE_BIT_SAMPLE_ENABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Macro to enable the UART's one bit sample method.
__HANDLE__ | specifies the UART Handle. |
None |
Definition at line 684 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_ONE_BIT_SAMPLE_DISABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Macro to disable the UART's one bit sample method.
__HANDLE__ | specifies the UART Handle. |
None |
Definition at line 690 of file stm32f4xx_hal_uart.h.
#define __HAL_UART_ENABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Enable UART.
__HANDLE__ | specifies the UART Handle. |
None |
Definition at line 697 of file stm32f4xx_hal_uart.h.
Referenced by HAL_HalfDuplex_Init(), HAL_LIN_Init(), HAL_MultiProcessor_Init(), and HAL_UART_Init().
#define __HAL_UART_DISABLE | ( | __HANDLE__ | ) |
#include <stm32f4xx_hal_uart.h>
Disable UART.
__HANDLE__ | specifies the UART Handle. |
None |
Definition at line 703 of file stm32f4xx_hal_uart.h.
Referenced by HAL_HalfDuplex_Init(), HAL_LIN_Init(), HAL_MultiProcessor_Init(), HAL_UART_DeInit(), and HAL_UART_Init().