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