pub struct DQ542MA<Enable, Step, Dir> { /* private fields */ }
Expand description
The DQ542MA driver API
Users are not expected to use this API directly, except to create an
instance using DQ542MA::new
. Please check out
Stepper
instead.
Implementations
Trait Implementations
sourceimpl<Step, Dir, OutputPinError> EnableDirectionControl<Dir> for DQ542MA<(), Step, ()> where
Dir: OutputPin<Error = OutputPinError>,
impl<Step, Dir, OutputPinError> EnableDirectionControl<Dir> for DQ542MA<(), Step, ()> where
Dir: OutputPin<Error = OutputPinError>,
type WithDirectionControl = DQ542MA<(), Step, Dir>
type WithDirectionControl = DQ542MA<(), Step, Dir>
The type of the driver after direction control has been enabled
sourcefn enable_direction_control(self, dir: Dir) -> Self::WithDirectionControl
fn enable_direction_control(self, dir: Dir) -> Self::WithDirectionControl
Enable direction control
sourceimpl<Step, Dir, OutputPinError> EnableStepControl<Step> for DQ542MA<(), (), Dir> where
Step: OutputPin<Error = OutputPinError>,
impl<Step, Dir, OutputPinError> EnableStepControl<Step> for DQ542MA<(), (), Dir> where
Step: OutputPin<Error = OutputPinError>,
type WithStepControl = DQ542MA<(), Step, Dir>
type WithStepControl = DQ542MA<(), Step, Dir>
The type of the driver after step control has been enabled
sourcefn enable_step_control(self, step: Step) -> Self::WithStepControl
fn enable_step_control(self, step: Step) -> Self::WithStepControl
Enable step control
sourceimpl<Step, Dir, OutputPinError> SetDirection for DQ542MA<(), Step, Dir> where
Dir: OutputPin<Error = OutputPinError>,
impl<Step, Dir, OutputPinError> SetDirection for DQ542MA<(), Step, Dir> where
Dir: OutputPin<Error = OutputPinError>,
sourceconst SETUP_TIME: Nanoseconds = _
const SETUP_TIME: Nanoseconds = _
The time that the DIR signal must be held for a change to apply
type Dir = Dir
type Dir = Dir
The type of the DIR pin
type Error = Infallible
type Error = Infallible
The error that can occur while accessing the DIR pin
sourceimpl<Step, Dir, OutputPinError> Step for DQ542MA<(), Step, Dir> where
Step: OutputPin<Error = OutputPinError>,
impl<Step, Dir, OutputPinError> Step for DQ542MA<(), Step, Dir> where
Step: OutputPin<Error = OutputPinError>,
sourceconst PULSE_LENGTH: Nanoseconds = _
const PULSE_LENGTH: Nanoseconds = _
The minimum length of a STEP pulse
type Step = Step
type Step = Step
The type of the STEP pin
type Error = Infallible
type Error = Infallible
The error that can occur while accessing the STEP pin
Auto Trait Implementations
impl<Enable, Step, Dir> RefUnwindSafe for DQ542MA<Enable, Step, Dir> where
Dir: RefUnwindSafe,
Enable: RefUnwindSafe,
Step: RefUnwindSafe,
impl<Enable, Step, Dir> Send for DQ542MA<Enable, Step, Dir> where
Dir: Send,
Enable: Send,
Step: Send,
impl<Enable, Step, Dir> Sync for DQ542MA<Enable, Step, Dir> where
Dir: Sync,
Enable: Sync,
Step: Sync,
impl<Enable, Step, Dir> Unpin for DQ542MA<Enable, Step, Dir> where
Dir: Unpin,
Enable: Unpin,
Step: Unpin,
impl<Enable, Step, Dir> UnwindSafe for DQ542MA<Enable, Step, Dir> where
Dir: UnwindSafe,
Enable: UnwindSafe,
Step: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
sourcefn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
sourceimpl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
sourcefn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.