Trait drv8825::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
pub 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
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]
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,
type WithMotionControl = SoftwareMotionControl<Driver, Timer, Profile, Convert>
pub fn enable_motion_control(
self,
(Timer, Profile, Convert)
) -> <Driver as EnableMotionControl<(Timer, Profile, Convert)>>::WithMotionControl
[src]
self,
(Timer, Profile, Convert)
) -> <Driver as EnableMotionControl<(Timer, Profile, Convert)>>::WithMotionControl