[−][src]Struct lpc81x_hal::pinint::int::Interrupt5
Methods
impl<MODE: Sensitivity> Interrupt5<MODE>
[src]
impl Interrupt5<Inactive>
[src]
pub fn edge_triggered<P: InputPin>(self, pin: P) -> Interrupt5<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) -> Interrupt5<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> Interrupt5<MODE> where
MODE: Sensing<Pin = PIN>,
PIN: Pin,
[src]
MODE: Sensing<Pin = PIN>,
PIN: Pin,
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) -> (Interrupt5<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 Interrupt5<MODE> where
MODE: Send,
MODE: Send,
impl<MODE> Sync for Interrupt5<MODE> where
MODE: Sync,
MODE: Sync,
impl<MODE> Unpin for Interrupt5<MODE> where
MODE: Unpin,
MODE: Unpin,
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self