2023-04-22 08:37:23 +00:00
|
|
|
// SPDX-FileCopyrightText: 2020 Kent Gibson <warthog618@gmail.com>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
//go:build linux && !386
|
|
|
|
// +build linux,!386
|
|
|
|
|
2024-06-15 13:58:47 +00:00
|
|
|
// Package uapi provides the Linux GPIO UAPI definitions for gpiocdev.
|
2023-04-22 08:37:23 +00:00
|
|
|
package uapi
|
|
|
|
|
|
|
|
// EventData contains the details of a particular line event.
|
|
|
|
//
|
|
|
|
// This is returned via the event request fd in response to events.
|
|
|
|
type EventData struct {
|
|
|
|
// The time the event was detected.
|
|
|
|
Timestamp uint64
|
|
|
|
|
|
|
|
// The type of event detected.
|
|
|
|
ID EventFlag
|
|
|
|
|
|
|
|
// pad to workaround 64-bit padding
|
|
|
|
_ uint32
|
|
|
|
}
|