[][src]Trait kernel::hil::gpio::Interrupt

pub trait Interrupt<'a>: Input {
    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

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

Set the client for interrupt events.

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.

fn disable_interrupts(&self)

Disable interrupts for the GPIO pin.

fn is_pending(&self) -> bool

Return whether this interrupt is pending

Loading content...

Implementors

Loading content...