USRP Hardware Driver and USRP Manual
Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
mac_addr.hpp
Go to the documentation of this file.
1
//
2
// Copyright 2010 Ettus Research LLC
3
//
4
// SPDX-License-Identifier: GPL-3.0
5
//
6
7
#ifndef INCLUDED_UHD_TYPES_MAC_ADDR_HPP
8
#define INCLUDED_UHD_TYPES_MAC_ADDR_HPP
9
10
#include <
uhd/config.hpp
>
11
#include <
uhd/types/serial.hpp
>
12
#include <string>
13
14
namespace
uhd
{
15
20
class
UHD_API
mac_addr_t
{
21
public
:
27
static
mac_addr_t
from_bytes(
const
byte_vector_t
&bytes);
28
34
static
mac_addr_t
from_string(
const
std::string &mac_addr_str);
35
40
byte_vector_t
to_bytes(
void
)
const
;
41
46
std::string to_string(
void
)
const
;
47
48
private
:
49
mac_addr_t
(
const
byte_vector_t
&bytes);
//private constructor
50
const
byte_vector_t
_bytes;
//internal representation
51
};
52
53
}
//namespace uhd
54
55
#endif
/* INCLUDED_UHD_TYPES_MAC_ADDR_HPP */
config.hpp
serial.hpp
uhd
Definition:
build_info.hpp:14
uhd::mac_addr_t
Definition:
mac_addr.hpp:20
UHD_API
#define UHD_API
Definition:
config.h:62
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:22
include
uhd
types
mac_addr.hpp
Generated by
1.8.13