STM32F103xB HAL User Manual
Defines
GPIO mode define
GPIO Exported Constants

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

Defines

#define GPIO_MODE_INPUT   0x00000000u
#define GPIO_MODE_OUTPUT_PP   0x00000001u
#define GPIO_MODE_OUTPUT_OD   0x00000011u
#define GPIO_MODE_AF_PP   0x00000002u
#define GPIO_MODE_AF_OD   0x00000012u
#define GPIO_MODE_AF_INPUT   GPIO_MODE_INPUT
#define GPIO_MODE_ANALOG   0x00000003u
#define GPIO_MODE_IT_RISING   0x10110000u
#define GPIO_MODE_IT_FALLING   0x10210000u
#define GPIO_MODE_IT_RISING_FALLING   0x10310000u
#define GPIO_MODE_EVT_RISING   0x10120000u
#define GPIO_MODE_EVT_FALLING   0x10220000u
#define GPIO_MODE_EVT_RISING_FALLING   0x10320000u

Detailed Description

GPIO Configuration Mode Elements values convention: 0xX0yz00YZ.


Define Documentation

Alternate Function Input Mode

Definition at line 121 of file stm32f1xx_hal_gpio.h.

#define GPIO_MODE_AF_OD   0x00000012u

Alternate Function Open Drain Mode

Definition at line 120 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_AF_PP   0x00000002u

Alternate Function Push Pull Mode

Definition at line 119 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init(), and HAL_RCC_MCOConfig().

#define GPIO_MODE_ANALOG   0x00000003u

Analog Mode

Definition at line 123 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_EVT_FALLING   0x10220000u

External Event Mode with Falling edge trigger detection

Definition at line 130 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_EVT_RISING   0x10120000u

External Event Mode with Rising edge trigger detection

Definition at line 129 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_EVT_RISING_FALLING   0x10320000u

External Event Mode with Rising/Falling edge trigger detection

Definition at line 131 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_INPUT   0x00000000u

Input Floating Mode

Definition at line 116 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_IT_FALLING   0x10210000u

External Interrupt Mode with Falling edge trigger detection

Definition at line 126 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_IT_RISING   0x10110000u

External Interrupt Mode with Rising edge trigger detection

Definition at line 125 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_IT_RISING_FALLING   0x10310000u

External Interrupt Mode with Rising/Falling edge trigger detection

Definition at line 127 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_OUTPUT_OD   0x00000011u

Output Open Drain Mode

Definition at line 118 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().

#define GPIO_MODE_OUTPUT_PP   0x00000001u

Output Push Pull Mode

Definition at line 117 of file stm32f1xx_hal_gpio.h.

Referenced by HAL_GPIO_Init().