STM CMSIS

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

Macros

#define GPIO_MODE_INPUT   ((uint32_t)0x00000000U)
 
#define GPIO_MODE_OUTPUT_PP   ((uint32_t)0x00000001U)
 
#define GPIO_MODE_OUTPUT_OD   ((uint32_t)0x00000011U)
 
#define GPIO_MODE_AF_PP   ((uint32_t)0x00000002U)
 
#define GPIO_MODE_AF_OD   ((uint32_t)0x00000012U)
 
#define GPIO_MODE_ANALOG   ((uint32_t)0x00000003U)
 
#define GPIO_MODE_IT_RISING   ((uint32_t)0x10110000U)
 
#define GPIO_MODE_IT_FALLING   ((uint32_t)0x10210000U)
 
#define GPIO_MODE_IT_RISING_FALLING   ((uint32_t)0x10310000U)
 
#define GPIO_MODE_EVT_RISING   ((uint32_t)0x10120000U)
 
#define GPIO_MODE_EVT_FALLING   ((uint32_t)0x10220000U)
 
#define GPIO_MODE_EVT_RISING_FALLING   ((uint32_t)0x10320000U)
 

Detailed Description

GPIO Configuration Mode Elements values convention: 0xX0yz00YZ.

Macro Definition Documentation

◆ GPIO_MODE_AF_OD

#define GPIO_MODE_AF_OD   ((uint32_t)0x00000012U)

Alternate Function Open Drain Mode

◆ GPIO_MODE_AF_PP

#define GPIO_MODE_AF_PP   ((uint32_t)0x00000002U)

Alternate Function Push Pull Mode

◆ GPIO_MODE_ANALOG

#define GPIO_MODE_ANALOG   ((uint32_t)0x00000003U)

Analog Mode

◆ GPIO_MODE_EVT_FALLING

#define GPIO_MODE_EVT_FALLING   ((uint32_t)0x10220000U)

External Event Mode with Falling edge trigger detection

◆ GPIO_MODE_EVT_RISING

#define GPIO_MODE_EVT_RISING   ((uint32_t)0x10120000U)

External Event Mode with Rising edge trigger detection

◆ GPIO_MODE_EVT_RISING_FALLING

#define GPIO_MODE_EVT_RISING_FALLING   ((uint32_t)0x10320000U)

External Event Mode with Rising/Falling edge trigger detection

◆ GPIO_MODE_INPUT

#define GPIO_MODE_INPUT   ((uint32_t)0x00000000U)

Input Floating Mode

◆ GPIO_MODE_IT_FALLING

#define GPIO_MODE_IT_FALLING   ((uint32_t)0x10210000U)

External Interrupt Mode with Falling edge trigger detection

◆ GPIO_MODE_IT_RISING

#define GPIO_MODE_IT_RISING   ((uint32_t)0x10110000U)

External Interrupt Mode with Rising edge trigger detection

◆ GPIO_MODE_IT_RISING_FALLING

#define GPIO_MODE_IT_RISING_FALLING   ((uint32_t)0x10310000U)

External Interrupt Mode with Rising/Falling edge trigger detection

◆ GPIO_MODE_OUTPUT_OD

#define GPIO_MODE_OUTPUT_OD   ((uint32_t)0x00000011U)

Output Open Drain Mode

◆ GPIO_MODE_OUTPUT_PP

#define GPIO_MODE_OUTPUT_PP   ((uint32_t)0x00000001U)

Output Push Pull Mode