USRP Hardware Driver and USRP Manual
Version: 3.15.0.0-2+b1
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
#ifndef INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP
9
#define INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP
10
11
#include <
uhd/config.hpp
>
12
#include <boost/operators.hpp>
13
#include <string>
14
#include <vector>
15
16
namespace
uhd
{
namespace
usrp {
17
21
struct
UHD_API
subdev_spec_pair_t
: boost::equality_comparable<subdev_spec_pair_t>
22
{
24
std::string
db_name
;
25
27
std::string
sd_name
;
28
34
subdev_spec_pair_t
(
const
std::string& db_name =
""
,
const
std::string& sd_name =
""
);
35
37
bool
operator==
(
const
subdev_spec_pair_t
& other);
38
40
bool
operator!=
(
const
subdev_spec_pair_t
& other);
41
};
42
44
UHD_API
bool
operator==
(
const
subdev_spec_pair_t
&,
const
subdev_spec_pair_t
&);
45
60
class
UHD_API
subdev_spec_t
:
public
std::vector<subdev_spec_pair_t>
61
{
62
public
:
67
subdev_spec_t
(
const
std::string& markup =
""
);
68
73
std::string to_pp_string(
void
)
const
;
74
80
std::string to_string(
void
)
const
;
81
};
82
83
}}
// namespace uhd::usrp
84
85
#endif
/* INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP */
config.hpp
uhd::usrp::subdev_spec_pair_t::sd_name
std::string sd_name
The subdevice name.
Definition:
subdev_spec.hpp:27
UHD_API
#define UHD_API
Definition:
config.h:68
uhd::usrp::subdev_spec_pair_t
Definition:
subdev_spec.hpp:21
uhd
Definition:
build_info.hpp:13
uhd::usrp::subdev_spec_pair_t::db_name
std::string db_name
The daughterboard slot name.
Definition:
subdev_spec.hpp:24
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:65
uhd::usrp::subdev_spec_t
Definition:
subdev_spec.hpp:60
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.16