Macros
AON_GPIO Private Macros
Peripheral Driver » HAL Driver » AON_GPIO » Defines

## Macros
#define | IS_AON_GPIO_PIN_ACTION(__ACTION__) (((__ACTION__) == AON_GPIO_PIN_RESET) || ((__ACTION__) == AON_GPIO_PIN_SET))
| Check if AON GPIO pin action is valid. More...
#define | IS_AON_GPIO_PIN(__PIN__)
| Check if AON GPIO pins are valid. More...
#define | IS_AON_GPIO_MODE(__MODE__)
| Check if AON GPIO mode is valid. More...
#define | IS_AON_GPIO_PULL(__PULL__)
| Check if AON GPIO pull type is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_AON_GPIO_MODE

#define IS_AON_GPIO_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == AON_GPIO_MODE_INPUT) ||\
((__MODE__) == AON_GPIO_MODE_OUTPUT) ||\
((__MODE__) == AON_GPIO_MODE_MUX) ||\
((__MODE__) == AON_GPIO_MODE_IT_RISING) ||\
((__MODE__) == AON_GPIO_MODE_IT_FALLING) ||\
((__MODE__) == AON_GPIO_MODE_IT_HIGH) ||\
((__MODE__) == AON_GPIO_MODE_IT_LOW))

Check if AON GPIO mode is valid.

Parameters

  __MODE__ | AON GPIO mode.

Return values

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

Definition at line 236 of file gr55xx_hal_aon_gpio.h.

## ◆ IS_AON_GPIO_PIN

#define IS_AON_GPIO_PIN | ( |  | __PIN__ | ) |

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

Check if AON GPIO pins are valid.

Parameters

  __PIN__ | AON GPIO pins.

Return values

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

Definition at line 228 of file gr55xx_hal_aon_gpio.h.

## ◆ IS_AON_GPIO_PIN_ACTION

#define IS_AON_GPIO_PIN_ACTION | ( |  | __ACTION__ | ) | (((__ACTION__) == AON_GPIO_PIN_RESET) || ((__ACTION__) == AON_GPIO_PIN_SET))

Check if AON GPIO pin action is valid.

Parameters

  __ACTION__ | AON GPIO pin action.

Return values

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

Definition at line 221 of file gr55xx_hal_aon_gpio.h.

## ◆ IS_AON_GPIO_PULL

#define IS_AON_GPIO_PULL | ( |  | __PULL__ | ) |

Value:
(((__PULL__) == AON_GPIO_NOPULL) ||\
((__PULL__) == AON_GPIO_PULLUP) || \
((__PULL__) == AON_GPIO_PULLDOWN))

Check if AON GPIO pull type is valid.

Parameters

  __PULL__ | AON GPIO pull type.

Return values

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

Definition at line 249 of file gr55xx_hal_aon_gpio.h.

AON_GPIO_PULLUP
#define AON_GPIO_PULLUP
Definition: gr55xx_hal_aon_gpio.h:172
AON_GPIO_MODE_IT_HIGH
#define AON_GPIO_MODE_IT_HIGH
Definition: gr55xx_hal_aon_gpio.h:162
AON_GPIO_MODE_INPUT
#define AON_GPIO_MODE_INPUT
Definition: gr55xx_hal_aon_gpio.h:157
AON_GPIO_NOPULL
#define AON_GPIO_NOPULL
Definition: gr55xx_hal_aon_gpio.h:171
AON_GPIO_MODE_MUX
#define AON_GPIO_MODE_MUX
Definition: gr55xx_hal_aon_gpio.h:159
AON_GPIO_PULLDOWN
#define AON_GPIO_PULLDOWN
Definition: gr55xx_hal_aon_gpio.h:173
AON_GPIO_MODE_IT_LOW
#define AON_GPIO_MODE_IT_LOW
Definition: gr55xx_hal_aon_gpio.h:163
AON_GPIO_MODE_IT_FALLING
#define AON_GPIO_MODE_IT_FALLING
Definition: gr55xx_hal_aon_gpio.h:161
AON_GPIO_PIN_MASK
#define AON_GPIO_PIN_MASK
Definition: gr55xx_hal_aon_gpio.h:147
AON_GPIO_MODE_OUTPUT
#define AON_GPIO_MODE_OUTPUT
Definition: gr55xx_hal_aon_gpio.h:158
AON_GPIO_MODE_IT_RISING
#define AON_GPIO_MODE_IT_RISING
Definition: gr55xx_hal_aon_gpio.h:160