|
GPS Device
|
Configuration enumerations and structures for the GPIO driver. More...

Classes | |
| struct | GPIO_CFG_ts |
| Configuration structure for initializing a GPIO pin. More... | |
Configuration enumerations and structures for the GPIO driver.
| enum GPIO_PIN_te |
GPIO pin number within a port (0–15).
Definition at line 50 of file stm32f401re_gpio.h.
| enum GPIO_MODE_te |
GPIO pin operating mode.
Definition at line 79 of file stm32f401re_gpio.h.
| enum GPIO_OUTPUT_TYPE_te |
GPIO output driver type.
| Enumerator | |
|---|---|
| GPIO_OUTPUT_TYPE_PUSHPULL | Push-pull output (actively drives both HIGH and LOW). |
| GPIO_OUTPUT_TYPE_OPENDRAIN | Open-drain output (actively pulls LOW; HIGH is floating). |
Definition at line 90 of file stm32f401re_gpio.h.
| enum GPIO_OUTPUT_SPEED_te |
GPIO output slew rate / speed.
Higher speed settings increase current consumption and EMI. Select the lowest speed adequate for the signal frequency.
Definition at line 102 of file stm32f401re_gpio.h.
| enum GPIO_PULL_MODE_te |
GPIO internal pull-up / pull-down resistor configuration.
| Enumerator | |
|---|---|
| GPIO_PULL_MODE_NOPUPD | No pull-up or pull-down resistor. |
| GPIO_PULL_MODE_PU | Internal pull-up resistor enabled. |
| GPIO_PULL_MODE_PD | Internal pull-down resistor enabled. |
Definition at line 112 of file stm32f401re_gpio.h.
GPIO alternate function mapping (AF0–AF15).
The mapping between AF numbers and on-chip peripherals is device-specific. Refer to the STM32F401RE datasheet alternate function table for the correct AF number for each pin/peripheral combination.
Definition at line 126 of file stm32f401re_gpio.h.
EXTI edge trigger selection for interrupt mode.
Only used when GPIO_CFG_ts::mode is GPIO_MODE_INTERRUPT.
| Enumerator | |
|---|---|
| GPIO_INTERRUPT_TRIGGER_RE | Trigger on rising edge only. |
| GPIO_INTERRUPT_TRIGGER_FE | Trigger on falling edge only. |
| GPIO_INTERRUPT_TRIGGER_RFE | Trigger on both rising and falling edges. |
Definition at line 151 of file stm32f401re_gpio.h.