USRP Hardware Driver and USRP Manual
Version: 4.4.0.HEAD-0-g5fac246b
UHD and USRP Manual
subdev_spec.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
#pragma once
9
10
#include <
uhd/config.hpp
>
11
#include <boost/operators.hpp>
12
#include <string>
13
#include <vector>
14
15
namespace
uhd
{
namespace
usrp {
16
20
struct
UHD_API
subdev_spec_pair_t
: boost::equality_comparable<subdev_spec_pair_t>
21
{
23
std::string
db_name
;
24
26
std::string
sd_name
;
27
33
subdev_spec_pair_t
(
const
std::string& db_name =
""
,
const
std::string& sd_name =
""
);
34
36
bool
operator==
(
const
subdev_spec_pair_t
& other);
37
39
bool
operator!=
(
const
subdev_spec_pair_t
& other);
40
};
41
43
UHD_API
bool
operator==
(
const
subdev_spec_pair_t
&,
const
subdev_spec_pair_t
&);
44
59
class
UHD_API
subdev_spec_t
:
public
std::vector<subdev_spec_pair_t>
60
{
61
public
:
66
subdev_spec_t
(
const
std::string& markup =
""
);
67
72
std::string to_pp_string(
void
)
const
;
73
79
std::string to_string(
void
)
const
;
80
};
81
82
}}
// namespace uhd::usrp
config.hpp
uhd::usrp::subdev_spec_pair_t::sd_name
std::string sd_name
The subdevice name.
Definition:
subdev_spec.hpp:26
UHD_API
#define UHD_API
Definition:
config.h:87
uhd::usrp::subdev_spec_pair_t
Definition:
subdev_spec.hpp:20
uhd
Definition:
build_info.hpp:12
uhd::usrp::subdev_spec_pair_t::db_name
std::string db_name
The daughterboard slot name.
Definition:
subdev_spec.hpp:23
uhd::math::fp_compare::operator!=
UHD_INLINE bool operator!=(fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
Definition:
fp_compare_delta.ipp:64
uhd::usrp::subdev_spec_t
Definition:
subdev_spec.hpp:59
uhd::usrp::operator==
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
include
uhd
usrp
subdev_spec.hpp
Generated by
1.8.17