Trait stepper::traits::SetDirection[][src]

pub trait SetDirection {
    type Dir: OutputPin<Error = Self::Error>;
    type Error;

    const SETUP_TIME: Nanoseconds;

    fn dir(&mut self) -> &mut Self::Dir;
}

Implemented by drivers that support controlling the DIR signal

Associated Types

type Dir: OutputPin<Error = Self::Error>[src]

The type of the DIR pin

type Error[src]

The error that can occur while using this trait

Loading content...

Associated Constants

const SETUP_TIME: Nanoseconds[src]

The time that the DIR signal must be held for a change to apply

Loading content...

Required methods

fn dir(&mut self) -> &mut Self::Dir[src]

Provides access to the DIR pin

Loading content...

Implementors

impl<'r, T> SetDirection for RefMut<'r, T> where
    T: SetDirection
[src]

type Dir = T::Dir

type Error = T::Error

impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> SetDirection for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
    DirMode4: OutputPin<Error = OutputPinError>, 
[src]

type Dir = DirMode4

type Error = OutputPinError

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

type Error = OutputPinError

Loading content...