#[repr(C)]pub struct otThreadVendorOui {
pub mBitLength: u8,
pub mBytes: [u8; 5],
}Expand description
Represents a Thread Vendor OUI (Organizationally Unique Identifier) which can have different lengths.
A Vendor OUI can be assigned in one of the following formats:
-
24-bit Prefix (MA-L): Exactly 3 bytes (24 bits). Example:
00-1A-2Bis represented withmBitLength = 24andmBytes = [0x00, 0x1A, 0x2B, 0x00, 0x00]. -
28-bit Prefix (MA-M): Exactly 3.5 bytes (28 bits). The half-byte (4 bits) at the end of the prefix occupies the Most Significant Nibble of the 4th byte. The Least Significant Nibble of the 4th byte is set to zero. Example:
00-1A-2B-3is represented withmBitLength = 28andmBytes = [0x00, 0x1A, 0x2B, 0x30, 0x00]. -
36-bit Prefix (MA-S): Exactly 4.5 bytes (36 bits). The half-byte (4 bits) at the end of the prefix occupies the Most Significant Nibble of the 5th byte. The Least Significant Nibble of the 5th byte is set to zero. Example:
00-1A-2B-3C-4is represented withmBitLength = 36andmBytes = [0x00, 0x1A, 0x2B, 0x3C, 0x40].
Fields§
§mBitLength: u8< The OUI prefix length in bits (24, 28, or 36).
mBytes: [u8; 5]< The OUI bytes in big-endian order.
Trait Implementations§
Source§impl Clone for otThreadVendorOui
impl Clone for otThreadVendorOui
Source§fn clone(&self) -> otThreadVendorOui
fn clone(&self) -> otThreadVendorOui
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more