USRP Hardware Driver and USRP Manual  Version: 3.13.0.HEAD-0-gf114cfa0
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 <vector>
14 #include <string>
15 
16 namespace uhd{ namespace usrp{
17 
21  struct UHD_API subdev_spec_pair_t : boost::equality_comparable<subdev_spec_pair_t>{
23  std::string db_name;
24 
26  std::string sd_name;
27 
34  const std::string &db_name = "",
35  const std::string &sd_name = ""
36  );
37 
39  bool operator==(const subdev_spec_pair_t &other);
40 
42  bool operator!=(const subdev_spec_pair_t &other);
43  };
44 
47 
62  class UHD_API subdev_spec_t : public std::vector<subdev_spec_pair_t>{
63  public:
64 
69  subdev_spec_t(const std::string &markup = "");
70 
75  std::string to_pp_string(void) const;
76 
82  std::string to_string(void) const;
83  };
84 
85 }}
86 
87 #endif /* INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP */
std::string db_name
The daughterboard slot name.
Definition: subdev_spec.hpp:23
std::string sd_name
The subdevice name.
Definition: subdev_spec.hpp:26
UHD_INLINE bool operator!=(fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
Definition: fp_compare_delta.ipp:65
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
Definition: build_info.hpp:14
Definition: subdev_spec.hpp:21
#define UHD_API
Definition: config.h:63
Definition: subdev_spec.hpp:62