libgpiodcxx line definitions
-
class offset
Wrapper around unsigned int for representing line offsets.
Public Functions
-
inline offset(unsigned int off = 0)
Constructor with implicit conversion from unsigned int.
- Parameters:
off – Line offset.
-
offset &operator=(const offset &other) = default
Assignment operator.
- Parameters:
other – Object to copy.
- Returns:
Reference to self.
-
offset &operator=(offset &&other) noexcept = default
Move assignment operator.
- Parameters:
other – Object to move.
- Returns:
Reference to self.
-
inline operator unsigned int() const noexcept
Conversion operator to
unsigned int.
-
inline offset(unsigned int off = 0)
-
enum class gpiod::line::value
Logical line states.
Values:
-
enumerator INACTIVE
Line is inactive.
-
enumerator ACTIVE
Line is active.
-
enumerator INACTIVE
-
enum class gpiod::line::direction
Direction settings.
Values:
-
enumerator AS_IS
Request the line(s), but don’t change current direction.
-
enumerator INPUT
Direction is input - we’re reading the state of a GPIO line.
-
enumerator OUTPUT
Direction is output - we’re driving the GPIO line.
-
enumerator AS_IS
-
enum class gpiod::line::edge
Edge detection settings.
Values:
-
enumerator NONE
Line edge detection is disabled.
-
enumerator RISING
Line detects rising edge events.
-
enumerator FALLING
Line detect falling edge events.
-
enumerator BOTH
Line detects both rising and falling edge events.
-
enumerator NONE
-
enum class gpiod::line::bias
Internal bias settings.
Values:
-
enumerator AS_IS
Don’t change the bias setting when applying line config.
-
enumerator UNKNOWN
The internal bias state is unknown.
-
enumerator DISABLED
The internal bias is disabled.
-
enumerator PULL_UP
The internal pull-up bias is enabled.
-
enumerator PULL_DOWN
The internal pull-down bias is enabled.
-
enumerator AS_IS