USRP Hardware Driver and USRP Manual  Version: 3.11.0.HEAD-0-gdca39145
UHD and USRP Manual
subdev_spec.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_USRP_SUBDEV_SPEC_HPP
8 #define INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP
9 
10 #include <uhd/config.hpp>
11 #include <boost/operators.hpp>
12 #include <vector>
13 #include <string>
14 
15 namespace uhd{ namespace usrp{
16 
20  struct UHD_API subdev_spec_pair_t : boost::equality_comparable<subdev_spec_pair_t>{
22  std::string db_name;
23 
25  std::string sd_name;
26 
33  const std::string &db_name = "",
34  const std::string &sd_name = ""
35  );
36 
38  bool operator==(const subdev_spec_pair_t &other);
39 
41  bool operator!=(const subdev_spec_pair_t &other);
42  };
43 
46 
61  class UHD_API subdev_spec_t : public std::vector<subdev_spec_pair_t>{
62  public:
63 
68  subdev_spec_t(const std::string &markup = "");
69 
74  std::string to_pp_string(void) const;
75 
81  std::string to_string(void) const;
82  };
83 
84 }}
85 
86 #endif /* INCLUDED_UHD_USRP_SUBDEV_SPEC_HPP */
std::string db_name
The daughterboard slot name.
Definition: subdev_spec.hpp:22
std::string sd_name
The subdevice name.
Definition: subdev_spec.hpp:25
UHD_INLINE bool operator!=(fp_compare_delta< float_t > lhs, fp_compare_delta< float_t > rhs)
Definition: fp_compare_delta.ipp:64
UHD_API bool operator==(const dboard_id_t &lhs, const dboard_id_t &rhs)
Definition: build_info.hpp:14
Definition: subdev_spec.hpp:20
#define UHD_API
Definition: config.h:62
Definition: subdev_spec.hpp:61