aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-03-22 17:41:49 -0700
committerJosh Blum <josh@joshknows.com>2010-03-22 17:41:49 -0700
commit767bb419200aa80f90a8845e92c989215919f3a7 (patch)
tree41985c38b9d4761aa2eb525ef7ddd54a8fe6ea67 /host/include
parentd66efda608db9f6a1c2ab64659556b53810d87b7 (diff)
downloaduhd-767bb419200aa80f90a8845e92c989215919f3a7.tar.gz
uhd-767bb419200aa80f90a8845e92c989215919f3a7.tar.bz2
uhd-767bb419200aa80f90a8845e92c989215919f3a7.zip
massaged some of the dboard calls
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/usrp/dboard_id.hpp3
-rw-r--r--host/include/uhd/usrp/dboard_manager.hpp4
2 files changed, 3 insertions, 4 deletions
diff --git a/host/include/uhd/usrp/dboard_id.hpp b/host/include/uhd/usrp/dboard_id.hpp
index cdd6a4395..afacaf8ff 100644
--- a/host/include/uhd/usrp/dboard_id.hpp
+++ b/host/include/uhd/usrp/dboard_id.hpp
@@ -26,9 +26,8 @@ namespace uhd{ namespace usrp{
typedef boost::uint16_t dboard_id_t;
-static const dboard_id_t ID_NONE = 0xffff;
-
namespace dboard_id{
+ static const dboard_id_t NONE = 0xffff;
UHD_API std::string to_string(const dboard_id_t &id);
}
diff --git a/host/include/uhd/usrp/dboard_manager.hpp b/host/include/uhd/usrp/dboard_manager.hpp
index 6a105d1de..c7c091220 100644
--- a/host/include/uhd/usrp/dboard_manager.hpp
+++ b/host/include/uhd/usrp/dboard_manager.hpp
@@ -42,7 +42,7 @@ public:
/*!
* Register a dboard into the system.
- *
+ * For single subdevice boards, omit subdev_names.
* \param dboard_id the dboard id (rx or tx)
* \param dboard_ctor the dboard constructor function pointer
* \param name the canonical name for the dboard represented
@@ -52,7 +52,7 @@ public:
dboard_id_t dboard_id,
dboard_ctor_t dboard_ctor,
const std::string &name,
- const prop_names_t &subdev_names
+ const prop_names_t &subdev_names = prop_names_t(1, "")
);
/*!