pub struct PioStepDirProgram<'a, PIO: Instance> { /* private fields */ }Expand description
Program loaded into PIO instruction memory for STEP pulse generation.
Implementations§
Source§impl<'a, PIO: Instance> PioStepDirProgram<'a, PIO>
impl<'a, PIO: Instance> PioStepDirProgram<'a, PIO>
Sourcepub fn new(common: &mut Common<'a, PIO>) -> Self
pub fn new(common: &mut Common<'a, PIO>) -> Self
Load the STEP pulse program into the given PIO using the default timing.
Sourcepub fn new_with_timing(
common: &mut Common<'a, PIO>,
timing: StepPulseTiming,
) -> Self
pub fn new_with_timing( common: &mut Common<'a, PIO>, timing: StepPulseTiming, ) -> Self
Load the STEP pulse program into the given PIO using the selected timing.
Sourcepub fn cycles_per_pulse(&self) -> u32
pub fn cycles_per_pulse(&self) -> u32
Return the cycles per pulse for this program.
Auto Trait Implementations§
impl<'a, PIO> !UnwindSafe for PioStepDirProgram<'a, PIO>
impl<'a, PIO> Freeze for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: Freeze,
impl<'a, PIO> RefUnwindSafe for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: RefUnwindSafe,
impl<'a, PIO> Send for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: Send,
impl<'a, PIO> Sync for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: Sync,
impl<'a, PIO> Unpin for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: Unpin,
impl<'a, PIO> UnsafeUnpin for PioStepDirProgram<'a, PIO>where
LoadedProgram<'a, PIO>: UnsafeUnpin,
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