GPIO edge event
-
class edge_event
Immutable object containing data about a single edge event.
Public Types
Public Functions
-
edge_event(const edge_event &other)
Copy constructor.
- Parameters:
other – Object to copy.
-
edge_event(edge_event &&other) noexcept
Move constructor.
- Parameters:
other – Object to move.
-
edge_event &operator=(const edge_event &other)
Copy assignment operator.
- Parameters:
other – Object to copy.
- Returns:
Reference to self.
-
edge_event &operator=(edge_event &&other) noexcept
Move assignment operator.
- Parameters:
other – Object to move.
- Returns:
Reference to self.
-
event_type type() const
Retrieve the event type.
- Returns:
Event type (rising or falling edge).
-
timestamp timestamp_ns() const noexcept
Retrieve the event time-stamp.
- Returns:
Time-stamp in nanoseconds as registered by the kernel using the configured edge event clock.
-
line::offset line_offset() const noexcept
Read the offset of the line on which this event was registered.
- Returns:
Line offset.
-
unsigned long global_seqno() const noexcept
Get the global sequence number of this event.
- Returns:
Sequence number of the event relative to all lines in the associated line request.
-
unsigned long line_seqno() const noexcept
Get the event sequence number specific to the concerned line.
- Returns:
Sequence number of the event relative to this line within the lifetime of the associated line request.
-
edge_event(const edge_event &other)