#[repr(C)]pub enum PamojaStepDrive {
Wave = 0,
FullStep = 1,
HalfStep = 2,
}Expand description
A stepper drive pattern, trading torque, smoothness, and resolution.
Variants§
Wave = 0
One coil energised at a time: four steps, least torque and least power.
FullStep = 1
Two adjacent coils at a time: four steps, most torque.
HalfStep = 2
Alternating one and two coils: eight steps, double resolution.
Trait Implementations§
Source§impl Clone for PamojaStepDrive
impl Clone for PamojaStepDrive
Source§fn clone(&self) -> PamojaStepDrive
fn clone(&self) -> PamojaStepDrive
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PamojaStepDrive
Source§impl Debug for PamojaStepDrive
impl Debug for PamojaStepDrive
impl Eq for PamojaStepDrive
Source§impl From<PamojaStepDrive> for Drive
impl From<PamojaStepDrive> for Drive
Source§fn from(value: PamojaStepDrive) -> Self
fn from(value: PamojaStepDrive) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PamojaStepDrive
impl PartialEq for PamojaStepDrive
Source§fn eq(&self, other: &PamojaStepDrive) -> bool
fn eq(&self, other: &PamojaStepDrive) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PamojaStepDrive
Auto Trait Implementations§
impl Freeze for PamojaStepDrive
impl RefUnwindSafe for PamojaStepDrive
impl Send for PamojaStepDrive
impl Sync for PamojaStepDrive
impl Unpin for PamojaStepDrive
impl UnsafeUnpin for PamojaStepDrive
impl UnwindSafe for PamojaStepDrive
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