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."
36 offset(
unsigned int off = 0) : _m_offset(off) { }
69 operator unsigned int() const noexcept
71 return this->_m_offset;
75 unsigned int _m_offset;
Wrapper around unsigned int for representing line offsets.
Definition line.hpp:30
offset(const offset &other)=default
Copy constructor.
offset(offset &&other)=default
Move constructor.
offset & operator=(offset &&other) noexcept=default
Move assignment operator.
offset(unsigned int off=0)
Constructor with implicit conversion from unsigned int.
Definition line.hpp:36
offset & operator=(const offset &other)=default
Assignment operator.
::std::pair< offset, value > value_mapping
Represents a mapping of a line offset to line logical state.
Definition line.hpp:173
::std::vector< value_mapping > value_mappings
Vector of offset->value mappings. Each mapping is defined as a pair of an unsigned and signed integer...
Definition line.hpp:179
edge
Edge detection settings.
Definition line.hpp:106
direction
Direction settings.
Definition line.hpp:93
clock
Event clock settings.
Definition line.hpp:151
::std::ostream & operator<<(::std::ostream &out, value val)
Stream insertion operator for logical line values.
::std::vector< value > values
Vector of line values.
Definition line.hpp:168
::std::vector< offset > offsets
Vector of line offsets.
Definition line.hpp:163
drive
Drive settings.
Definition line.hpp:138
bias
Internal bias settings.
Definition line.hpp:121
value
Logical line states.
Definition line.hpp:82
Definition chip-info.hpp:18