pub enum LssCommandSpecifier {
Show 17 variants
SwitchModeGlobal = 4,
ConfigureNodeId = 17,
ConfigureBitTiming = 19,
ActivateBitTiming = 21,
StoreConfiguration = 23,
SwitchStateVendor = 64,
SwitchStateProduct = 65,
SwitchStateRev = 66,
SwitchStateSerial = 67,
SwitchStateResponse = 68,
IdentifySlave = 79,
FastScan = 81,
InquireVendor = 90,
InquireProduct = 91,
InquireRev = 92,
InquireSerial = 93,
InquireNodeId = 94,
}Expand description
Defines all possible values for the LSS command specifier field
Variants§
SwitchModeGlobal = 4
Used to change the LSS mode for all nodes on the bus
ConfigureNodeId = 17
Used to set the Node ID of the node(s) currently in Configuration mode
ConfigureBitTiming = 19
Used to set the bit timing (baud rate) of the node(s) currently in Configuration mode
ActivateBitTiming = 21
Used to command nodes to activate a new bit rate setting
StoreConfiguration = 23
Used to command nodes to store their config (node ID and bit rate) persistently
SwitchStateVendor = 64
Sends Vendor ID for activating an LSS node via its identity
SwitchStateProduct = 65
Sends Product Code for activating an LSS node via its identity
SwitchStateRev = 66
Sends Revision Number for activating an LSS node via its identity
SwitchStateSerial = 67
Sends Serial Number for activating an LSS node via its identity
This command should come last (after vendor, product, rev), as a node which recognizes its own identity will respond on receipt of this message
SwitchStateResponse = 68
Response by a node to indicate it has recognized its identity and is entering Configuration mode
IdentifySlave = 79
Response to a FastScan message
FastScan = 81
Message used for fast scan protocol to discover unconfigured nodes without knowing their identity
InquireVendor = 90
Used to inquire the vendor ID of a node in Configuration mode
InquireProduct = 91
Used to inquire the product code of a node in Configuration mode
InquireRev = 92
Used to inquire the revision number of a node in Configuration mode
InquireSerial = 93
Used to inquire the serial number of a node in Configuration mode
InquireNodeId = 94
Used to inquire the node ID of a node in Configuration mode
Implementations§
Source§impl LssCommandSpecifier
impl LssCommandSpecifier
Sourcepub fn from_byte(b: u8) -> Result<Self, MessageError>
pub fn from_byte(b: u8) -> Result<Self, MessageError>
Attempt to create an LssCommandSpecifier from a byte code
Trait Implementations§
Source§impl Clone for LssCommandSpecifier
impl Clone for LssCommandSpecifier
Source§fn clone(&self) -> LssCommandSpecifier
fn clone(&self) -> LssCommandSpecifier
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LssCommandSpecifier
impl Debug for LssCommandSpecifier
impl Copy for LssCommandSpecifier
Auto Trait Implementations§
impl Freeze for LssCommandSpecifier
impl RefUnwindSafe for LssCommandSpecifier
impl Send for LssCommandSpecifier
impl Sync for LssCommandSpecifier
impl Unpin for LssCommandSpecifier
impl UnwindSafe for LssCommandSpecifier
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more