otThreadVendorOui
#include <openthread/netdiag.h>
Represents a Thread Vendor OUI (Organizationally Unique Identifier) which can have different lengths.
Summary
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].
Public attributes |
|
|---|---|
mBitLength
|
uint8_t
The OUI prefix length in bits (24, 28, or 36).
|
mBytes[5]
|
uint8_t
The OUI bytes in big-endian order.
|
Public attributes
mBitLength
uint8_t otThreadVendorOui::mBitLength
The OUI prefix length in bits (24, 28, or 36).
mBytes
uint8_t otThreadVendorOui::mBytes[5]
The OUI bytes in big-endian order.
Resources
OpenThread API Reference topics originate from the source code, available on GitHub. For more information, or to contribute to our documentation, refer to Resources.