Trait drv8825::traits::EnableMotionControl[][src]

pub trait EnableMotionControl<Resources> {
    type WithMotionControl: MotionControl;
    pub 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

pub 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
    Timer: CountDown,
    Driver: SetDirection + Step,
    Profile: MotionProfile,
    Convert: DelayToTicks<<Profile as MotionProfile>::Delay, Ticks = <Timer as CountDown>::Time>,
    <Profile as MotionProfile>::Velocity: Copy,
    <Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks: TryFrom<Nanoseconds<u32>>,
    <Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks: Sub<<Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks>,
    <<Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks as Sub<<Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks>>::Output == <Convert as DelayToTicks<<Profile as MotionProfile>::Delay>>::Ticks
[src]

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

Loading content...