[−][src]Struct step_dir::drivers::stspin220::STSPIN220
The STSPIN220 driver API
Users are not expected to use this API directly, except to create an
instance using STSPIN220::new
. Please check out
Driver
instead.
Implementations
impl STSPIN220<(), (), (), (), (), ()>
[src]
Trait Implementations
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> EnableDirectionControl<DirMode4> for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, ()> where
DirMode4: OutputPin<Error = OutputPinError>,
[src]
DirMode4: OutputPin<Error = OutputPinError>,
type WithDirectionControl = STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4>
The type of the driver after direction control has been enabled
fn enable_direction_control(
self,
dir_mode4: DirMode4
) -> Self::WithDirectionControl
[src]
self,
dir_mode4: DirMode4
) -> Self::WithDirectionControl
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> EnableStepControl<StepMode3> for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, (), DirMode4> where
StepMode3: OutputPin<Error = OutputPinError>,
[src]
StepMode3: OutputPin<Error = OutputPinError>,
type WithStepControl = STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4>
The type of the driver after direction control has been enabled
fn enable_step_control(self, step_mode3: StepMode3) -> Self::WithStepControl
[src]
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> EnableStepModeControl<(StandbyReset, Mode1, Mode2)> for STSPIN220<EnableFault, (), (), (), StepMode3, DirMode4> where
StandbyReset: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
StepMode3: OutputPin<Error = OutputPinError>,
DirMode4: OutputPin<Error = OutputPinError>,
[src]
StandbyReset: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
StepMode3: OutputPin<Error = OutputPinError>,
DirMode4: OutputPin<Error = OutputPinError>,
type WithStepModeControl = STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4>
The type of the driver after microstepping mode control has been enabled
fn enable_step_mode_control(
self,
(standby_reset, mode1, mode2): (StandbyReset, Mode1, Mode2)
) -> Self::WithStepModeControl
[src]
self,
(standby_reset, mode1, mode2): (StandbyReset, Mode1, Mode2)
) -> Self::WithStepModeControl
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> SetDirection for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
DirMode4: OutputPin<Error = OutputPinError>,
[src]
DirMode4: OutputPin<Error = OutputPinError>,
const SETUP_TIME: Nanoseconds
[src]
type Dir = DirMode4
The type of the DIR pin
type Error = OutputPinError
The error that can occur while using this trait
fn dir(&mut self) -> &mut Self::Dir
[src]
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> SetStepMode for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
StandbyReset: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
StepMode3: OutputPin<Error = OutputPinError>,
DirMode4: OutputPin<Error = OutputPinError>,
[src]
StandbyReset: OutputPin<Error = OutputPinError>,
Mode1: OutputPin<Error = OutputPinError>,
Mode2: OutputPin<Error = OutputPinError>,
StepMode3: OutputPin<Error = OutputPinError>,
DirMode4: OutputPin<Error = OutputPinError>,
const SETUP_TIME: Nanoseconds
[src]
const HOLD_TIME: Nanoseconds
[src]
type Error = OutputPinError
The error that can occur while using this trait
type StepMode = StepMode256
The type that defines the microstepping mode Read more
fn apply_mode_config(
&mut self,
step_mode: Self::StepMode
) -> Result<(), Self::Error>
[src]
&mut self,
step_mode: Self::StepMode
) -> Result<(), Self::Error>
fn enable_driver(&mut self) -> Result<(), Self::Error>
[src]
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4, OutputPinError> Step for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
StepMode3: OutputPin<Error = OutputPinError>,
[src]
StepMode3: OutputPin<Error = OutputPinError>,
const PULSE_LENGTH: Nanoseconds
[src]
type Step = StepMode3
The type of the STEP pin
type Error = OutputPinError
The error that can occur while using this trait
fn step(&mut self) -> &mut Self::Step
[src]
Auto Trait Implementations
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> Send for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
DirMode4: Send,
EnableFault: Send,
Mode1: Send,
Mode2: Send,
StandbyReset: Send,
StepMode3: Send,
[src]
DirMode4: Send,
EnableFault: Send,
Mode1: Send,
Mode2: Send,
StandbyReset: Send,
StepMode3: Send,
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> Sync for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
DirMode4: Sync,
EnableFault: Sync,
Mode1: Sync,
Mode2: Sync,
StandbyReset: Sync,
StepMode3: Sync,
[src]
DirMode4: Sync,
EnableFault: Sync,
Mode1: Sync,
Mode2: Sync,
StandbyReset: Sync,
StepMode3: Sync,
impl<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> Unpin for STSPIN220<EnableFault, StandbyReset, Mode1, Mode2, StepMode3, DirMode4> where
DirMode4: Unpin,
EnableFault: Unpin,
Mode1: Unpin,
Mode2: Unpin,
StandbyReset: Unpin,
StepMode3: Unpin,
[src]
DirMode4: Unpin,
EnableFault: Unpin,
Mode1: Unpin,
Mode2: Unpin,
StandbyReset: Unpin,
StepMode3: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,