Trait stepper::traits::EnableMotionControl [−][src]
Enable motion control for a driver
The Resources
type parameter defines the hardware resources required for
motion control.
Associated Types
type WithMotionControl: MotionControl
[src]
The type of the driver after motion control has been enabled
Required methods
fn enable_motion_control(self, res: Resources) -> Self::WithMotionControl
[src]
Enable step control
Implementors
impl<Driver, Timer, Profile, Convert> EnableMotionControl<(Timer, Profile, Convert)> for Driver where
Driver: SetDirection + Step,
Profile: MotionProfile,
Timer: CountDown,
Profile::Velocity: Copy,
Convert: DelayToTicks<Profile::Delay, Ticks = Timer::Time>,
Convert::Ticks: TryFrom<Nanoseconds> + Sub<Output = Convert::Ticks>,
[src]
Driver: SetDirection + Step,
Profile: MotionProfile,
Timer: CountDown,
Profile::Velocity: Copy,
Convert: DelayToTicks<Profile::Delay, Ticks = Timer::Time>,
Convert::Ticks: TryFrom<Nanoseconds> + Sub<Output = Convert::Ticks>,
type WithMotionControl = SoftwareMotionControl<Driver, Timer, Profile, Convert>
fn enable_motion_control(
self,
(timer, profile, convert): (Timer, Profile, Convert)
) -> Self::WithMotionControl
[src]
self,
(timer, profile, convert): (Timer, Profile, Convert)
) -> Self::WithMotionControl