libgpiod  1.6.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...
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_DISABLE
 The line has neither pull-up nor pull-down resistor enabled. More...
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_PULL_DOWN
 The line has a configurable pull-down resistor enabled. More...
 
static GPIOD_API const ::std::bitset< 32 > FLAG_BIAS_PULL_UP
 The line has a configurable pull-up resistor enabled. More...
 

Detailed Description

Stores the configuration for line requests.

Definition at line 214 of file gpiod.hpp.

Field Documentation

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

Consumer name to pass to the request.

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

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

The line has neither pull-up nor pull-down resistor enabled.

Definition at line 240 of file gpiod.hpp.

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

The line has a configurable pull-down resistor enabled.

Definition at line 242 of file gpiod.hpp.

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

The line has a configurable pull-up resistor enabled.

Definition at line 244 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 238 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 236 of file gpiod.hpp.

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

Additional request flags.

Definition at line 251 of file gpiod.hpp.

int gpiod::line_request::request_type

Type of the request.

Definition at line 249 of file gpiod.hpp.


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