Loading...
Searching...
No Matches
gpio_conf_gd32v Union Reference

GPIO pin configuration for GD32V MCUs. More...

Detailed Description

GPIO pin configuration for GD32V MCUs.

Definition at line 241 of file periph_cpu.h.

#include <periph_cpu.h>

Data Fields

uint8_t bits
 the raw bits
 
struct { 
 
   gpio_state_t   state: 3 
 State of the pin. More...
 
   gpio_pull_t   pull: 2 
 Pull resistor configuration. More...
 
   gpio_slew_t   slew_rate: 2 
 Configure the slew rate of outputs. More...
 
   bool   initial_value: 1 
 Initial value of the output. More...
 
};  
 

Field Documentation

◆ bits

uint8_t gpio_conf_gd32v::bits

the raw bits

Definition at line 242 of file periph_cpu.h.

◆ initial_value

bool gpio_conf_gd32v::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 275 of file periph_cpu.h.

◆ pull

gpio_pull_t gpio_conf_gd32v::pull

Pull resistor configuration.

Definition at line 251 of file periph_cpu.h.

◆ slew_rate

gpio_slew_t gpio_conf_gd32v::slew_rate

Configure the slew rate of outputs.

Warning
If the requested slew rate is not available, the closest fit supported will be configured instead.

This value is ignored unless gpio_conf_stm32::state is configured to GPIO_OUTPUT_PUSH_PULL or GPIO_OUTPUT_OPEN_DRAIN.

Definition at line 261 of file periph_cpu.h.

◆ state

gpio_state_t gpio_conf_gd32v::state

State of the pin.

Definition at line 247 of file periph_cpu.h.


The documentation for this union was generated from the following file: