pub enum NmtCommand {
StartRemoteNode = 1,
StopRemoteNode = 2,
EnterPreOperational = 128,
ResetNode = 129,
ResetCommunication = 130,
}Expand description
An NMT node-control command from the master (CiA 301 §7.2.8.2).
The discriminant is the command specifier carried in byte 0 of an
0x000 frame.
Variants§
StartRemoteNode = 1
Start remote node → Operational.
StopRemoteNode = 2
Stop remote node → Stopped.
EnterPreOperational = 128
Enter pre-operational → Pre-operational.
ResetNode = 129
Reset node → re-enter Initialising (application + communication).
ResetCommunication = 130
Reset communication → re-enter Initialising (communication only).
Implementations§
Source§impl NmtCommand
impl NmtCommand
Sourcepub const fn from_byte(byte: u8) -> Result<Self>
pub const fn from_byte(byte: u8) -> Result<Self>
Decode a command specifier byte.
Returns Error::UnexpectedCommand for an unrecognised specifier.
Trait Implementations§
Source§impl Clone for NmtCommand
impl Clone for NmtCommand
Source§fn clone(&self) -> NmtCommand
fn clone(&self) -> NmtCommand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NmtCommand
Source§impl Debug for NmtCommand
impl Debug for NmtCommand
impl Eq for NmtCommand
Source§impl PartialEq for NmtCommand
impl PartialEq for NmtCommand
impl StructuralPartialEq for NmtCommand
Auto Trait Implementations§
impl Freeze for NmtCommand
impl RefUnwindSafe for NmtCommand
impl Send for NmtCommand
impl Sync for NmtCommand
impl Unpin for NmtCommand
impl UnsafeUnpin for NmtCommand
impl UnwindSafe for NmtCommand
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