HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::UID::MAC Struct Reference

IEEE MAC-48b UID class. More...

#include <uids.h>

+ Inheritance diagram for HF::UID::MAC:
+ Collaboration diagram for HF::UID::MAC:

Public Member Functions

MACclone () const
 Create a clone object of the object where this method is being called. More...
 
- Public Member Functions inherited from HF::UID::ByteArray< MAC, 6, MAC_UID >
 ByteArray (uint8_t _value[_size])
 Constructor. More...
 
 ByteArray (uint8_t _value)
 Constructor. More...
 
uint8_t const & operator[] (uint16_t index) const
 Get byte at the given index. More...
 
uint8_t & operator[] (uint16_t index)
 Get byte at the given index. More...
 
uint8_t const & at (uint16_t index) const
 Get byte at the given index, asserting that the index is within the correct range. More...
 
uint8_t & at (uint16_t index)
 Get byte at the given index, asserting that the index is within the correct range. More...
 
void fill (uint8_t byte)
 Fill the underlining byte array with the given value. More...
 
void clear ()
 Fill the underlining byte array with 0.
 
- Public Member Functions inherited from HF::UID::Abstract< _type >
uint8_t type () const
 Type of the UID. More...
 
- Public Member Functions inherited from HF::Common::Serializable
virtual ~Serializable ()
 Destructor.
 

Static Public Attributes

static constexpr uint8_t SIZE = 6
 Number of bytes in a MAC UID.
 
- Static Public Attributes inherited from HF::UID::ByteArray< MAC, 6, MAC_UID >
static constexpr uint16_t min_size
 Minimum pack/unpack required data size.
 
- Static Public Attributes inherited from HF::UID::UID_T
static constexpr uint16_t min_size
 Minimum pack/unpack required data size.
 

Additional Inherited Members

- Static Public Member Functions inherited from HF::UID::ByteArray< MAC, 6, MAC_UID >
static uint16_t length ()
 Return the number of bytes in the underlining byte array. More...
 

Detailed Description

IEEE MAC-48b UID class.

Definition at line 407 of file uids.h.

Member Function Documentation

◆ clone()

MAC* HF::UID::MAC::clone ( ) const
inlinevirtual

Create a clone object of the object where this method is being called.

Returns
a new object that is a clone of this object.

Implements HF::Common::Cloneable< UID_T >.

Definition at line 422 of file uids.h.

423  {
424  return new MAC(*this);
425  }

The documentation for this struct was generated from the following file: