STM32L486xx HAL User Manual
Defines
GPIO mode
GPIO Exported Constants

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

Defines

#define GPIO_MODE_INPUT   ((uint32_t)0x00000000)
#define GPIO_MODE_OUTPUT_PP   ((uint32_t)0x00000001)
#define GPIO_MODE_OUTPUT_OD   ((uint32_t)0x00000011)
#define GPIO_MODE_AF_PP   ((uint32_t)0x00000002)
#define GPIO_MODE_AF_OD   ((uint32_t)0x00000012)
#define GPIO_MODE_ANALOG   ((uint32_t)0x00000003)
#define GPIO_MODE_ANALOG_ADC_CONTROL   ((uint32_t)0x0000000B)
#define GPIO_MODE_IT_RISING   ((uint32_t)0x10110000)
#define GPIO_MODE_IT_FALLING   ((uint32_t)0x10210000)
#define GPIO_MODE_IT_RISING_FALLING   ((uint32_t)0x10310000)
#define GPIO_MODE_EVT_RISING   ((uint32_t)0x10120000)
#define GPIO_MODE_EVT_FALLING   ((uint32_t)0x10220000)
#define GPIO_MODE_EVT_RISING_FALLING   ((uint32_t)0x10320000)

Detailed Description

GPIO Configuration Mode Elements values convention: 0xX0yz00YZ.


Define Documentation

#define GPIO_MODE_AF_OD   ((uint32_t)0x00000012)

Alternate Function Open Drain Mode

Definition at line 137 of file stm32l4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_AF_PP   ((uint32_t)0x00000002)

Alternate Function Push Pull Mode

Definition at line 136 of file stm32l4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init(), and HAL_RCC_MCOConfig().

#define GPIO_MODE_ANALOG   ((uint32_t)0x00000003)

Analog Mode

Definition at line 138 of file stm32l4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init(), and HAL_RCCEx_EnableLSCO().

#define GPIO_MODE_ANALOG_ADC_CONTROL   ((uint32_t)0x0000000B)

Analog Mode for ADC conversion

Definition at line 139 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_EVT_FALLING   ((uint32_t)0x10220000)

External Event Mode with Falling edge trigger detection

Definition at line 144 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_EVT_RISING   ((uint32_t)0x10120000)

External Event Mode with Rising edge trigger detection

Definition at line 143 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_EVT_RISING_FALLING   ((uint32_t)0x10320000)

External Event Mode with Rising/Falling edge trigger detection

Definition at line 145 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_INPUT   ((uint32_t)0x00000000)

Input Floating Mode

Definition at line 133 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_IT_FALLING   ((uint32_t)0x10210000)

External Interrupt Mode with Falling edge trigger detection

Definition at line 141 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_IT_RISING   ((uint32_t)0x10110000)

External Interrupt Mode with Rising edge trigger detection

Definition at line 140 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_IT_RISING_FALLING   ((uint32_t)0x10310000)

External Interrupt Mode with Rising/Falling edge trigger detection

Definition at line 142 of file stm32l4xx_hal_gpio.h.

#define GPIO_MODE_OUTPUT_OD   ((uint32_t)0x00000011)

Output Open Drain Mode

Definition at line 135 of file stm32l4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_OUTPUT_PP   ((uint32_t)0x00000001)

Output Push Pull Mode

Definition at line 134 of file stm32l4xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().