Struct stepper::drivers::drv8825::DRV8825 [−][src]
The DRV8825 driver API
Users are not expected to use this API directly, except to create an
instance using DRV8825::new
. Please check out
Stepper
instead.
Implementations
impl DRV8825<(), (), (), (), (), (), (), (), ()>
[src]
Trait Implementations
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableDirectionControl<Dir> for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> where
Dir: OutputPin<Error = OutputPinError>,
[src]
Dir: OutputPin<Error = OutputPinError>,
type WithDirectionControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>
The type of the driver after direction control has been enabled
fn enable_direction_control(self, dir: Dir) -> Self::WithDirectionControl
[src]
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableStepControl<Step> for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, (), Dir> where
Step: OutputPin<Error = OutputPinError>,
[src]
Step: OutputPin<Error = OutputPinError>,
type WithStepControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>
The type of the driver after step control has been enabled
fn enable_step_control(self, step: Step) -> Self::WithStepControl
[src]
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableStepModeControl<(Reset, Mode0, Mode1, Mode2)> for DRV8825<(), (), (), (), (), (), (), Step, Dir> where
Reset: OutputPin<Error = OutputPinError>,
Mode0: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
[src]
Reset: OutputPin<Error = OutputPinError>,
Mode0: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
type WithStepModeControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>
The type of the driver after microstepping mode control has been enabled
fn enable_step_mode_control(
self,
(reset, mode0, mode1, mode2): (Reset, Mode0, Mode1, Mode2)
) -> Self::WithStepModeControl
[src]
self,
(reset, mode0, mode1, mode2): (Reset, Mode0, Mode1, Mode2)
) -> Self::WithStepModeControl
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> SetDirection for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
Dir: OutputPin<Error = OutputPinError>,
[src]
Dir: OutputPin<Error = OutputPinError>,
const SETUP_TIME: Nanoseconds
[src]
type Dir = Dir
The type of the DIR pin
type Error = OutputPinError
The error that can occur while using this trait
fn dir(&mut self) -> &mut Self::Dir
[src]
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> SetStepMode for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
Reset: OutputPin<Error = OutputPinError>,
Mode0: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
[src]
Reset: OutputPin<Error = OutputPinError>,
Mode0: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
const SETUP_TIME: Nanoseconds
[src]
const HOLD_TIME: Nanoseconds
[src]
type Error = OutputPinError
The error that can occur while using this trait
type StepMode = StepMode32
The type that defines the microstepping mode Read more
fn apply_mode_config(
&mut self,
step_mode: Self::StepMode
) -> Result<(), Self::Error>
[src]
&mut self,
step_mode: Self::StepMode
) -> Result<(), Self::Error>
fn enable_driver(&mut self) -> Result<(), Self::Error>
[src]
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> Step for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
Step: OutputPin<Error = OutputPinError>,
[src]
Step: OutputPin<Error = OutputPinError>,
const PULSE_LENGTH: Nanoseconds
[src]
type Step = Step
The type of the STEP pin
type Error = OutputPinError
The error that can occur while using this trait
fn step(&mut self) -> &mut Self::Step
[src]
Auto Trait Implementations
impl<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> Send for DRV8825<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> where
Dir: Send,
Enable: Send,
Fault: Send,
Mode0: Send,
Mode1: Send,
Mode2: Send,
Reset: Send,
Sleep: Send,
Step: Send,
Dir: Send,
Enable: Send,
Fault: Send,
Mode0: Send,
Mode1: Send,
Mode2: Send,
Reset: Send,
Sleep: Send,
Step: Send,
impl<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> Sync for DRV8825<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> where
Dir: Sync,
Enable: Sync,
Fault: Sync,
Mode0: Sync,
Mode1: Sync,
Mode2: Sync,
Reset: Sync,
Sleep: Sync,
Step: Sync,
Dir: Sync,
Enable: Sync,
Fault: Sync,
Mode0: Sync,
Mode1: Sync,
Mode2: Sync,
Reset: Sync,
Sleep: Sync,
Step: Sync,
impl<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> Unpin for DRV8825<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> where
Dir: Unpin,
Enable: Unpin,
Fault: Unpin,
Mode0: Unpin,
Mode1: Unpin,
Mode2: Unpin,
Reset: Unpin,
Sleep: Unpin,
Step: Unpin,
Dir: Unpin,
Enable: Unpin,
Fault: Unpin,
Mode0: Unpin,
Mode1: Unpin,
Mode2: Unpin,
Reset: Unpin,
Sleep: Unpin,
Step: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Az for T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CheckedAs for T
[src]
pub fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
[src]
T: CheckedCast<Dst>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<Src, Dst> LosslessTryInto<Dst> for Src where
Dst: LosslessTryFrom<Src>,
[src]
Dst: LosslessTryFrom<Src>,
pub fn lossless_try_into(self) -> Option<Dst>
[src]
impl<Src, Dst> LossyInto<Dst> for Src where
Dst: LossyFrom<Src>,
[src]
Dst: LossyFrom<Src>,
pub fn lossy_into(self) -> Dst
[src]
impl<T> OverflowingAs for T
[src]
pub fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
[src]
T: OverflowingCast<Dst>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> SaturatingAs for T
[src]
pub fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
[src]
T: SaturatingCast<Dst>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> UnwrappedAs for T
[src]
pub fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
[src]
T: UnwrappedCast<Dst>,
impl<T> WrappingAs for T
[src]
pub fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
[src]
T: WrappingCast<Dst>,