Trait EnableStepControl

Source
pub trait EnableStepControl<Resources> {
    type WithStepControl: Step;

    // Required method
    fn enable_step_control(self, res: Resources) -> Self::WithStepControl;
}
Expand description

Enable step control for a driver

The Resources type parameter defines the hardware resources required for step control.

Required Associated Types§

Source

type WithStepControl: Step

The type of the driver after step control has been enabled

Required Methods§

Source

fn enable_step_control(self, res: Resources) -> Self::WithStepControl

Enable step control

Implementors§

Source§

impl<Reset, Mode0, Mode1, Mode2, Step, Dir, OutputPinError> EnableStepControl<Step> for DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, (), Dir>
where Step: OutputPin<Error = OutputPinError>,

Source§

type WithStepControl = DRV8825<(), (), (), Reset, Mode0, Mode1, Mode2, Step, Dir>