pub struct ExtInt3<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§
source§impl<GPIO> ExtInt3<GPIO>where
GPIO: AnyPin,
impl<GPIO> ExtInt3<GPIO>where GPIO: AnyPin,
sourcepub fn new(pin: GPIO) -> ExtInt3<GPIO>
pub fn new(pin: GPIO) -> ExtInt3<GPIO>
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: SENSE0_A)
pub fn filter(&mut self, _eic: &mut EIC, filter: bool)
Auto Trait Implementations§
impl<GPIO> RefUnwindSafe for ExtInt3<GPIO>where <GPIO as AnyPin>::Id: RefUnwindSafe, <GPIO as AnyPin>::Mode: RefUnwindSafe,
impl<GPIO> Send for ExtInt3<GPIO>where <GPIO as AnyPin>::Id: Send, <GPIO as AnyPin>::Mode: Send,
impl<GPIO> Sync for ExtInt3<GPIO>where <GPIO as AnyPin>::Id: Sync, <GPIO as AnyPin>::Mode: Sync,
impl<GPIO> Unpin for ExtInt3<GPIO>where <GPIO as AnyPin>::Id: Unpin, <GPIO as AnyPin>::Mode: Unpin,
impl<GPIO> UnwindSafe for ExtInt3<GPIO>where <GPIO as AnyPin>::Id: UnwindSafe, <GPIO as AnyPin>::Mode: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more