pub struct ExtInt9<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> ExtInt9<GPIO>where GPIO: AnyPin,

source

pub fn new(pin: GPIO) -> ExtInt9<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.

source

pub fn enable_event(&mut self, eic: &mut EIC)

Configure the eic with options for this external interrupt

source

pub fn enable_interrupt(&mut self, eic: &mut EIC)

source

pub fn enable_interrupt_wake(&mut self, eic: &mut EIC)

source

pub fn disable_interrupt(&mut self, eic: &mut EIC)

source

pub fn is_interrupt(&mut self) -> bool

source

pub fn clear_interrupt(&mut self)

source

pub fn sense(&mut self, _eic: &mut EIC, sense: SENSE0_A)

source

pub fn filter(&mut self, _eic: &mut EIC, filter: bool)

Auto Trait Implementations§

§

impl<GPIO> RefUnwindSafe for ExtInt9<GPIO>where <GPIO as AnyPin>::Id: RefUnwindSafe, <GPIO as AnyPin>::Mode: RefUnwindSafe,

§

impl<GPIO> Send for ExtInt9<GPIO>where <GPIO as AnyPin>::Id: Send, <GPIO as AnyPin>::Mode: Send,

§

impl<GPIO> Sync for ExtInt9<GPIO>where <GPIO as AnyPin>::Id: Sync, <GPIO as AnyPin>::Mode: Sync,

§

impl<GPIO> Unpin for ExtInt9<GPIO>where <GPIO as AnyPin>::Id: Unpin, <GPIO as AnyPin>::Mode: Unpin,

§

impl<GPIO> UnwindSafe for ExtInt9<GPIO>where <GPIO as AnyPin>::Id: UnwindSafe, <GPIO as AnyPin>::Mode: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.