pub struct ExtInt1<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> ExtInt1<GPIO>
impl<GPIO: AnyPin> ExtInt1<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.
sourcepub fn enable_event(&mut self, eic: &mut EIC)
pub fn enable_event(&mut self, eic: &mut EIC)
Configure the eic with options for this external interrupt
pub fn enable_interrupt(&mut self, eic: &mut EIC)
pub fn enable_interrupt_wake(&mut self, eic: &mut EIC)
pub fn disable_interrupt(&mut self, eic: &mut EIC)
pub fn is_interrupt(&mut self) -> bool
pub fn clear_interrupt(&mut self)
pub fn sense(&mut self, _eic: &mut EIC, sense: Sense)
pub fn filter(&mut self, _eic: &mut EIC, filter: bool)
Trait Implementations
sourceimpl<GPIO: AnyPin> ExternalInterrupt for ExtInt1<GPIO>
impl<GPIO: AnyPin> ExternalInterrupt for ExtInt1<GPIO>
fn id(&self) -> ExternalInterruptID
Auto Trait Implementations
impl<GPIO> RefUnwindSafe for ExtInt1<GPIO>where
<GPIO as AnyPin>::Id: RefUnwindSafe,
<GPIO as AnyPin>::Mode: RefUnwindSafe,
impl<GPIO> Send for ExtInt1<GPIO>where
<GPIO as AnyPin>::Id: Send,
<GPIO as AnyPin>::Mode: Send,
impl<GPIO> Sync for ExtInt1<GPIO>where
<GPIO as AnyPin>::Id: Sync,
<GPIO as AnyPin>::Mode: Sync,
impl<GPIO> Unpin for ExtInt1<GPIO>where
<GPIO as AnyPin>::Id: Unpin,
<GPIO as AnyPin>::Mode: Unpin,
impl<GPIO> UnwindSafe for ExtInt1<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