The Pedigree Project  0.1
Public Member Functions | Private Attributes | List of all members
MacAddress Class Reference

#include <MacAddress.h>

+ Collaboration diagram for MacAddress:

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
 
MacAddressoperator= (const MacAddress &a)
 
MacAddressoperator= (const uint16_t *a)
 
 operator const uint16_t * () const
 
String toString ()
 

Private Attributes

uint16_t m_Mac [3]
 
bool m_Valid
 

Detailed Description

A MAC address

Definition at line 28 of file MacAddress.h.

Member Function Documentation

void MacAddress::setMac ( uint8_t  element)

Useful for setting a broadcast MAC

Definition at line 56 of file MacAddress.cc.


The documentation for this class was generated from the following files: