Trait kernel::hil::gpio::Interrupt

source ·
pub trait Interrupt<'a>: Input {
    // Required methods
    fn set_client(&self, client: &'a dyn Client);
    fn enable_interrupts(&self, mode: InterruptEdge);
    fn disable_interrupts(&self);
    fn is_pending(&self) -> bool;
}

Required Methods§

source

fn set_client(&self, client: &'a dyn Client)

Set the client for interrupt events.

source

fn enable_interrupts(&self, mode: InterruptEdge)

Enable an interrupt on the GPIO pin. This does not configure the pin except to enable an interrupt: it should be separately configured as an input, etc.

source

fn disable_interrupts(&self)

Disable interrupts for the GPIO pin.

source

fn is_pending(&self) -> bool

Return whether this interrupt is pending

Implementors§