8#ifndef __LIBGPIOD_CXX_LINE_INFO_HPP__
9#define __LIBGPIOD_CXX_LINE_INFO_HPP__
11#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12#error "Only gpiod.hpp can be included directly."
77 ::std::
string name() const noexcept;
87 bool used() const noexcept;
156 ::std::shared_ptr<impl> _m_priv;
168::std::ostream& operator<<(::std::ostream& out, const
line_info& info);
Immutable object containing data about a single line info event.
Wrapper around unsigned int for representing line offsets.
Contains an immutable snapshot of the line's state at the time when the object of this class was inst...
line_info(const line_info &other) noexcept
Copy constructor.
line::clock event_clock() const
Read the current event clock setting used for edge event timestamps.
bool debounced() const noexcept
Check if this line is debounced (either by hardware or by the kernel software debouncer).
line::drive drive() const
Read the GPIO line drive setting.
line_info & operator=(line_info &&other) noexcept
Move assignment operator.
line::offset offset() const noexcept
Get the hardware offset of the line.
line::direction direction() const
Read the GPIO line direction setting.
::std::chrono::microseconds debounce_period() const noexcept
Read the current debounce period in microseconds.
line::edge edge_detection() const
Read the current edge detection setting of this line.
::std::string consumer() const noexcept
Read the GPIO line consumer name.
line_info & operator=(const line_info &other) noexcept
Copy assignment operator.
::std::string name() const noexcept
Get the GPIO line name.
bool active_low() const noexcept
Check if the signal of this line is inverted.
line::bias bias() const
Read the GPIO line bias setting.
bool used() const noexcept
Check if the line is currently in use.
line_info(line_info &&other) noexcept
Move constructor.
edge
Edge detection settings.
clock
Event clock settings.