Struct lpc55_hal::peripherals::pint::Pint [−][src]
pub struct Pint<State = Unknown> { pub _state: State, // some fields omitted }
Fields
_state: State
Implementations
impl Pint<Enabled>
[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.