8 #ifndef __LIBGPIOD_CXX_LINE_HPP__
9 #define __LIBGPIOD_CXX_LINE_HPP__
11 #if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12 #error "Only gpiod.hpp can be included directly."
41 offset(
unsigned int off = 0) : _m_offset(off) { }
74 operator
unsigned int() const noexcept
76 return this->_m_offset;
80 unsigned int _m_offset;
The internal pull-down bias is enabled.
Line output is open-drain.
edge
Edge detection settings.
Line uses the realtime clock for edge event timestamps.
Direction is input - we're reading the state of a GPIO line.
::std::ostream & operator<<(::std::ostream &out, value val)
Stream insertion operator for logical line values.
offset(unsigned int off=0)
Constructor with implicit conversion from unsigned int.
Line detect falling edge events.
::std::vector< value > values
Vector of line values.
offset & operator=(const offset &other)=default
Assignment operator.
The internal bias state is unknown.
Request the line(s), but don't change current direction.
Line detects both rising and falling edge events.
Line detects rising edge events.
value
Logical line states.
Drive setting is push-pull.
direction
Direction settings.
clock
Event clock settings.
bias
Internal bias settings.
The internal pull-up bias is enabled.
Line uses the monotonic clock for edge event timestamps.
::std::vector< offset > offsets
Vector of line offsets.
Wrapper around unsigned int for representing line offsets.
Line edge detection is disabled.
::std::pair< offset, value > value_mapping
Represents a mapping of a line offset to line logical state.
Direction is output - we're driving the GPIO line.
::std::vector< value_mapping > value_mappings
Vector of offset->value mappings.
The internal bias is disabled.
Line output is open-source.