Trait drv8825::traits::SetStepMode
source · [−]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
Required Associated Constants
const SETUP_TIME: Duration<u32, 1, 1000000000>
const SETUP_TIME: Duration<u32, 1, 1000000000>
The time the mode signals need to be held before 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.
fn enable_driver(&mut self) -> Result<(), Self::Error>
fn enable_driver(&mut self) -> Result<(), Self::Error>
Re-enable the driver after the mode has been set