USRP Hardware Driver and USRP Manual
Version: 3.15.0.HEAD-0-gaea0e2de
UHD and USRP Manual
mac_addr.hpp
Go to the documentation of this file.
1
//
2
// Copyright 2010 Ettus Research LLC
3
// Copyright 2018 Ettus Research, a National Instruments Company
4
//
5
// SPDX-License-Identifier: GPL-3.0-or-later
6
//
7
8
#ifndef INCLUDED_UHD_TYPES_MAC_ADDR_HPP
9
#define INCLUDED_UHD_TYPES_MAC_ADDR_HPP
10
11
#include <
uhd/config.hpp
>
12
#include <
uhd/types/serial.hpp
>
13
#include <string>
14
15
namespace
uhd
{
16
21
class
UHD_API
mac_addr_t
22
{
23
public
:
29
static
mac_addr_t
from_bytes(
const
byte_vector_t
& bytes);
30
36
static
mac_addr_t
from_string(
const
std::string& mac_addr_str);
37
42
byte_vector_t
to_bytes(
void
)
const
;
43
48
std::string to_string(
void
)
const
;
49
50
private
:
51
mac_addr_t
(
const
byte_vector_t
& bytes);
// private constructor
52
const
byte_vector_t
_bytes;
// internal representation
53
};
54
55
}
// namespace uhd
56
57
#endif
/* INCLUDED_UHD_TYPES_MAC_ADDR_HPP */
config.hpp
serial.hpp
uhd
Definition:
build_info.hpp:13
uhd::mac_addr_t
Definition:
mac_addr.hpp:21
UHD_API
#define UHD_API
Definition:
config.h:68
uhd::byte_vector_t
std::vector< uint8_t > byte_vector_t
Byte vector used for I2C data passing and EEPROM parsing.
Definition:
byte_vector.hpp:20
include
uhd
types
mac_addr.hpp
Generated by
1.8.13