Loading...
Searching...
No Matches
gpio_conf_nrf5x Union Reference

GPIO pin configuration for nRF5x MCUs. More...

Detailed Description

GPIO pin configuration for nRF5x MCUs.

Definition at line 165 of file periph_cpu_common.h.

#include <periph_cpu_common.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_drive_strength_t   drive_strength: 1 
 Drive strength of the GPIO. More...
 
   bool   initial_value: 1 
 Initial value of the output. More...
 
   uint8_t   : 1 
 
};  
 

Field Documentation

◆ __pad0__

uint8_t gpio_conf_nrf5x::__pad0__

Definition at line 200 of file periph_cpu_common.h.

◆ bits

uint8_t gpio_conf_nrf5x::bits

the raw bits

Definition at line 166 of file periph_cpu_common.h.

◆ drive_strength

gpio_drive_strength_t gpio_conf_nrf5x::drive_strength

Drive strength of the GPIO.

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

This value is ignored when gpio_conf_nrf5x::state is configured to GPIO_INPUT or GPIO_DISCONNECT.

Definition at line 185 of file periph_cpu_common.h.

◆ initial_value

bool gpio_conf_nrf5x::initial_value

Initial value of the output.

Ignored if gpio_conf_nrf5x::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 199 of file periph_cpu_common.h.

◆ pull

gpio_pull_t gpio_conf_nrf5x::pull

Pull resistor configuration.

Definition at line 175 of file periph_cpu_common.h.

◆ state

gpio_state_t gpio_conf_nrf5x::state

State of the pin.

Definition at line 171 of file periph_cpu_common.h.


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