libgpiod
|
Immutable object containing data about a single edge event. More...
#include <edge-event.hpp>
Public Types | |
enum | event_type { event_type::RISING_EDGE = 1, event_type::FALLING_EDGE } |
Edge event types. More... | |
Public Member Functions | |
edge_event (const edge_event &other) | |
Copy constructor. More... | |
edge_event (edge_event &&other) noexcept | |
Move constructor. More... | |
~edge_event () | |
edge_event & | operator= (const edge_event &other) |
Copy assignment operator. More... | |
edge_event & | operator= (edge_event &&other) noexcept |
Move assignment operator. More... | |
event_type | type () const |
Retrieve the event type. More... | |
timestamp | timestamp_ns () const noexcept |
Retrieve the event time-stamp. More... | |
line::offset | line_offset () const noexcept |
Read the offset of the line on which this event was registered. More... | |
unsigned long | global_seqno () const noexcept |
Get the global sequence number of this event. More... | |
unsigned long | line_seqno () const noexcept |
Get the event sequence number specific to the concerned line. More... | |
Immutable object containing data about a single edge event.
|
strong |
gpiod::edge_event::edge_event | ( | const edge_event & | other | ) |
Copy constructor.
other | Object to copy. |
|
noexcept |
Move constructor.
other | Object to move. |
gpiod::edge_event::~edge_event | ( | ) |
|
noexcept |
Get the global sequence number of this event.
|
noexcept |
Read the offset of the line on which this event was registered.
|
noexcept |
Get the event sequence number specific to the concerned line.
edge_event& gpiod::edge_event::operator= | ( | const edge_event & | other | ) |
Copy assignment operator.
other | Object to copy. |
|
noexcept |
Move assignment operator.
other | Object to move. |
|
noexcept |
Retrieve the event time-stamp.
event_type gpiod::edge_event::type | ( | ) | const |
Retrieve the event type.