[][src]Struct accel_stepper::MultiDriver

pub struct MultiDriver { /* fields omitted */ }

Controller for moving multiple axes in a coordinated fashion.

Methods

impl MultiDriver[src]

pub const MAX_DRIVERS: usize[src]

The maximum number of Drivers 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]

Poll the underlying Drivers, emitting steps to the provided Devices 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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]