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

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

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

impl Clone for Event[src]

impl Copy for Event[src]

Auto Trait Implementations

impl Send for Event

impl Sync for Event

impl Unpin for Event

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.