Trait drv8825::traits::SetDirection[][src]

pub trait SetDirection {
    type Dir: OutputPin;
    type Error;

    pub const SETUP_TIME: Nanoseconds<u32>;

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

Implemented by drivers that support controlling the DIR signal

Associated Types

type Dir: OutputPin[src]

The type of the DIR pin

type Error[src]

The error that can occur while using this trait

Loading content...

Associated Constants

pub const SETUP_TIME: Nanoseconds<u32>[src]

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

Loading content...

Required methods

pub 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 as SetDirection>::Dir

type Error = <T as SetDirection>::Error

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...