pub struct Irq<'d, PIO: Instance, const N: usize> { /* private fields */ }Expand description
Type representing a PIO interrupt.
Implementations§
Source§impl<'d, PIO: Instance, const N: usize> Irq<'d, PIO, N>
impl<'d, PIO: Instance, const N: usize> Irq<'d, PIO, N>
Sourcepub fn wait_without_clear<'a>(&'a mut self) -> IrqFuture<'a, 'd, PIO> ⓘ
pub fn wait_without_clear<'a>(&'a mut self) -> IrqFuture<'a, 'd, PIO> ⓘ
Wait for an IRQ to fire without automatically clearing the IRQ flag afterward.
This is useful to pause a state machine at a well-defined point by using an “irq wait” instruction. The flag can be cleared manually by using the IrqFlags to resume the state machine later.
Auto Trait Implementations§
impl<'d, PIO, const N: usize> !UnwindSafe for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> Freeze for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> RefUnwindSafe for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> Send for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> Sync for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> Unpin for Irq<'d, PIO, N>
impl<'d, PIO, const N: usize> UnsafeUnpin for Irq<'d, PIO, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more