HAL GPIO Types ¶
HAL GPIO Types ¶
- group GPIO_Exported_Types
-
Enums
-
enum
hal_gpio_t
¶
-
HAL GPIO instance.
Values:
-
enumerator
HAL_GPIOA
¶
-
GPIO port A
-
enumerator
HAL_GPIOB
¶
-
GPIO port B
-
enumerator
HAL_GPIOC
¶
-
GPIO port C
-
enumerator
HAL_GPIOD
¶
-
GPIO port D
-
enumerator
HAL_GPIOE
¶
-
GPIO port E
-
enumerator
HAL_GPIOF
¶
-
GPIO port F
-
enumerator
HAL_GPIOG
¶
-
GPIO port G
-
enumerator
HAL_GPIOH
¶
-
GPIO port H
-
enumerator
HAL_GPIOI
¶
-
GPIO port I
-
enumerator
HAL_GPIOJ
¶
-
GPIO port J
-
enumerator
HAL_LPGPIO1
¶
-
LPGPIO port
-
enumerator
HAL_GPIOA
¶
-
enum
hal_gpio_mode_t
¶
-
HAL GPIO mode.
Values:
-
enumerator
HAL_GPIO_MODE_INPUT
¶
-
Select input mode Input Floating mode
-
enumerator
HAL_GPIO_MODE_OUTPUT
¶
-
0x00000001 Select output mode Output mode
-
enumerator
HAL_GPIO_MODE_ALTERNATE
¶
-
0x00000002 Select alternate function mode Alternate mode
-
enumerator
HAL_GPIO_MODE_ANALOG
¶
-
0x00000003 Select analog mode Analog mode
-
enumerator
HAL_GPIO_MODE_INPUT
¶
-
enum
hal_gpio_output_t
¶
-
HAL GPIO Output Type.
Values:
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
¶
-
Select push-pull as output type Select push-pull as output type
-
enumerator
HAL_GPIO_OUTPUT_OPENDRAIN
¶
-
0x00000001 Select open-drain as output type Select open-drain as output type
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
¶
-
enum
hal_gpio_speed_freq_t
¶
-
HAL GPIO speed.
Note
Refer to the device datasheet for the frequency specifications, and the power supply and load conditions for each speed.
Values:
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
¶
-
Select I/O low output speed Low speed
-
enumerator
HAL_GPIO_SPEED_FREQ_MEDIUM
¶
-
0x00000001 Select I/O medium output speed Medium speed
-
enumerator
HAL_GPIO_SPEED_FREQ_HIGH
¶
-
0x00000002 Select I/O fast output speed High speed
-
enumerator
HAL_GPIO_SPEED_FREQ_VERY_HIGH
¶
-
0x00000003 Select I/O high output speed Very-high speed
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
¶
-
enum
hal_gpio_pull_t
¶
-
HAL GPIO pull.
Values:
-
enumerator
HAL_GPIO_PULL_NO
¶
-
Select I/O no pull No Pull-up or Pull-down activation
-
enumerator
HAL_GPIO_PULL_UP
¶
-
0x00000001 Select I/O pull up Pull-up activation
-
enumerator
HAL_GPIO_PULL_DOWN
¶
-
0x00000002 Select I/O pull down Pull-down activation
-
enumerator
HAL_GPIO_PULL_NO
¶
-
enum
hal_gpio_af_t
¶
-
HAL GPIO Alternate function.
Values:
-
enumerator
HAL_GPIO_AF_0
¶
-
Select alternate function 0 Select alternate function 0
-
enumerator
HAL_GPIO_AF_1
¶
-
Select alternate function 1 Select alternate function 1
-
enumerator
HAL_GPIO_AF_2
¶
-
Select alternate function 2 Select alternate function 2
-
enumerator
HAL_GPIO_AF_3
¶
-
Select alternate function 3 Select alternate function 3
-
enumerator
HAL_GPIO_AF_4
¶
-
Select alternate function 4 Select alternate function 4
-
enumerator
HAL_GPIO_AF_5
¶
-
Select alternate function 5 Select alternate function 5
-
enumerator
HAL_GPIO_AF_6
¶
-
Select alternate function 6 Select alternate function 6
-
enumerator
HAL_GPIO_AF_7
¶
-
Select alternate function 7 Select alternate function 7
-
enumerator
HAL_GPIO_AF_8
¶
-
Select alternate function 8 Select alternate function 8
-
enumerator
HAL_GPIO_AF_9
¶
-
Select alternate function 9 Select alternate function 9
-
enumerator
HAL_GPIO_AF_10
¶
-
Select alternate function 10 Select alternate function 10
-
enumerator
HAL_GPIO_AF_11
¶
-
Select alternate function 11 Select alternate function 11
-
enumerator
HAL_GPIO_AF_12
¶
-
Select alternate function 12 Select alternate function 12
-
enumerator
HAL_GPIO_AF_13
¶
-
Select alternate function 13 Select alternate function 13
-
enumerator
HAL_GPIO_AF_14
¶
-
Select alternate function 14 Select alternate function 14
-
enumerator
HAL_GPIO_AF_15
¶
-
Select alternate function 15 Select alternate function 15
-
enumerator
HAL_GPIO_AF_0
¶
-
struct
hal_gpio_config_t
¶
-
#include <stm32u5xx_hal_gpio.h>
GPIO Init structure definition.
Public Members
-
hal_gpio_mode_t
mode
¶
-
Specifies the operating mode for the selected pins
-
hal_gpio_pull_t
pull
¶
-
Specifies the Pull-up or Pull-Down activation for the selected pins
-
hal_gpio_speed_freq_t
speed
¶
-
Specifies the speed for the selected pins
-
hal_gpio_output_t
output_type
¶
-
Specifies the operating output type for the selected pins
-
hal_gpio_af_t
alternate
¶
-
Specifies the alternate function for the selected pins
-
hal_gpio_pin_state_t
init_state
¶
-
Specifies the initial state Set or Reset for the selected pins
-
hal_gpio_mode_t
mode
¶
-
enum
hal_gpio_t
¶
- group GPIO_Exported_Types
-
Enums
-
enum
hal_gpio_t
-
HAL GPIO instance.
Values:
-
enumerator
HAL_GPIOA
-
GPIO port A
-
enumerator
HAL_GPIOB
-
GPIO port B
-
enumerator
HAL_GPIOC
-
GPIO port C
-
enumerator
HAL_GPIOD
-
GPIO port D
-
enumerator
HAL_GPIOE
-
GPIO port E
-
enumerator
HAL_GPIOF
-
GPIO port F
-
enumerator
HAL_GPIOG
-
GPIO port G
-
enumerator
HAL_GPIOH
-
GPIO port H
-
enumerator
HAL_GPIOI
-
GPIO port I
-
enumerator
HAL_GPIOJ
-
GPIO port J
-
enumerator
HAL_LPGPIO1
-
LPGPIO port
-
enumerator
HAL_GPIOA
-
enum
hal_gpio_mode_t
-
HAL GPIO mode.
Values:
-
enumerator
HAL_GPIO_MODE_INPUT
-
Select input mode Input Floating mode
-
enumerator
HAL_GPIO_MODE_OUTPUT
-
0x00000001 Select output mode Output mode
-
enumerator
HAL_GPIO_MODE_ALTERNATE
-
0x00000002 Select alternate function mode Alternate mode
-
enumerator
HAL_GPIO_MODE_ANALOG
-
0x00000003 Select analog mode Analog mode
-
enumerator
HAL_GPIO_MODE_INPUT
-
enum
hal_gpio_output_t
-
HAL GPIO Output Type.
Values:
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
-
Select push-pull as output type Select push-pull as output type
-
enumerator
HAL_GPIO_OUTPUT_OPENDRAIN
-
0x00000001 Select open-drain as output type Select open-drain as output type
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
-
enum
hal_gpio_speed_freq_t
-
HAL GPIO speed.
Note
Refer to the device datasheet for the frequency specifications, and the power supply and load conditions for each speed.
Values:
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
-
Select I/O low output speed Low speed
-
enumerator
HAL_GPIO_SPEED_FREQ_MEDIUM
-
0x00000001 Select I/O medium output speed Medium speed
-
enumerator
HAL_GPIO_SPEED_FREQ_HIGH
-
0x00000002 Select I/O fast output speed High speed
-
enumerator
HAL_GPIO_SPEED_FREQ_VERY_HIGH
-
0x00000003 Select I/O high output speed Very-high speed
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
-
enum
hal_gpio_pull_t
-
HAL GPIO pull.
Values:
-
enumerator
HAL_GPIO_PULL_NO
-
Select I/O no pull No Pull-up or Pull-down activation
-
enumerator
HAL_GPIO_PULL_UP
-
0x00000001 Select I/O pull up Pull-up activation
-
enumerator
HAL_GPIO_PULL_DOWN
-
0x00000002 Select I/O pull down Pull-down activation
-
enumerator
HAL_GPIO_PULL_NO
-
enum
hal_gpio_af_t
-
HAL GPIO Alternate function.
Values:
-
enumerator
HAL_GPIO_AF_0
-
Select alternate function 0 Select alternate function 0
-
enumerator
HAL_GPIO_AF_1
-
Select alternate function 1 Select alternate function 1
-
enumerator
HAL_GPIO_AF_2
-
Select alternate function 2 Select alternate function 2
-
enumerator
HAL_GPIO_AF_3
-
Select alternate function 3 Select alternate function 3
-
enumerator
HAL_GPIO_AF_4
-
Select alternate function 4 Select alternate function 4
-
enumerator
HAL_GPIO_AF_5
-
Select alternate function 5 Select alternate function 5
-
enumerator
HAL_GPIO_AF_6
-
Select alternate function 6 Select alternate function 6
-
enumerator
HAL_GPIO_AF_7
-
Select alternate function 7 Select alternate function 7
-
enumerator
HAL_GPIO_AF_8
-
Select alternate function 8 Select alternate function 8
-
enumerator
HAL_GPIO_AF_9
-
Select alternate function 9 Select alternate function 9
-
enumerator
HAL_GPIO_AF_10
-
Select alternate function 10 Select alternate function 10
-
enumerator
HAL_GPIO_AF_11
-
Select alternate function 11 Select alternate function 11
-
enumerator
HAL_GPIO_AF_12
-
Select alternate function 12 Select alternate function 12
-
enumerator
HAL_GPIO_AF_13
-
Select alternate function 13 Select alternate function 13
-
enumerator
HAL_GPIO_AF_14
-
Select alternate function 14 Select alternate function 14
-
enumerator
HAL_GPIO_AF_15
-
Select alternate function 15 Select alternate function 15
-
enumerator
HAL_GPIO_AF_0
-
enum
hal_gpio_pin_state_t
-
GPIO Bit SET and Bit RESET enumeration.
Values:
-
enumerator
HAL_GPIO_PIN_RESET
-
Pin state is reset/low
-
enumerator
HAL_GPIO_PIN_SET
-
Pin state is set/high
-
enumerator
HAL_GPIO_PIN_RESET
-
struct
hal_gpio_config_t
-
#include <stm32u5xx_hal_gpio.h>
GPIO Init structure definition.
Public Members
-
hal_gpio_mode_t
mode
-
Specifies the operating mode for the selected pins
-
hal_gpio_pull_t
pull
-
Specifies the Pull-up or Pull-Down activation for the selected pins
-
hal_gpio_speed_freq_t
speed
-
Specifies the speed for the selected pins
-
hal_gpio_output_t
output_type
-
Specifies the operating output type for the selected pins
-
hal_gpio_af_t
alternate
-
Specifies the alternate function for the selected pins
-
hal_gpio_pin_state_t
init_state
-
Specifies the initial state Set or Reset for the selected pins
-
hal_gpio_mode_t
mode
-
enum
hal_gpio_t
- group GPIO_Exported_Types
-
Enums
-
enum
hal_gpio_t
-
HAL GPIO instance.
Values:
-
enumerator
HAL_GPIOA
-
GPIO port A
-
enumerator
HAL_GPIOB
-
GPIO port B
-
enumerator
HAL_GPIOC
-
GPIO port C
-
enumerator
HAL_GPIOD
-
GPIO port D
-
enumerator
HAL_GPIOE
-
GPIO port E
-
enumerator
HAL_GPIOG
-
GPIO port G
-
enumerator
HAL_GPIOH
-
GPIO port H
-
enumerator
HAL_LPGPIO1
-
LPGPIO port
-
enumerator
HAL_GPIOA
-
enum
hal_gpio_mode_t
-
HAL GPIO mode.
Values:
-
enumerator
HAL_GPIO_MODE_INPUT
-
Select input mode Input Floating mode
-
enumerator
HAL_GPIO_MODE_OUTPUT
-
0x00000001 Select output mode Output mode
-
enumerator
HAL_GPIO_MODE_ALTERNATE
-
0x00000002 Select alternate function mode Alternate mode
-
enumerator
HAL_GPIO_MODE_ANALOG
-
0x00000003 Select analog mode Analog mode
-
enumerator
HAL_GPIO_MODE_INPUT
-
enum
hal_gpio_output_t
-
HAL GPIO Output Type.
Values:
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
-
Select push-pull as output type Select push-pull as output type
-
enumerator
HAL_GPIO_OUTPUT_OPENDRAIN
-
0x00000001 Select open-drain as output type Select open-drain as output type
-
enumerator
HAL_GPIO_OUTPUT_PUSHPULL
-
enum
hal_gpio_speed_freq_t
-
HAL GPIO speed.
Note
Refer to the device datasheet for the frequency specifications, and the power supply and load conditions for each speed.
Values:
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
-
Select I/O low output speed Low speed
-
enumerator
HAL_GPIO_SPEED_FREQ_MEDIUM
-
0x00000001 Select I/O medium output speed Medium speed
-
enumerator
HAL_GPIO_SPEED_FREQ_HIGH
-
0x00000002 Select I/O fast output speed High speed
-
enumerator
HAL_GPIO_SPEED_FREQ_VERY_HIGH
-
0x00000003 Select I/O high output speed Very-high speed
-
enumerator
HAL_GPIO_SPEED_FREQ_LOW
-
enum
hal_gpio_pull_t
-
HAL GPIO pull.
Values:
-
enumerator
HAL_GPIO_PULL_NO
-
Select I/O no pull No Pull-up or Pull-down activation
-
enumerator
HAL_GPIO_PULL_UP
-
0x00000001 Select I/O pull up Pull-up activation
-
enumerator
HAL_GPIO_PULL_DOWN
-
0x00000002 Select I/O pull down Pull-down activation
-
enumerator
HAL_GPIO_PULL_NO
-
enum
hal_gpio_af_t
-
HAL GPIO Alternate function.
Values:
-
enumerator
HAL_GPIO_AF_0
-
Select alternate function 0 Select alternate function 0
-
enumerator
HAL_GPIO_AF_1
-
Select alternate function 1 Select alternate function 1
-
enumerator
HAL_GPIO_AF_2
-
Select alternate function 2 Select alternate function 2
-
enumerator
HAL_GPIO_AF_3
-
Select alternate function 3 Select alternate function 3
-
enumerator
HAL_GPIO_AF_4
-
Select alternate function 4 Select alternate function 4
-
enumerator
HAL_GPIO_AF_5
-
Select alternate function 5 Select alternate function 5
-
enumerator
HAL_GPIO_AF_6
-
Select alternate function 6 Select alternate function 6
-
enumerator
HAL_GPIO_AF_7
-
Select alternate function 7 Select alternate function 7
-
enumerator
HAL_GPIO_AF_8
-
Select alternate function 8 Select alternate function 8
-
enumerator
HAL_GPIO_AF_9
-
Select alternate function 9 Select alternate function 9
-
enumerator
HAL_GPIO_AF_10
-
Select alternate function 10 Select alternate function 10
-
enumerator
HAL_GPIO_AF_11
-
Select alternate function 11 Select alternate function 11
-
enumerator
HAL_GPIO_AF_12
-
Select alternate function 12 Select alternate function 12
-
enumerator
HAL_GPIO_AF_13
-
Select alternate function 13 Select alternate function 13
-
enumerator
HAL_GPIO_AF_14
-
Select alternate function 14 Select alternate function 14
-
enumerator
HAL_GPIO_AF_15
-
Select alternate function 15 Select alternate function 15
-
enumerator
HAL_GPIO_AF_0
-
enum
hal_gpio_pin_state_t
-
GPIO Bit SET and Bit RESET enumeration.
Values:
-
enumerator
HAL_GPIO_PIN_RESET
-
Pin state is reset/low
-
enumerator
HAL_GPIO_PIN_SET
-
Pin state is set/high
-
enumerator
HAL_GPIO_PIN_RESET
-
struct
hal_gpio_config_t
-
#include <stm32u5xx_hal_gpio.h>
GPIO Init structure definition.
Public Members
-
hal_gpio_mode_t
mode
-
Specifies the operating mode for the selected pins
-
hal_gpio_pull_t
pull
-
Specifies the Pull-up or Pull-Down activation for the selected pins
-
hal_gpio_speed_freq_t
speed
-
Specifies the speed for the selected pins
-
hal_gpio_output_t
output_type
-
Specifies the operating output type for the selected pins
-
hal_gpio_af_t
alternate
-
Specifies the alternate function for the selected pins
-
hal_gpio_pin_state_t
init_state
-
Specifies the initial state Set or Reset for the selected pins
-
hal_gpio_mode_t
mode
-
enum
hal_gpio_t