Struct lpc55_hal::peripherals::pint::Pint [−][src]
pub struct Pint<State = Unknown> { pub _state: State, // some fields omitted }
Fields
_state: State
Implementations
impl Pint
[src]
impl<State> Pint<State>
[src]
impl<State> Pint<State>
[src]
pub fn enabled(self, syscon: &mut Syscon) -> Pint<Enabled>
[src]
pub fn disabled(self, syscon: &mut Syscon) -> Pint<Disabled>
[src]
impl Pint<Enabled>
[src]
pub fn enable_interrupt<PIN: PinId>(
&mut self,
mux: &mut InputMux<Enabled>,
_pin: &Pin<PIN, Gpio<Input>>,
slot: Slot,
mode: Mode
)
[src]
&mut self,
mux: &mut InputMux<Enabled>,
_pin: &Pin<PIN, Gpio<Input>>,
slot: Slot,
mode: Mode
)
LPC55 supports 8 external pin interrupts, from any PIO pin.
Use slot
to indicate (0-7) which slot you’d like to use.
mode
indicates what kind of interrupt to generate.
You can call this function twice to enable both RisingEdge
and FallingEdge
interrupts for same pin + slot.
Trait Implementations
impl<State> Deref for Pint<State>
[src]
type Target = RegisterBlock
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl From<PINT> for Pint
[src]
Auto Trait Implementations
impl<State> Send for Pint<State> where
State: Send,
State: Send,
impl<State = Unknown> !Sync for Pint<State>
impl<State> Unpin for Pint<State> where
State: Unpin,
State: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,