pub struct PioStepper<'d, T: Instance, const SM: usize> { /* private fields */ }Expand description
Pio backed Stepper driver
Implementations§
Source§impl<'d, T: Instance, const SM: usize> PioStepper<'d, T, SM>
impl<'d, T: Instance, const SM: usize> PioStepper<'d, T, SM>
Sourcepub fn new(
pio: &mut Common<'d, T>,
sm: StateMachine<'d, T, SM>,
pin0: Peri<'d, impl PioPin>,
pin1: Peri<'d, impl PioPin>,
pin2: Peri<'d, impl PioPin>,
pin3: Peri<'d, impl PioPin>,
irq: Irq<'d, T, SM>,
program: &PioStepperProgram<'d, T>,
) -> Self
pub fn new( pio: &mut Common<'d, T>, sm: StateMachine<'d, T, SM>, pin0: Peri<'d, impl PioPin>, pin1: Peri<'d, impl PioPin>, pin2: Peri<'d, impl PioPin>, pin3: Peri<'d, impl PioPin>, irq: Irq<'d, T, SM>, program: &PioStepperProgram<'d, T>, ) -> Self
Configure a state machine to drive a stepper
Sourcepub fn set_frequency(&mut self, freq: u32)
pub fn set_frequency(&mut self, freq: u32)
Set pulse frequency
Auto Trait Implementations§
impl<'d, T, const SM: usize> !UnwindSafe for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> Freeze for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> RefUnwindSafe for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> Send for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> Sync for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> Unpin for PioStepper<'d, T, SM>
impl<'d, T, const SM: usize> UnsafeUnpin for PioStepper<'d, T, SM>
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