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;
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.
Namespace containing various type definitions for GPIO lines.
Definition line.hpp:24
::std::vector< offset > offsets
Vector of line offsets.
Definition line.hpp:163
::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
@ FALLING
Definition line.hpp:111
@ BOTH
Definition line.hpp:113
@ RISING
Definition line.hpp:109
@ NONE
Definition line.hpp:107
direction
Direction settings.
Definition line.hpp:93
@ OUTPUT
Definition line.hpp:98
@ INPUT
Definition line.hpp:96
@ AS_IS
Definition line.hpp:94
::std::pair< offset, value > value_mapping
Represents a mapping of a line offset to line logical state.
Definition line.hpp:173
::std::vector< value > values
Vector of line values.
Definition line.hpp:168
clock
Event clock settings.
Definition line.hpp:151
@ MONOTONIC
Definition line.hpp:152
@ REALTIME
Definition line.hpp:154
@ HTE
Definition line.hpp:156
::std::ostream & operator<<(::std::ostream &out, value val)
Stream insertion operator for logical line values.
drive
Drive settings.
Definition line.hpp:138
@ PUSH_PULL
Definition line.hpp:139
@ OPEN_SOURCE
Definition line.hpp:143
@ OPEN_DRAIN
Definition line.hpp:141
bias
Internal bias settings.
Definition line.hpp:121
@ DISABLED
Definition line.hpp:126
@ PULL_UP
Definition line.hpp:128
@ PULL_DOWN
Definition line.hpp:130
@ UNKNOWN
Definition line.hpp:124
value
Logical line states.
Definition line.hpp:82
@ ACTIVE
Definition line.hpp:85
@ INACTIVE
Definition line.hpp:83
Definition chip-info.hpp:18