Enum ruspiro_gpio::GpioEvent[][src]

pub enum GpioEvent {
    RisingEdge,
    FallingEdge,
    BothEdges,
    High,
    Low,
    AsyncRisingEdge,
    AsyncFallingEdge,
    AsyncBothEdges,
}
Expand description

The different GPIO detect events, an event handler can be registered for

Variants

RisingEdge

Event triggered when the level changes from low to high

FallingEdge

Event triggered when the level changes from high to low

BothEdges

Event triggerd when the level changes from low to high or high to low

High

Event riggered as long as the pin level is high

Low

Event riggered as long as the pin level is low

AsyncRisingEdge

Event triggered when the level changes from low to high, but the detection is not bound to the GPIO clock rate and allows for faster detections

AsyncFallingEdge

Event triggered when the level changes from high to low, but the detection is not bound to the GPIO clock rate and allows for faster detections

AsyncBothEdges

Event triggered when the level changes from high to low or low to high, but the detection is not bound to the GPIO clock rate and allows for faster detections

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.