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§
sourcefn set_client(&self, client: &'a dyn Client)
fn set_client(&self, client: &'a dyn Client)
Set the client for interrupt events.
sourcefn enable_interrupts(&self, mode: InterruptEdge)
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.
sourcefn disable_interrupts(&self)
fn disable_interrupts(&self)
Disable interrupts for the GPIO pin.
sourcefn is_pending(&self) -> bool
fn is_pending(&self) -> bool
Return whether this interrupt is pending