Macros
GPIO Private Macros
Peripheral Driver » HAL Driver » GPIO » Defines
Collaboration diagram for GPIO Private Macros:

## Macros
#define | IS_GPIO_PIN_ACTION(__ACTION__) (((__ACTION__) == GPIO_PIN_RESET) || ((__ACTION__) == GPIO_PIN_SET))
| Check if GPIO pin action is valid. More...
#define | IS_GPIO_PIN(__PIN__)
| Check if GPIO pins are valid. More...
#define | IS_GPIO_MODE(__MODE__)
| Check if GPIO mode is valid. More...
#define | IS_GPIO_PULL(__PULL__)
| Check if GPIO pull type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_GPIO_MODE

#define IS_GPIO_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == GPIO_MODE_INPUT) ||\
((__MODE__) == GPIO_MODE_OUTPUT) ||\
((__MODE__) == GPIO_MODE_MUX) ||\
((__MODE__) == GPIO_MODE_IT_RISING) ||\
((__MODE__) == GPIO_MODE_IT_FALLING) ||\
((__MODE__) == GPIO_MODE_IT_HIGH) ||\
((__MODE__) == GPIO_MODE_IT_LOW))

Check if GPIO mode is valid.

Parameters

  <strong>MODE</strong> | GPIO mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

Definition at line 247 of file gr55xx_hal_gpio.h.

## ◆ IS_GPIO_PIN

#define IS_GPIO_PIN | ( |  | __PIN__ | ) |

Value:
((((__PIN__) & GPIO_PIN_MASK) != 0x00U) &&\
(((__PIN__) & ~GPIO_PIN_MASK) == 0x00U))

Check if GPIO pins are valid.

Parameters

  <strong>PIN</strong> | GPIO pins.

Return values

  SET | (PIN is valid) or RESET (PIN is invalid)

Definition at line 239 of file gr55xx_hal_gpio.h.

## ◆ IS_GPIO_PIN_ACTION

#define IS_GPIO_PIN_ACTION | ( |  | __ACTION__ | ) | (((__ACTION__) == GPIO_PIN_RESET) || ((__ACTION__) == GPIO_PIN_SET))

Check if GPIO pin action is valid.

Parameters

  <strong>ACTION</strong> | GPIO pin action.

Return values

  SET | (ACTION is valid) or RESET (ACTION is invalid)

Definition at line 232 of file gr55xx_hal_gpio.h.

## ◆ IS_GPIO_PULL

#define IS_GPIO_PULL | ( |  | __PULL__ | ) |

Value:
(((__PULL__) == GPIO_NOPULL) ||\
((__PULL__) == GPIO_PULLUP) || \
((__PULL__) == GPIO_PULLDOWN))

Check if GPIO pull type is valid.

Parameters

  <strong>PULL</strong> | GPIO pull type.

Return values

  SET | (PULL is valid) or RESET (PULL is invalid)

Definition at line 260 of file gr55xx_hal_gpio.h.

GPIO_PULLDOWN
#define GPIO_PULLDOWN
Pull-down activation
Definition: gr55xx_hal_gpio.h:181
GPIO_MODE_MUX
#define GPIO_MODE_MUX
Mux Mode
Definition: gr55xx_hal_gpio.h:168
GPIO_MODE_INPUT
#define GPIO_MODE_INPUT
Input Mode
Definition: gr55xx_hal_gpio.h:166
GPIO_NOPULL
#define GPIO_NOPULL
No Pull-up or Pull-down activation
Definition: gr55xx_hal_gpio.h:179
GPIO_PIN_MASK
#define GPIO_PIN_MASK
PIN mask for assert test.
Definition: gr55xx_hal_gpio.h:156
GPIO_MODE_IT_LOW
#define GPIO_MODE_IT_LOW
Interrupt Mode with Low-level trigger detection
Definition: gr55xx_hal_gpio.h:172
GPIO_PULLUP
#define GPIO_PULLUP
Pull-up activation
Definition: gr55xx_hal_gpio.h:180
GPIO_MODE_IT_HIGH
#define GPIO_MODE_IT_HIGH
Interrupt Mode with High-level trigger detection
Definition: gr55xx_hal_gpio.h:171
GPIO_MODE_IT_RISING
#define GPIO_MODE_IT_RISING
Interrupt Mode with Rising edge trigger detection
Definition: gr55xx_hal_gpio.h:169
GPIO_MODE_OUTPUT
#define GPIO_MODE_OUTPUT
Output Mode
Definition: gr55xx_hal_gpio.h:167
GPIO_MODE_IT_FALLING
#define GPIO_MODE_IT_FALLING
Interrupt Mode with Falling edge trigger detection.
Definition: gr55xx_hal_gpio.h:170