STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
GPIO Exported Macros
Collaboration diagram for GPIO Exported Macros:

Macros

#define __HAL_GPIO_EXTI_GET_FLAG(__EXTI_LINE__)
 Checks whether the specified EXTI line flag is set or not.
 
#define __HAL_GPIO_EXTI_CLEAR_FLAG(__EXTI_LINE__)
 Clears the EXTI's line pending flags.
 
#define __HAL_GPIO_EXTI_GET_IT(__EXTI_LINE__)
 Checks whether the specified EXTI line is asserted or not.
 
#define __HAL_GPIO_EXTI_CLEAR_IT(__EXTI_LINE__)
 Clears the EXTI's line pending bits.
 
#define __HAL_GPIO_EXTI_GENERATE_SWIT(__EXTI_LINE__)
 Generates a Software interrupt on selected EXTI line.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_GPIO_EXTI_GET_FLAG

#define __HAL_GPIO_EXTI_GET_FLAG ( __EXTI_LINE__)

#include <stm32f4xx_hal_gpio.h>

Value:
(EXTI->PR & (__EXTI_LINE__))

Checks whether the specified EXTI line flag is set or not.

Parameters
__EXTI_LINE__specifies the EXTI line flag to check. This parameter can be GPIO_PIN_x where x can be(0..15)
Return values
Thenew state of EXTI_LINE (SET or RESET).

Definition at line 175 of file stm32f4xx_hal_gpio.h.

◆ __HAL_GPIO_EXTI_CLEAR_FLAG

#define __HAL_GPIO_EXTI_CLEAR_FLAG ( __EXTI_LINE__)

#include <stm32f4xx_hal_gpio.h>

Value:
(EXTI->PR = (__EXTI_LINE__))

Clears the EXTI's line pending flags.

Parameters
__EXTI_LINE__specifies the EXTI lines flags to clear. This parameter can be any combination of GPIO_PIN_x where x can be (0..15)
Return values
None

Definition at line 183 of file stm32f4xx_hal_gpio.h.

◆ __HAL_GPIO_EXTI_GET_IT

#define __HAL_GPIO_EXTI_GET_IT ( __EXTI_LINE__)

#include <stm32f4xx_hal_gpio.h>

Value:
(EXTI->PR & (__EXTI_LINE__))

Checks whether the specified EXTI line is asserted or not.

Parameters
__EXTI_LINE__specifies the EXTI line to check. This parameter can be GPIO_PIN_x where x can be(0..15)
Return values
Thenew state of EXTI_LINE (SET or RESET).

Definition at line 191 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_EXTI_IRQHandler().

◆ __HAL_GPIO_EXTI_CLEAR_IT

#define __HAL_GPIO_EXTI_CLEAR_IT ( __EXTI_LINE__)

#include <stm32f4xx_hal_gpio.h>

Value:
(EXTI->PR = (__EXTI_LINE__))

Clears the EXTI's line pending bits.

Parameters
__EXTI_LINE__specifies the EXTI lines to clear. This parameter can be any combination of GPIO_PIN_x where x can be (0..15)
Return values
None

Definition at line 199 of file stm32f4xx_hal_gpio.h.

Referenced by HAL_GPIO_EXTI_IRQHandler().

◆ __HAL_GPIO_EXTI_GENERATE_SWIT

#define __HAL_GPIO_EXTI_GENERATE_SWIT ( __EXTI_LINE__)

#include <stm32f4xx_hal_gpio.h>

Value:
(EXTI->SWIER |= (__EXTI_LINE__))

Generates a Software interrupt on selected EXTI line.

Parameters
__EXTI_LINE__specifies the EXTI line to check. This parameter can be GPIO_PIN_x where x can be(0..15)
Return values
None

Definition at line 207 of file stm32f4xx_hal_gpio.h.