[−][src]Struct step_dir::drivers::drv8825::DRV8825
The DRV8825 driver API
Users are not expected to use this API directly, except to create an
instance using DRV8825::new
. Please check out Driver
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 direction 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,
[src]
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,
[src]
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,
[src]
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> 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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,