pub struct PioBatch<'a, PIO: Instance> { /* private fields */ }Expand description
Represents multiple state machines in a single type.
Implementations§
Source§impl<'a, PIO: Instance> PioBatch<'a, PIO>
impl<'a, PIO: Instance> PioBatch<'a, PIO>
Sourcepub fn restart<const SM: usize>(&mut self, _sm: &mut StateMachine<'a, PIO, SM>)
pub fn restart<const SM: usize>(&mut self, _sm: &mut StateMachine<'a, PIO, SM>)
Restart a state machine’s clock divider from an initial phase of 0.
Sourcepub fn set_enable<const SM: usize>(
&mut self,
_sm: &mut StateMachine<'a, PIO, SM>,
enable: bool,
)
pub fn set_enable<const SM: usize>( &mut self, _sm: &mut StateMachine<'a, PIO, SM>, enable: bool, )
Enable a specific state machine.
Trait Implementations§
Auto Trait Implementations§
impl<'a, PIO> Freeze for PioBatch<'a, PIO>
impl<'a, PIO> RefUnwindSafe for PioBatch<'a, PIO>
impl<'a, PIO> Send for PioBatch<'a, PIO>
impl<'a, PIO> Sync for PioBatch<'a, PIO>
impl<'a, PIO> Unpin for PioBatch<'a, PIO>
impl<'a, PIO> UnsafeUnpin for PioBatch<'a, PIO>
impl<'a, PIO> UnwindSafe for PioBatch<'a, PIO>
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