Trait EnableStepModeControl

Source
pub trait EnableStepModeControl<Resources> {
    type WithStepModeControl: SetStepMode;

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

Enable microstepping mode control for a driver

The Resources type parameter defines the hardware resources required for controlling microstepping mode.

Required Associated Types§

Source

type WithStepModeControl: SetStepMode

The type of the driver after microstepping mode control has been enabled

Required Methods§

Source

fn enable_step_mode_control(self, res: Resources) -> Self::WithStepModeControl

Enable microstepping mode control

Implementors§

Source§

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

Source§

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