Immutable object containing data about a single edge event.
More...
#include <edge-event.hpp>
Immutable object containing data about a single edge event.
Definition at line 33 of file edge-event.hpp.
◆ event_type
Edge event types.
Enumerator |
---|
RISING_EDGE | This is a rising edge event.
|
FALLING_EDGE | This is falling edge event.
|
Definition at line 40 of file edge-event.hpp.
◆ edge_event() [1/2]
gpiod::edge_event::edge_event |
( |
const edge_event & |
other | ) |
|
Copy constructor.
- Parameters
-
◆ edge_event() [2/2]
gpiod::edge_event::edge_event |
( |
edge_event && |
other | ) |
|
|
noexcept |
Move constructor.
- Parameters
-
◆ global_seqno()
unsigned long gpiod::edge_event::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.
◆ line_offset()
Read the offset of the line on which this event was registered.
- Returns
- Line offset.
◆ line_seqno()
unsigned long gpiod::edge_event::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.
◆ operator=() [1/2]
Copy assignment operator.
- Parameters
-
- Returns
- Reference to self.
◆ operator=() [2/2]
Move assignment operator.
- Parameters
-
- Returns
- Reference to self.
◆ timestamp_ns()
timestamp gpiod::edge_event::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.
◆ type()
Retrieve the event type.
- Returns
- Event type (rising or falling edge).
The documentation for this class was generated from the following file: