My Project
Loading...
Searching...
No Matches
GPIO Exported Macros

Macros

#define __HAL_GPIO_EXTI_GET_FLAG(__EXTI_LINE__)   (EXTI->PR & (__EXTI_LINE__))
 Check whether the specified EXTI line flag is set or not.
 
#define __HAL_GPIO_EXTI_CLEAR_FLAG(__EXTI_LINE__)   (EXTI->PR = (__EXTI_LINE__))
 Clear the EXTI's line pending flags.
 
#define __HAL_GPIO_EXTI_GET_IT(__EXTI_LINE__)   (EXTI->PR & (__EXTI_LINE__))
 Check whether the specified EXTI line is asserted or not.
 
#define __HAL_GPIO_EXTI_CLEAR_IT(__EXTI_LINE__)   (EXTI->PR = (__EXTI_LINE__))
 Clear the EXTI's line pending bits.
 
#define __HAL_GPIO_EXTI_GENERATE_SWIT(__EXTI_LINE__)   (EXTI->SWIER |= (__EXTI_LINE__))
 Generate a Software interrupt on selected EXTI line.
 

Detailed Description

Macro Definition Documentation

◆ __HAL_GPIO_EXTI_CLEAR_FLAG

#define __HAL_GPIO_EXTI_CLEAR_FLAG (   __EXTI_LINE__)    (EXTI->PR = (__EXTI_LINE__))

Clear 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

◆ __HAL_GPIO_EXTI_CLEAR_IT

#define __HAL_GPIO_EXTI_CLEAR_IT (   __EXTI_LINE__)    (EXTI->PR = (__EXTI_LINE__))

Clear 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

◆ __HAL_GPIO_EXTI_GENERATE_SWIT

#define __HAL_GPIO_EXTI_GENERATE_SWIT (   __EXTI_LINE__)    (EXTI->SWIER |= (__EXTI_LINE__))

Generate 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

◆ __HAL_GPIO_EXTI_GET_FLAG

#define __HAL_GPIO_EXTI_GET_FLAG (   __EXTI_LINE__)    (EXTI->PR & (__EXTI_LINE__))

Check 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).

◆ __HAL_GPIO_EXTI_GET_IT

#define __HAL_GPIO_EXTI_GET_IT (   __EXTI_LINE__)    (EXTI->PR & (__EXTI_LINE__))

Check 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).