GPIO edge event

class gpiod.EdgeEvent(event_type: int, timestamp_ns: int, line_offset: int, global_seqno: int, line_seqno: int)

Immutable object containing data about a single edge event.

Synchronization: none required

class Type(new_class_name, /, names, *, module=None, qualname=None, type=None, start=1, boundary=None)

Possible edge event types.

FALLING_EDGE

Falling edge event.

RISING_EDGE

Rising edge event.

event_type: Type

Edge event type.

global_seqno: int

Global sequence number of this event.

line_offset: int

Offset of the line on which this event was registered.

line_seqno: int

Event sequence number specific to the concerned line.

timestamp_ns: int

Timestamp of the event in nanoseconds.