Trait drv8825::traits::EnableDirectionControl [−][src]
Enable direction control for a driver
The Resources
type parameter defines the hardware resources required for
direction control.
Associated Types
type WithDirectionControl: SetDirection
[src]
The type of the driver after direction control has been enabled
Required methods
pub fn enable_direction_control(
self,
res: Resources
) -> Self::WithDirectionControl
[src]
self,
res: Resources
) -> Self::WithDirectionControl
Enable direction control
Implementors
impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableDirectionControl<Dir> for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> where
Dir: OutputPin<Error = OutputPinError>,
[src]
Dir: OutputPin<Error = OutputPinError>,
type WithDirectionControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>
pub fn enable_direction_control(
self,
dir: Dir
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> as EnableDirectionControl<Dir>>::WithDirectionControl
[src]
self,
dir: Dir
) -> <DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, ()> as EnableDirectionControl<Dir>>::WithDirectionControl