libgpiod  1.1.1
Public Types | Data Fields
gpiod::line_event Struct Reference

Describes a single GPIO line event. More...

#include <gpiod.hpp>

Collaboration diagram for gpiod::line_event:
Collaboration graph
[legend]

Public Types

enum  : int { RISING_EDGE = 1, FALLING_EDGE }
 Possible event types. More...
 

Data Fields

::std::chrono::nanoseconds timestamp
 Best estimate of time of event occurrence in nanoseconds. More...
 
int event_type
 Type of the event that occurred. More...
 
line source
 Line object referencing the GPIO line on which the event occurred. More...
 

Detailed Description

Describes a single GPIO line event.

Definition at line 479 of file gpiod.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int

Possible event types.

Enumerator
RISING_EDGE 

Rising edge event.

FALLING_EDGE 

Falling edge event.

Definition at line 485 of file gpiod.hpp.

Field Documentation

◆ event_type

int gpiod::line_event::event_type

Type of the event that occurred.

Definition at line 494 of file gpiod.hpp.

◆ source

line gpiod::line_event::source

Line object referencing the GPIO line on which the event occurred.

Definition at line 496 of file gpiod.hpp.

◆ timestamp

::std::chrono::nanoseconds gpiod::line_event::timestamp

Best estimate of time of event occurrence in nanoseconds.

Definition at line 492 of file gpiod.hpp.


The documentation for this struct was generated from the following file: