Struct stepper::drivers::drv8825::DRV8825[][src]

pub struct DRV8825<Enable, Fault, Sleep, Reset, Mode0, Mode1, Mode2, Step, Dir> { /* fields omitted */ }

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]

pub fn new() -> Self[src]

Create a new instance of DRV8825

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]

type WithDirectionControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>

The type of the driver after direction control has been enabled

impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableStepControl<Step> for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, (), Dir> where
    Step: OutputPin<Error = OutputPinError>, 
[src]

type WithStepControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>

The type of the driver after step control has been enabled

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]

type WithStepModeControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>

The type of the driver after microstepping mode control has been enabled

impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> SetDirection for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
    Dir: OutputPin<Error = OutputPinError>, 
[src]

type Dir = Dir

The type of the DIR pin

type Error = OutputPinError

The error that can occur while using this trait

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]

type Error = OutputPinError

The error that can occur while using this trait

type StepMode = StepMode32

The type that defines the microstepping mode Read more

impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> Step for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
    Step: OutputPin<Error = OutputPinError>, 
[src]

type Step = Step

The type of the STEP pin

type Error = OutputPinError

The error that can occur while using this trait

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]