pub struct RawStatusWord(pub u16);Expand description
Raw u16 newtype for the status word.
Tuple Fields§
§0: u16Trait Implementations§
Source§impl Cia402Status for RawStatusWord
impl Cia402Status for RawStatusWord
Source§fn ready_to_switch_on(&self) -> bool
fn ready_to_switch_on(&self) -> bool
Bit 0 — Ready to Switch On.
Source§fn switched_on(&self) -> bool
fn switched_on(&self) -> bool
Bit 1 — Switched On.
Source§fn operation_enabled(&self) -> bool
fn operation_enabled(&self) -> bool
Bit 2 — Operation Enabled.
Source§fn voltage_enabled(&self) -> bool
fn voltage_enabled(&self) -> bool
Bit 4 — Voltage Enabled.
Source§fn quick_stop_active(&self) -> bool
fn quick_stop_active(&self) -> bool
Bit 5 — Quick Stop Active.
Source§fn switch_on_disabled(&self) -> bool
fn switch_on_disabled(&self) -> bool
Bit 6 — Switch On Disabled.
Source§fn target_reached(&self) -> bool
fn target_reached(&self) -> bool
Bit 10 — Target Reached.
Source§fn state(&self) -> Cia402State
fn state(&self) -> Cia402State
Decode the CiA 402 state machine state from status word bits. Read more
Source§impl Clone for RawStatusWord
impl Clone for RawStatusWord
Source§fn clone(&self) -> RawStatusWord
fn clone(&self) -> RawStatusWord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RawStatusWord
impl Debug for RawStatusWord
Source§impl Default for RawStatusWord
impl Default for RawStatusWord
Source§fn default() -> RawStatusWord
fn default() -> RawStatusWord
Returns the “default value” for a type. Read more
Source§impl HomingStatus for RawStatusWord
impl HomingStatus for RawStatusWord
Source§fn homing_target_reached(&self) -> bool
fn homing_target_reached(&self) -> bool
Bit 10 — Target Reached: homing target position reached.
Source§fn homing_attained(&self) -> bool
fn homing_attained(&self) -> bool
Bit 12 — Homing Attained: homing procedure completed successfully.
Source§fn homing_error(&self) -> bool
fn homing_error(&self) -> bool
Bit 13 — Homing Error: homing procedure failed.
Source§impl PpStatus for RawStatusWord
impl PpStatus for RawStatusWord
Source§fn pp_target_reached(&self) -> bool
fn pp_target_reached(&self) -> bool
Bit 10 — Target Reached: positioning move completed.
Source§fn internal_limit(&self) -> bool
fn internal_limit(&self) -> bool
Bit 11 — Internal Limit Active.
Source§fn set_point_acknowledge(&self) -> bool
fn set_point_acknowledge(&self) -> bool
Bit 12 — Set-Point Acknowledge: drive accepted the new set-point.
Source§fn following_error(&self) -> bool
fn following_error(&self) -> bool
Bit 13 — Following Error: position tracking error exceeded limit.
Source§impl PvStatus for RawStatusWord
impl PvStatus for RawStatusWord
Source§fn pv_target_reached(&self) -> bool
fn pv_target_reached(&self) -> bool
Bit 10 — Target Reached: actual velocity equals target velocity.
Source§fn pv_internal_limit(&self) -> bool
fn pv_internal_limit(&self) -> bool
Bit 11 — Internal Limit Active.
Source§fn speed_is_zero(&self) -> bool
fn speed_is_zero(&self) -> bool
Bit 12 — Speed: 0 = velocity != 0, 1 = velocity = 0.
Source§fn max_slippage_error(&self) -> bool
fn max_slippage_error(&self) -> bool
Bit 13 — Max Slippage Error (AC motors; not used by ClearPath-EC).
impl Copy for RawStatusWord
Auto Trait Implementations§
impl Freeze for RawStatusWord
impl RefUnwindSafe for RawStatusWord
impl Send for RawStatusWord
impl Sync for RawStatusWord
impl Unpin for RawStatusWord
impl UnsafeUnpin for RawStatusWord
impl UnwindSafe for RawStatusWord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more