PIOExt

Trait PIOExt 

Source
pub trait PIOExt:
    Sized
    + Deref<Target = RegisterBlock>
    + SubsystemReset
    + Send
    + Sealed {
    type PinFunction: Function;

    // Required method
    fn id() -> usize;

    // Provided method
    fn split(
        self,
        resets: &mut RESETS,
    ) -> (PIO<Self>, UninitStateMachine<(Self, SM0)>, UninitStateMachine<(Self, SM1)>, UninitStateMachine<(Self, SM2)>, UninitStateMachine<(Self, SM3)>) { ... }
}
Expand description

PIO Instance

Required Associated Types§

Source

type PinFunction: Function

Associated Pin Function.

Required Methods§

Source

fn id() -> usize

Number of this PIO (0..1).

Provided Methods§

Source

fn split( self, resets: &mut RESETS, ) -> (PIO<Self>, UninitStateMachine<(Self, SM0)>, UninitStateMachine<(Self, SM1)>, UninitStateMachine<(Self, SM2)>, UninitStateMachine<(Self, SM3)>)

Create a new PIO wrapper and split the state machines into individual objects.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§