libgpiod  1.6.2
Public Types | Data Fields | Static Public Attributes
gpiod::line_request Struct Reference

Stores the configuration for line requests. More...

#include <gpiod.hpp>

Public Types

enum  : int {
  DIRECTION_AS_IS = 1, DIRECTION_INPUT, DIRECTION_OUTPUT, EVENT_FALLING_EDGE,
  EVENT_RISING_EDGE, EVENT_BOTH_EDGES
}
 Request types. More...
 

Data Fields

::std::string consumer
 Consumer name to pass to the request.
 
int request_type
 Type of the request.
 
::std::bitset< 32 > flags
 Additional request flags.
 

Static Public Attributes

static GPIOD_API const ::std::bitset< 32 > FLAG_ACTIVE_LOW
 Set the active state to 'low' (high is the default).
 
static GPIOD_API const ::std::bitset< 32 > FLAG_OPEN_SOURCE
 The line is an open-source port.
 
static GPIOD_API const ::std::bitset< 32 > FLAG_OPEN_DRAIN
 The line is an open-drain port.
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_DISABLE
 The line has neither pull-up nor pull-down resistor enabled.
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_PULL_DOWN
 The line has a configurable pull-down resistor enabled.
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_PULL_UP
 The line has a configurable pull-up resistor enabled.
 

Detailed Description

Stores the configuration for line requests.

Definition at line 214 of file gpiod.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

Request types.

Enumerator
DIRECTION_AS_IS 

Request for values, don't change the direction.

DIRECTION_INPUT 

Request for reading line values.

DIRECTION_OUTPUT 

Request for driving the GPIO lines.

EVENT_FALLING_EDGE 

Listen for falling edge events.

EVENT_RISING_EDGE 

Listen for rising edge events.

EVENT_BOTH_EDGES 

Listen for all types of events.

Definition at line 219 of file gpiod.hpp.


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