GPIO info event

class info_event

Immutable object containing data about a single line info event.

Public Types

enum class event_type

Types of info events.

Values:

enumerator LINE_REQUESTED

Line has been requested.

enumerator LINE_RELEASED

Previously requested line has been released.

enumerator LINE_CONFIG_CHANGED

Line configuration has changed.

Public Functions

info_event(const info_event &other)

Copy constructor.

Parameters:

other – Object to copy.

info_event(info_event &&other) noexcept

Move constructor.

Parameters:

other – Object to move.

info_event &operator=(const info_event &other)

Copy assignment operator.

Parameters:

other – Object to copy.

Returns:

Reference to self.

info_event &operator=(info_event &&other) noexcept

Move assignment operator.

Parameters:

other – Object to move.

Returns:

Reference to self.

event_type type() const

Type of this event.

Returns:

Event type.

::std::uint64_t timestamp_ns() const noexcept

Timestamp of the event as returned by the kernel.

Returns:

Timestamp as a 64-bit unsigned integer.

const line_info &get_line_info() const noexcept

Get the new line information.

Returns:

Constant reference to the line info object containing the line data as read at the time of the info event.