libgpiod  1.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. 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.

Field Documentation

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

Consumer name to pass to the request.

Definition at line 238 of file gpiod.hpp.

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.

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.

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.

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

Additional request flags.

Definition at line 242 of file gpiod.hpp.

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: