A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Media Access Control address).
More...
#include <BTAddress.hpp>
|
static bool | scanEUI48 (const std::string &str, EUI48 &dest, std::string &errmsg) |
|
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Media Access Control address).
- Examples
- dbt_scanner00.cpp, dbt_scanner01.cpp, and dbt_scanner10.cpp.
Definition at line 388 of file BTAddress.hpp.
◆ EUI48() [1/5]
constexpr direct_bt::EUI48::EUI48 |
( |
| ) |
|
|
inlineconstexprnoexcept |
◆ EUI48() [2/5]
EUI48::EUI48 |
( |
const uint8_t * |
b_ | ) |
|
|
noexcept |
◆ EUI48() [3/5]
EUI48::EUI48 |
( |
const std::string & |
str | ) |
|
- Construct instance via given string representation. *
* Implementation is consistent with EUI48::toString(). *
*
- Parameters
-
str | a string of exactly 17 characters representing 6 bytes as hexadecimal numbers separated via colon 01:02:03:0A:0B:0C . * |
- See also
- EUI48::scanEUI48() *
-
EUI48::toString() *
- Exceptions
-
Definition at line 308 of file BTTypes0.cpp.
◆ EUI48() [4/5]
constexpr direct_bt::EUI48::EUI48 |
( |
const EUI48 & |
o | ) |
|
|
constexprdefaultnoexcept |
◆ EUI48() [5/5]
direct_bt::EUI48::EUI48 |
( |
EUI48 && |
o | ) |
|
|
defaultnoexcept |
◆ clear()
void direct_bt::EUI48::clear |
( |
| ) |
|
|
inline |
- Method clears the underlying byte array b.
Definition at line 388 of file BTAddress.hpp.
◆ contains()
bool direct_bt::EUI48::contains |
( |
const EUI48Sub & |
needle | ) |
const |
|
inlinenoexcept |
- Returns true, if given EUI48Sub needle is contained in this instance haystack. *
* If the sub is zero, true is returned. *
Definition at line 388 of file BTAddress.hpp.
◆ getBLERandomAddressType()
◆ hash_code()
constexpr std::size_t direct_bt::EUI48::hash_code |
( |
| ) |
const |
|
inlineconstexprnoexcept |
◆ indexOf()
- Finds the index of given EUI48Sub needle within this instance haystack. *
- Parameters
-
- Returns
- index of first element of needle within this instance haystack or -1 if not found. If the needle length is zero, 0 (found) is returned.
Definition at line 388 of file BTAddress.hpp.
◆ operator=() [1/2]
constexpr EUI48& direct_bt::EUI48::operator= |
( |
const EUI48 & |
o | ) |
|
|
constexprdefaultnoexcept |
◆ operator=() [2/2]
◆ scanEUI48()
bool EUI48::scanEUI48 |
( |
const std::string & |
str, |
|
|
EUI48 & |
dest, |
|
|
std::string & |
errmsg |
|
) |
| |
|
static |
- Fills given EUI48 instance via given string representation. *
* Implementation is consistent with EUI48::toString(). *
*
- Parameters
-
str | a string of exactly 17 characters representing 6 bytes as hexadecimal numbers separated via colon 01:02:03:0A:0B:0C . * |
dest | EUI48 to set its value * |
errmsg | error parsing message if returning false * |
- Returns
- true if successful, otherwise false *
- See also
- EUI48::EUI48 *
-
EUI48::toString()
Definition at line 290 of file BTTypes0.cpp.
◆ toString()
std::string EUI48::toString |
( |
| ) |
const |
|
noexcept |
- Returns the EUI48 string representation, * exactly 17 characters representing 6 bytes as upper case hexadecimal numbers separated via colon
01:02:03:0A:0B:0C
. * - See also
- EUI48::EUI48()
Definition at line 274 of file BTTypes0.cpp.
◆ ALL_DEVICE
const EUI48 direct_bt::EUI48::ALL_DEVICE |
|
static |
EUI48 MAC address matching all device, i.e.
ff:ff:ff:ff:ff:ff
.
Definition at line 388 of file BTAddress.hpp.
◆ ANY_DEVICE
const EUI48 direct_bt::EUI48::ANY_DEVICE |
|
static |
uint8_t direct_bt::EUI48::b[6] |
◆ LOCAL_DEVICE
const EUI48 direct_bt::EUI48::LOCAL_DEVICE |
|
static |
EUI48 MAC address matching local device, i.e.
0:0:0:ff:ff:ff
.
Definition at line 388 of file BTAddress.hpp.
The documentation for this struct was generated from the following files: