8#ifndef __LIBGPIOD_CXX_EDGE_EVENT_HPP__
9#define __LIBGPIOD_CXX_EDGE_EVENT_HPP__
11#if !defined(__LIBGPIOD_GPIOD_CXX_INSIDE__)
12#error "Only gpiod.hpp can be included directly."
23class edge_event_buffer;
116 struct impl_external;
118 ::std::shared_ptr<impl> _m_priv;
129::std::ostream& operator<<(::std::ostream& out, const
edge_event& event);
Object into which edge events are read for better performance.
Immutable object containing data about a single edge event.
edge_event(edge_event &&other) noexcept
Move constructor.
line::offset line_offset() const noexcept
Read the offset of the line on which this event was registered.
unsigned long line_seqno() const noexcept
Get the event sequence number specific to the concerned line.
edge_event(const edge_event &other)
Copy constructor.
event_type
Edge event types.
@ FALLING_EDGE
This is falling edge event.
@ RISING_EDGE
This is a rising edge event.
edge_event & operator=(edge_event &&other) noexcept
Move assignment operator.
event_type type() const
Retrieve the event type.
unsigned long global_seqno() const noexcept
Get the global sequence number of this event.
timestamp timestamp_ns() const noexcept
Retrieve the event time-stamp.
edge_event & operator=(const edge_event &other)
Copy assignment operator.
Stores the edge and info event timestamps as returned by the kernel and allows to convert them to std...