public class GpioEvent extends Object
| Constructor and Description |
|---|
GpioEvent()
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getId()
Retrieves the id associated with this event.
|
long |
getNanoTimestamp()
Retrieves the best estimation of when the event happened.
|
boolean |
isFalling()
Did this event happened on a falling edge ?
|
boolean |
isRising()
Did this event happened on a rising edge ?
|
public int getId()
When using an event watcher, the user can associated an event with an arbitraty id in order to recognize it when it happens.
GpioEventWatcherpublic long getNanoTimestamp()
public boolean isRising()
public boolean isFalling()