pub struct RawControlWord(pub u16);Expand description
Raw u16 newtype — this IS the PDO data, no conversion needed
Tuple Fields§
§0: u16Trait Implementations§
Source§impl Cia402Control for RawControlWord
impl Cia402Control for RawControlWord
Source§fn set_switch_on(&mut self, v: bool)
fn set_switch_on(&mut self, v: bool)
Set bit 0 — Switch On.
Source§fn set_enable_voltage(&mut self, v: bool)
fn set_enable_voltage(&mut self, v: bool)
Set bit 1 — Enable Voltage.
Source§fn set_quick_stop(&mut self, v: bool)
fn set_quick_stop(&mut self, v: bool)
Set bit 2 — Quick Stop.
Source§fn set_enable_operation(&mut self, v: bool)
fn set_enable_operation(&mut self, v: bool)
Set bit 3 — Enable Operation.
Source§fn set_fault_reset(&mut self, v: bool)
fn set_fault_reset(&mut self, v: bool)
Set bit 7 — Fault Reset.
Source§fn cmd_shutdown(&mut self)
fn cmd_shutdown(&mut self)
Shutdown command (transitions 2, 6, 8).
Target state: Ready to Switch On.
Source§fn cmd_switch_on(&mut self)
fn cmd_switch_on(&mut self)
Switch On command (transition 3).
Target state: Switched On.
Source§fn cmd_enable_operation(&mut self)
fn cmd_enable_operation(&mut self)
Enable Operation command (transition 4, or combined 2+3+4).
Target state: Operation Enabled.
Source§fn cmd_disable_operation(&mut self)
fn cmd_disable_operation(&mut self)
Disable Operation command (transition 5).
Target state: Switched On.
Source§fn cmd_disable_voltage(&mut self)
fn cmd_disable_voltage(&mut self)
Disable Voltage command (transitions 7, 9, 10, 12).
Target state: Switch On Disabled.
Source§fn cmd_quick_stop(&mut self)
fn cmd_quick_stop(&mut self)
Quick Stop command (transition 11).
Target state: Quick Stop Active.
Source§fn cmd_fault_reset(&mut self)
fn cmd_fault_reset(&mut self)
Fault Reset command (transition 15, rising edge on bit 7).
Drive must be in Fault state. Transitions to Switch On Disabled.
Source§fn cmd_clear_fault_reset(&mut self)
fn cmd_clear_fault_reset(&mut self)
Clear the Fault Reset command (transition 15, rising edge on bit 7).
Source§impl Clone for RawControlWord
impl Clone for RawControlWord
Source§fn clone(&self) -> RawControlWord
fn clone(&self) -> RawControlWord
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 RawControlWord
impl Debug for RawControlWord
Source§impl Default for RawControlWord
impl Default for RawControlWord
Source§fn default() -> RawControlWord
fn default() -> RawControlWord
Returns the “default value” for a type. Read more
Source§impl HomingControl for RawControlWord
impl HomingControl for RawControlWord
Source§impl PpControl for RawControlWord
impl PpControl for RawControlWord
Source§fn set_new_set_point(&mut self, v: bool)
fn set_new_set_point(&mut self, v: bool)
Bit 4 — New Set-Point: rising edge starts a new positioning move.
Source§fn set_change_set_immediately(&mut self, v: bool)
fn set_change_set_immediately(&mut self, v: bool)
Bit 5 — Change Set Immediately: if true, interrupt current move.
Source§fn set_relative(&mut self, v: bool)
fn set_relative(&mut self, v: bool)
Bit 6 — Relative: target position is relative to current.
Source§impl PvControl for RawControlWord
impl PvControl for RawControlWord
impl Copy for RawControlWord
Auto Trait Implementations§
impl Freeze for RawControlWord
impl RefUnwindSafe for RawControlWord
impl Send for RawControlWord
impl Sync for RawControlWord
impl Unpin for RawControlWord
impl UnsafeUnpin for RawControlWord
impl UnwindSafe for RawControlWord
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