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§
sourcetype PinFunction: Function
type PinFunction: Function
Associated Pin Function.
Required Methods§
Provided Methods§
sourcefn split(
self,
resets: &mut RESETS
) -> (PIO<Self>, UninitStateMachine<(Self, SM0)>, UninitStateMachine<(Self, SM1)>, UninitStateMachine<(Self, SM2)>, UninitStateMachine<(Self, SM3)>)
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.