Trait drv8825::traits::Step[][src]

pub trait Step {
    type Step: OutputPin;
    type Error;

    pub const PULSE_LENGTH: Nanoseconds<u32>;

    pub fn step(&mut self) -> &mut Self::Step;
}

Implemented by drivers that support controlling the STEP signal

Associated Types

type Step: OutputPin[src]

The type of the STEP pin

type Error[src]

The error that can occur while using this trait

Loading content...

Associated Constants

pub const PULSE_LENGTH: Nanoseconds<u32>[src]

The minimum length of a STEP pulse

Loading content...

Required methods

pub fn step(&mut self) -> &mut Self::Step[src]

Provides access to the STEP pin

Loading content...

Implementors

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

type Step = <T as Step>::Step

type Error = <T as Step>::Error

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

type Error = OutputPinError

Loading content...