Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gpio_dt_spec Struct Reference

Container for GPIO pin information specified in devicetree. More...

#include <gpio.h>

Data Fields

const struct deviceport
 GPIO device controlling the pin.
 
gpio_pin_t pin
 The pin's number on the device.
 
gpio_dt_flags_t dt_flags
 The pin's configuration flags as specified in devicetree.
 

Detailed Description

Container for GPIO pin information specified in devicetree.

This type contains a pointer to a GPIO device, pin number for a pin controlled by that device, and the subset of pin configuration flags which may be given in devicetree.

See also
GPIO_DT_SPEC_GET_BY_IDX
GPIO_DT_SPEC_GET_BY_IDX_OR
GPIO_DT_SPEC_GET
GPIO_DT_SPEC_GET_OR

Field Documentation

◆ dt_flags

gpio_dt_flags_t gpio_dt_spec::dt_flags

The pin's configuration flags as specified in devicetree.

◆ pin

gpio_pin_t gpio_dt_spec::pin

The pin's number on the device.

◆ port

const struct device* gpio_dt_spec::port

GPIO device controlling the pin.


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