LssCommandSpecifier

Enum LssCommandSpecifier 

Source
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

Source

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

Source§

fn clone(&self) -> LssCommandSpecifier

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LssCommandSpecifier

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for LssCommandSpecifier

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.