pub struct Pio<'d, PIO: Instance> {
pub common: Common<'d, PIO>,
pub irq_flags: IrqFlags<'d, PIO>,
pub irq0: Irq<'d, PIO, 0>,
pub irq1: Irq<'d, PIO, 1>,
pub irq2: Irq<'d, PIO, 2>,
pub irq3: Irq<'d, PIO, 3>,
pub sm0: StateMachine<'d, PIO, 0>,
pub sm1: StateMachine<'d, PIO, 1>,
pub sm2: StateMachine<'d, PIO, 2>,
pub sm3: StateMachine<'d, PIO, 3>,
/* private fields */
}Expand description
An instance of the PIO driver.
Fields§
§common: Common<'d, PIO>PIO handle.
irq_flags: IrqFlags<'d, PIO>PIO IRQ flags.
irq0: Irq<'d, PIO, 0>IRQ0 configuration.
irq1: Irq<'d, PIO, 1>IRQ1 configuration.
irq2: Irq<'d, PIO, 2>IRQ2 configuration.
irq3: Irq<'d, PIO, 3>IRQ3 configuration.
sm0: StateMachine<'d, PIO, 0>State machine 0 handle.
sm1: StateMachine<'d, PIO, 1>State machine 1 handle.
sm2: StateMachine<'d, PIO, 2>State machine 2 handle.
sm3: StateMachine<'d, PIO, 3>State machine 3 handle.
Implementations§
Auto Trait Implementations§
impl<'d, PIO> !UnwindSafe for Pio<'d, PIO>
impl<'d, PIO> Freeze for Pio<'d, PIO>where
Common<'d, PIO>: Freeze,
IrqFlags<'d, PIO>: Freeze,
Irq<'d, PIO, 0>: Freeze,
Irq<'d, PIO, 1>: Freeze,
Irq<'d, PIO, 2>: Freeze,
Irq<'d, PIO, 3>: Freeze,
StateMachine<'d, PIO, 0>: Freeze,
StateMachine<'d, PIO, 1>: Freeze,
StateMachine<'d, PIO, 2>: Freeze,
StateMachine<'d, PIO, 3>: Freeze,
PhantomData<&'d mut PIO>: Freeze,
impl<'d, PIO> RefUnwindSafe for Pio<'d, PIO>where
Common<'d, PIO>: RefUnwindSafe,
IrqFlags<'d, PIO>: RefUnwindSafe,
Irq<'d, PIO, 0>: RefUnwindSafe,
Irq<'d, PIO, 1>: RefUnwindSafe,
Irq<'d, PIO, 2>: RefUnwindSafe,
Irq<'d, PIO, 3>: RefUnwindSafe,
StateMachine<'d, PIO, 0>: RefUnwindSafe,
StateMachine<'d, PIO, 1>: RefUnwindSafe,
StateMachine<'d, PIO, 2>: RefUnwindSafe,
StateMachine<'d, PIO, 3>: RefUnwindSafe,
PhantomData<&'d mut PIO>: RefUnwindSafe,
impl<'d, PIO> Send for Pio<'d, PIO>where
Common<'d, PIO>: Send,
IrqFlags<'d, PIO>: Send,
Irq<'d, PIO, 0>: Send,
Irq<'d, PIO, 1>: Send,
Irq<'d, PIO, 2>: Send,
Irq<'d, PIO, 3>: Send,
StateMachine<'d, PIO, 0>: Send,
StateMachine<'d, PIO, 1>: Send,
StateMachine<'d, PIO, 2>: Send,
StateMachine<'d, PIO, 3>: Send,
PhantomData<&'d mut PIO>: Send,
impl<'d, PIO> Sync for Pio<'d, PIO>where
Common<'d, PIO>: Sync,
IrqFlags<'d, PIO>: Sync,
Irq<'d, PIO, 0>: Sync,
Irq<'d, PIO, 1>: Sync,
Irq<'d, PIO, 2>: Sync,
Irq<'d, PIO, 3>: Sync,
StateMachine<'d, PIO, 0>: Sync,
StateMachine<'d, PIO, 1>: Sync,
StateMachine<'d, PIO, 2>: Sync,
StateMachine<'d, PIO, 3>: Sync,
PhantomData<&'d mut PIO>: Sync,
impl<'d, PIO> Unpin for Pio<'d, PIO>where
Common<'d, PIO>: Unpin,
IrqFlags<'d, PIO>: Unpin,
Irq<'d, PIO, 0>: Unpin,
Irq<'d, PIO, 1>: Unpin,
Irq<'d, PIO, 2>: Unpin,
Irq<'d, PIO, 3>: Unpin,
StateMachine<'d, PIO, 0>: Unpin,
StateMachine<'d, PIO, 1>: Unpin,
StateMachine<'d, PIO, 2>: Unpin,
StateMachine<'d, PIO, 3>: Unpin,
PhantomData<&'d mut PIO>: Unpin,
impl<'d, PIO> UnsafeUnpin for Pio<'d, PIO>where
Common<'d, PIO>: UnsafeUnpin,
IrqFlags<'d, PIO>: UnsafeUnpin,
Irq<'d, PIO, 0>: UnsafeUnpin,
Irq<'d, PIO, 1>: UnsafeUnpin,
Irq<'d, PIO, 2>: UnsafeUnpin,
Irq<'d, PIO, 3>: UnsafeUnpin,
StateMachine<'d, PIO, 0>: UnsafeUnpin,
StateMachine<'d, PIO, 1>: UnsafeUnpin,
StateMachine<'d, PIO, 2>: UnsafeUnpin,
StateMachine<'d, PIO, 3>: UnsafeUnpin,
PhantomData<&'d mut PIO>: UnsafeUnpin,
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