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§
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.
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.