GPIO pin configuration for STM32 MCUs. More...
GPIO pin configuration for STM32 MCUs.
Definition at line 152 of file cpu_gpio_ll.h.
#include <cpu_gpio_ll.h>
Data Fields | |
| uint8_t | bits | 
| the raw bits  | |
| struct { | |
| gpio_state_t state: 3 | |
| State of the pin.  | |
| gpio_pull_t pull: 2 | |
| Pull resistor configuration.  | |
| gpio_slew_t slew_rate: 2 | |
| Configure the slew rate of outputs.  More... | |
| bool initial_value: 1 | |
| Initial value of the output.  More... | |
| }; | |
| bool gpio_conf_stm32::initial_value | 
Initial value of the output.
Ignored if gpio_conf_stm32::state is set to GPIO_INPUT or GPIO_DISCONNECT. If the pin was previously in a high impedance state, it is guaranteed to directly transition to the given initial value.
gpio_ll_query_conf will write the current value of the specified pin here, which is read from the input register when the state is GPIO_INPUT, otherwise the state from the output register is consulted.
Definition at line 186 of file cpu_gpio_ll.h.
| gpio_slew_t gpio_conf_stm32::slew_rate | 
Configure the slew rate of outputs.
This value is ignored unless gpio_conf_stm32::state is configured to GPIO_OUTPUT_PUSH_PULL or GPIO_OUTPUT_OPEN_DRAIN.
Definition at line 172 of file cpu_gpio_ll.h.