Trait stepper::traits::EnableMotionControl[][src]

pub trait EnableMotionControl<Resources> {
    type WithMotionControl: MotionControl;
    fn enable_motion_control(self, res: Resources) -> Self::WithMotionControl;
}

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

Loading content...

Required methods

fn enable_motion_control(self, res: Resources) -> Self::WithMotionControl[src]

Enable step control

Loading content...

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]

type WithMotionControl = SoftwareMotionControl<Driver, Timer, Profile, Convert>

Loading content...