Struct drv8825::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
pub fn enable_direction_control(
self,
dir: Dir
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> as EnableDirectionControl<Dir>>::WithDirectionControl
[src]
self,
dir: Dir
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> as EnableDirectionControl<Dir>>::WithDirectionControl
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
pub fn enable_step_control(
self,
step: Step
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, (), Dir> as EnableStepControl<Step>>::WithStepControl
[src]
self,
step: Step
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, (), Dir> as EnableStepControl<Step>>::WithStepControl
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
pub fn enable_step_mode_control(
self,
(Reset, Mode0, Mode1, Mode2)
) -> <DRV8825<(), (), (), (), (), (), (), Step, Dir> as EnableStepModeControl<(Reset, Mode0, Mode1, Mode2)>>::WithStepModeControl
[src]
self,
(Reset, Mode0, Mode1, Mode2)
) -> <DRV8825<(), (), (), (), (), (), (), Step, Dir> as EnableStepModeControl<(Reset, Mode0, Mode1, Mode2)>>::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>,
pub const SETUP_TIME: Nanoseconds<u32>
[src]
type Dir = Dir
The type of the DIR pin
type Error = OutputPinError
The error that can occur while using this trait
pub fn dir(
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetDirection>::Dir
[src]
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetDirection>::Dir
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>,
pub const SETUP_TIME: Nanoseconds<u32>
[src]
pub const HOLD_TIME: Nanoseconds<u32>
[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
pub fn apply_mode_config(
&mut self,
step_mode: <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::StepMode
) -> Result<(), <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::Error>
[src]
&mut self,
step_mode: <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::StepMode
) -> Result<(), <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::Error>
pub fn enable_driver(
&mut self
) -> Result<(), <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::Error>
[src]
&mut self
) -> Result<(), <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetStepMode>::Error>
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>,
pub const PULSE_LENGTH: Nanoseconds<u32>
[src]
type Step = Step
The type of the STEP pin
type Error = OutputPinError
The error that can occur while using this trait
pub fn step(
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as Step>::Step
[src]
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as Step>::Step
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>,