Enum esp32_hal::gpio::Event[][src]

pub enum Event {
    RisingEdge,
    FallingEdge,
    AnyEdge,
    LowLevel,
    HighLevel,
}
Expand description

Interrupt events

Note: ESP32 has a bug (3.14), which prevents correct triggering of interrupts when multiple GPIO’s are configured for edge triggering in a group (GPIO0-31 is one group, GPIO32-39 is the other group). This can be worked around by using level triggering on the GPIO with edge triggering on the CPU.

Variants

RisingEdge

Trigger on the rising edge

FallingEdge

Trigger on the falling edge

AnyEdge

Trigger on any edge

LowLevel

Trigger while low level

HighLevel

Trigger while high level

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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.