libgpiod  1.1.1
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. More...
 
int request_type
 Type of the request. More...
 
::std::bitset< 32 > flags
 Additional request flags. More...
 

Static Public Attributes

static GPIOD_API const ::std::bitset< 32 > FLAG_ACTIVE_LOW
 Set the active state to 'low' (high is the default). More...
 
static GPIOD_API const ::std::bitset< 32 > FLAG_OPEN_SOURCE
 The line is an open-source port. More...
 
static GPIOD_API const ::std::bitset< 32 > FLAG_OPEN_DRAIN
 The line is an open-drain port. More...
 

Detailed Description

Stores the configuration for line requests.

Definition at line 211 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 216 of file gpiod.hpp.

Field Documentation

◆ consumer

::std::string gpiod::line_request::consumer

Consumer name to pass to the request.

Definition at line 238 of file gpiod.hpp.

◆ FLAG_ACTIVE_LOW

GPIOD_API const ::std::bitset<32> gpiod::line_request::FLAG_ACTIVE_LOW
static

Set the active state to 'low' (high is the default).

Definition at line 231 of file gpiod.hpp.

◆ FLAG_OPEN_DRAIN

GPIOD_API const ::std::bitset<32> gpiod::line_request::FLAG_OPEN_DRAIN
static

The line is an open-drain port.

Definition at line 235 of file gpiod.hpp.

◆ FLAG_OPEN_SOURCE

GPIOD_API const ::std::bitset<32> gpiod::line_request::FLAG_OPEN_SOURCE
static

The line is an open-source port.

Definition at line 233 of file gpiod.hpp.

◆ flags

::std::bitset<32> gpiod::line_request::flags

Additional request flags.

Definition at line 242 of file gpiod.hpp.

◆ request_type

int gpiod::line_request::request_type

Type of the request.

Definition at line 240 of file gpiod.hpp.


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