[][src]Struct lpc81x_hal::pinint::int::Interrupt3

pub struct Interrupt3<MODE: Sensitivity>(_);

Methods

impl<MODE: Sensitivity> Interrupt3<MODE>[src]

pub fn new() -> Self[src]

impl Interrupt3<Inactive>[src]

pub fn edge_triggered<P: InputPin>(self, pin: P) -> Interrupt3<Edge<P>>[src]

Consumes the inactive interrupt pin and returns it configured to detect edges on the given pin.

The interrupt is not automatically enabled. Call enable on the result to actually begin receiving interrupts.

pub fn level_triggered<P: InputPin>(self, pin: P) -> Interrupt3<Level<P>>[src]

Consumes the inactive interrupt pin and returns it configured to detect levels on the given pin.

The interrupt is not automatically enabled. Call enable on the result to actually begin receiving interrupts.

impl<MODE, PIN> Interrupt3<MODE> where
    MODE: Sensing<Pin = PIN>,
    PIN: Pin
[src]

pub const NVIC_BITMASK: u32[src]

pub fn pin(&self) -> PIN[src]

Returns the pin that is currently connected to the pin interrupt.

pub fn enable(&self, rising: bool, falling: bool)[src]

Enable this interrupt.

pub fn disable(&self)[src]

Disable this interrupt.

pub fn acknowledge_events(&self)[src]

Clear any active rising or falling edge notifications.

The interrupt service routine must call this before returning or else it will be immediately called again as soon as it returns.

pub fn release_pin(self) -> (Interrupt3<Inactive>, PIN)[src]

Consumes the pin interrupt and returns it deactivated, along with the pin it was previously monitoring.

Auto Trait Implementations

impl<MODE> Send for Interrupt3<MODE> where
    MODE: Send

impl<MODE> Sync for Interrupt3<MODE> where
    MODE: Sync

impl<MODE> Unpin for Interrupt3<MODE> where
    MODE: Unpin

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self