Trait rp2040_hal::pio::PIOExt

source ·
pub trait PIOExt: Deref<Target = RegisterBlock> + SubsystemReset + Sized + 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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl PIOExt for PIO0

source§

impl PIOExt for PIO1

Implementors§