Macros
GPIO mode
Peripheral Driver » HAL Driver » GPIO » Defines » GPIO Exported Constants

GPIO Configuration Mode Elements values convention: 0x000000YX. More...

## Macros
#define | GPIO_MODE_INPUT (LL_GPIO_MODE_INPUT << 0)
#define | GPIO_MODE_OUTPUT (LL_GPIO_MODE_OUTPUT << 0)
#define | GPIO_MODE_MUX (LL_GPIO_MODE_MUX << 0)
#define | GPIO_MODE_IT_RISING (LL_GPIO_TRIGGER_RISING << 4)
#define | GPIO_MODE_IT_FALLING (LL_GPIO_TRIGGER_FALLING << 4)
#define | GPIO_MODE_IT_HIGH (LL_GPIO_TRIGGER_HIGH << 4)
#define | GPIO_MODE_IT_LOW (LL_GPIO_TRIGGER_LOW << 4)

## Detailed Description

GPIO Configuration Mode Elements values convention: 0x000000YX.

- X : IO Direction mode (Input, Output, Mux)
- Y : IT trigger detection

## Macro Definition Documentation

## ◆ GPIO_MODE_INPUT

#define GPIO_MODE_INPUT (LL_GPIO_MODE_INPUT << 0)

Input Mode

## ◆ GPIO_MODE_IT_FALLING

#define GPIO_MODE_IT_FALLING (LL_GPIO_TRIGGER_FALLING << 4)

Interrupt Mode with Falling edge trigger detection

## ◆ GPIO_MODE_IT_HIGH

#define GPIO_MODE_IT_HIGH (LL_GPIO_TRIGGER_HIGH << 4)

Interrupt Mode with High-level trigger detection

## ◆ GPIO_MODE_IT_LOW

#define GPIO_MODE_IT_LOW (LL_GPIO_TRIGGER_LOW << 4)

Interrupt Mode with Low-level trigger detection

## ◆ GPIO_MODE_IT_RISING

#define GPIO_MODE_IT_RISING (LL_GPIO_TRIGGER_RISING << 4)

Interrupt Mode with Rising edge trigger detection

## ◆ GPIO_MODE_MUX

#define GPIO_MODE_MUX (LL_GPIO_MODE_MUX << 0)

Mux Mode

## ◆ GPIO_MODE_OUTPUT

#define GPIO_MODE_OUTPUT (LL_GPIO_MODE_OUTPUT << 0)

Output Mode