pub struct ExtInt0<GPIO>where
GPIO: AnyPin,{ /* private fields */ }
Expand description
Represents a numbered external interrupt. The external interrupt is generic over any pin, only the EicPin implementations in this module make sense.
Implementations
sourceimpl<GPIO: AnyPin> ExtInt0<GPIO>
impl<GPIO: AnyPin> ExtInt0<GPIO>
sourcepub fn new(pin: GPIO) -> Self
pub fn new(pin: GPIO) -> Self
Construct pad from the appropriate pin in any mode.
You may find it more convenient to use the into_pad
trait
and avoid referencing the pad type.
pub fn enable_event(&mut self, eic: &mut ConfigurableEIC)
pub fn enable_interrupt(&mut self, eic: &mut ConfigurableEIC)
pub fn disable_interrupt(&mut self, eic: &mut ConfigurableEIC)
pub fn is_interrupt(&mut self) -> bool
pub fn state(&mut self) -> bool
pub fn clear_interrupt(&mut self)
pub fn sense(&mut self, _eic: &mut ConfigurableEIC, sense: Sense)
pub fn filter(&mut self, _eic: &mut ConfigurableEIC, filter: bool)
Trait Implementations
sourceimpl<GPIO: AnyPin> ExternalInterrupt for ExtInt0<GPIO>
impl<GPIO: AnyPin> ExternalInterrupt for ExtInt0<GPIO>
fn id(&self) -> ExternalInterruptID
Auto Trait Implementations
impl<GPIO> RefUnwindSafe for ExtInt0<GPIO>where
<GPIO as AnyPin>::Id: RefUnwindSafe,
<GPIO as AnyPin>::Mode: RefUnwindSafe,
impl<GPIO> Send for ExtInt0<GPIO>where
<GPIO as AnyPin>::Id: Send,
<GPIO as AnyPin>::Mode: Send,
impl<GPIO> Sync for ExtInt0<GPIO>where
<GPIO as AnyPin>::Id: Sync,
<GPIO as AnyPin>::Mode: Sync,
impl<GPIO> Unpin for ExtInt0<GPIO>where
<GPIO as AnyPin>::Id: Unpin,
<GPIO as AnyPin>::Mode: Unpin,
impl<GPIO> UnwindSafe for ExtInt0<GPIO>where
<GPIO as AnyPin>::Id: UnwindSafe,
<GPIO as AnyPin>::Mode: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more