The Pedigree Project
0.1
|
#include <MacAddress.h>
Public Member Functions | |
MacAddress (const MacAddress &other) | |
bool | valid () const |
void | setMac (uint8_t byte, size_t element) |
void | setMac (uint8_t element) |
void | setMac (const uint16_t *data, bool bSwap=false) |
uint8_t | getMac (size_t element) const |
const uint16_t * | getMac () const |
uint8_t | operator[] (size_t offset) const |
MacAddress & | operator= (const MacAddress &a) |
MacAddress & | operator= (const uint16_t *a) |
operator const uint16_t * () const | |
String | toString () |
Private Attributes | |
uint16_t | m_Mac [3] |
bool | m_Valid |
A MAC address
Definition at line 28 of file MacAddress.h.
void MacAddress::setMac | ( | uint8_t | element | ) |
Useful for setting a broadcast MAC
Definition at line 56 of file MacAddress.cc.