REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy
|
Represents Ethernet Mac address. More...
#include <mac.h>
Public Member Functions | |
void | reset () |
set to system default (stored in teensy HW_OCOTP_MAC1 and ...MAC0) | |
operator std::string () const | |
bool | fromString (const char *str) |
required format AA-BB-CC-DD-EE-FF | |
uint8_t & | operator[] (size_t i) |
const uint8_t & | operator[] (size_t i) const |
Static Public Member Functions | |
static MacAddress | otp () |
Handy access to system default/permanent mac address (one time programmed) | |
Public Attributes | |
uint8_t | mac [6] = {0} |
Detailed Description
Represents Ethernet Mac address.
A MAC Adress corresponds to a EUI-48 standard. Converts from/to canonical representation AA-BB-CC-DD-EE-FF
Member Function Documentation
◆ fromString()
FLASHMEM bool utils::MacAddress::fromString | ( | const char * | str | ) |
required format AA-BB-CC-DD-EE-FF
Definition at line 25 of file mac.cpp.
Referenced by utils::convertFromJson().
◆ operator std::string()
FLASHMEM utils::MacAddress::operator std::string | ( | ) | const |
Definition at line 19 of file mac.cpp.
References utils::toString().
◆ operator[]() [1/2]
|
inline |
◆ operator[]() [2/2]
|
inline |
◆ otp()
|
inlinestatic |
Handy access to system default/permanent mac address (one time programmed)
Definition at line 37 of file mac.h.
Referenced by msg::handlers::GetSystemIdent::handle(), and net::status().
◆ reset()
void utils::MacAddress::reset | ( | ) |
set to system default (stored in teensy HW_OCOTP_MAC1 and ...MAC0)
Definition at line 16 of file mac.cpp.
References mac.
Referenced by otp(), and net::StartupConfig::reset_defaults().
Member Data Documentation
◆ mac
uint8_t utils::MacAddress::mac[6] = {0} |
Definition at line 27 of file mac.h.
Referenced by operator[](), operator[](), otp(), and reset().
The documentation for this struct was generated from the following files: