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

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 Driver 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 direction 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
[src]

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]

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]

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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.