pub trait SetStepMode {
    type Error;
    type StepMode: StepMode;

    const SETUP_TIME: Duration<u32, 1, 1000000000>;
    const HOLD_TIME: Duration<u32, 1, 1000000000>;

    fn apply_mode_config(
        &mut self,
        step_mode: Self::StepMode
    ) -> Result<(), Self::Error>; fn enable_driver(&mut self) -> Result<(), Self::Error>; }
Expand description

Implemented by drivers that support controlling the microstepping mode

Required Associated Types

The error that can occur while using this trait

The type that defines the microstepping mode

This crate includes a number of enums that can be used for this purpose.

Required Associated Constants

The time the mode signals need to be held before re-enabling the driver

The time the mode signals need to be held after re-enabling the driver

Required Methods

Apply the new step mode configuration

Typically this puts the driver into reset and sets the mode pins according to the new step mode.

Re-enable the driver after the mode has been set

Implementors