pub struct ErrorRegister(pub u8);Expand description
The error register (object 0x1001): a bitfield summarising which error
classes are currently active on the node (CiA 301 §7.5.2.2).
Tuple Fields§
§0: u8Implementations§
Source§impl ErrorRegister
impl ErrorRegister
Sourcepub const GENERIC: u8 = 0x01
pub const GENERIC: u8 = 0x01
Bit 0 — a generic error is present. Set whenever any other bit is.
Sourcepub const TEMPERATURE: u8 = 0x08
pub const TEMPERATURE: u8 = 0x08
Bit 3 — temperature.
Sourcepub const COMMUNICATION: u8 = 0x10
pub const COMMUNICATION: u8 = 0x10
Bit 4 — communication (overrun, error state).
Sourcepub const DEVICE_PROFILE: u8 = 0x20
pub const DEVICE_PROFILE: u8 = 0x20
Bit 5 — device-profile-specific.
Sourcepub const MANUFACTURER: u8 = 0x80
pub const MANUFACTURER: u8 = 0x80
Bit 7 — manufacturer-specific. (Bit 6 is reserved, always 0.)
Sourcepub const NONE: ErrorRegister
pub const NONE: ErrorRegister
An error register with no bits set (no active error).
Trait Implementations§
Source§impl Clone for ErrorRegister
impl Clone for ErrorRegister
Source§fn clone(&self) -> ErrorRegister
fn clone(&self) -> ErrorRegister
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 ErrorRegister
Source§impl Debug for ErrorRegister
impl Debug for ErrorRegister
Source§impl Default for ErrorRegister
impl Default for ErrorRegister
Source§fn default() -> ErrorRegister
fn default() -> ErrorRegister
Returns the “default value” for a type. Read more
impl Eq for ErrorRegister
Source§impl PartialEq for ErrorRegister
impl PartialEq for ErrorRegister
impl StructuralPartialEq for ErrorRegister
Auto Trait Implementations§
impl Freeze for ErrorRegister
impl RefUnwindSafe for ErrorRegister
impl Send for ErrorRegister
impl Sync for ErrorRegister
impl Unpin for ErrorRegister
impl UnsafeUnpin for ErrorRegister
impl UnwindSafe for ErrorRegister
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