pub trait AxisHandle {
// Required methods
fn position(&self) -> f64;
fn config(&self) -> &AxisConfig;
fn move_relative(&mut self, distance: f64, vel: f64, accel: f64, decel: f64);
fn halt(&mut self);
fn is_busy(&self) -> bool;
fn is_error(&self) -> bool;
fn motor_on(&self) -> bool;
}Expand description
High-level interface for a motion axis.
This trait provides a unified interface for both raw Axis
objects and the higher-level generated AxisHandle structs used in the
control program.
Required Methods§
Sourcefn config(&self) -> &AxisConfig
fn config(&self) -> &AxisConfig
Read-only access to the axis configuration.
Implementations on Foreign Types§
Source§impl<'a, V: AxisView> AxisHandle for (&'a mut Axis, &'a mut V)
Blanket implementation to allow old-style (Axis, AxisView) calls.
impl<'a, V: AxisView> AxisHandle for (&'a mut Axis, &'a mut V)
Blanket implementation to allow old-style (Axis, AxisView) calls.