Trait drv8825::traits::SetDirection [−][src]
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
Associated Constants
pub const SETUP_TIME: Nanoseconds<u32>
[src]
The time that the DIR signal must be held for a change to apply
Required methods
Loading content...Implementors
impl<'r, T> SetDirection for RefMut<'r, T> where
T: SetDirection,
[src]
T: SetDirection,
pub const SETUP_TIME: Nanoseconds<u32>
[src]
type Dir = <T as SetDirection>::Dir
type Error = <T as SetDirection>::Error
pub fn dir(&mut self) -> &mut <RefMut<'r, T> as SetDirection>::Dir
[src]
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> SetDirection for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> where
Dir: OutputPin<Error = OutputPinError>,
[src]
Dir: OutputPin<Error = OutputPinError>,
pub const SETUP_TIME: Nanoseconds<u32>
[src]
type Dir = Dir
type Error = OutputPinError
pub fn dir(
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetDirection>::Dir
[src]
&mut self
) -> &mut <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir> as SetDirection>::Dir