GPIO pin configuration.
- The layout of this structure is implementation dependent and additional implementation specific fields might be present. For this reason, this structure must be initialized using designated initializers or zeroing out the whole contents using `memset() before initializing the individual fields.
It is fully valid that an implementation extends this structure with additional implementation specific fields. For example, it could be useful to also include fields to configure routing of a GPIO pin to other peripherals (e.g. for us as an TXD pin of an UART). These implementation specific fields MUST however have reasonable defaults when initialized with zero (e.g. pin is not routed to another peripheral but to be used as regular GPIO). For obvious reasons, portable code cannot rely on the presence and semantic of any implementation specific fields. Additionally, out-of-tree users should not use these fields, as the implementation specific fields cannot be considered a stable API.
Definition at line 323 of file gpio_ll.h.
Initial value of the output.
Ignored if gpio_conf_t::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 359 of file gpio_ll.h.