[−][src]Struct accel_stepper::MultiDriver
Controller for moving multiple axes in a coordinated fashion.
Methods
impl MultiDriver
[src]
pub const MAX_DRIVERS: usize
[src]
The maximum number of Driver
s that a MultiDriver
can manage when
compiled without the std
feature.
pub fn new() -> MultiDriver
[src]
pub fn push_driver(&mut self, driver: Driver)
[src]
Add a new Driver
to the list of synchronised axes managed by the
MultiDriver
.
Panics
When compiling without the std
feature flag, the MultiDriver
can
only manage up to MultiDriver::MAX_DRIVERS
drivers.
pub fn drivers(&self) -> &[Driver]
[src]
pub fn drivers_mut(&mut self) -> &mut [Driver]
[src]
pub fn move_to(&mut self, positions: &[i64])
[src]
Set the target positions of all managed steppers.
Panics
The number of managed steppers should be the same as the number of positions.
pub fn poll<D, C>(
&mut self,
devices: &mut [D],
clock: &C
) -> Result<(), D::Error> where
D: Device,
C: SystemClock,
[src]
&mut self,
devices: &mut [D],
clock: &C
) -> Result<(), D::Error> where
D: Device,
C: SystemClock,
Poll the underlying Driver
s, emitting steps to the provided
Device
s when necessary.
Panics
The number of managed steppers should be the same as the number of devices.
pub fn is_running(&self) -> bool
[src]
Are any of the managed steppers still running?
Auto Trait Implementations
impl Unpin for MultiDriver
impl Sync for MultiDriver
impl Send for MultiDriver
impl RefUnwindSafe for MultiDriver
impl UnwindSafe for MultiDriver
Blanket Implementations
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,