aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-04 12:28:58 -0700
committerJosh Blum <josh@joshknows.com>2010-08-04 12:28:58 -0700
commitfc66ef454c1b79cceb2b161c669bcf6fdfe87ee7 (patch)
tree8fc4168da2288c52bbf22da109855ec81bf00d76
parent6b98159fb5f7af754a4e3f7e1d594cbc1a3b519f (diff)
downloaduhd-fc66ef454c1b79cceb2b161c669bcf6fdfe87ee7.tar.gz
uhd-fc66ef454c1b79cceb2b161c669bcf6fdfe87ee7.tar.bz2
uhd-fc66ef454c1b79cceb2b161c669bcf6fdfe87ee7.zip
usrp2: added mboard name call to dboard iface
-rw-r--r--host/include/uhd/usrp/dboard_iface.hpp7
-rw-r--r--host/lib/usrp/usrp2/dboard_iface.cpp2
2 files changed, 9 insertions, 0 deletions
diff --git a/host/include/uhd/usrp/dboard_iface.hpp b/host/include/uhd/usrp/dboard_iface.hpp
index caf1e6ee6..fc7ea3052 100644
--- a/host/include/uhd/usrp/dboard_iface.hpp
+++ b/host/include/uhd/usrp/dboard_iface.hpp
@@ -22,6 +22,7 @@
#include <uhd/types/serial.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/cstdint.hpp>
+#include <string>
#include <vector>
namespace uhd{ namespace usrp{
@@ -65,6 +66,12 @@ public:
};
/*!
+ * Get the motherboard name of the form: usrp1, usrp2...
+ * \return string representing the motherboard name
+ */
+ virtual std::string get_mboard_name(void) = 0;
+
+ /*!
* Write to an aux dac.
*
* \param unit which unit rx or tx
diff --git a/host/lib/usrp/usrp2/dboard_iface.cpp b/host/lib/usrp/usrp2/dboard_iface.cpp
index 6f2fb9396..1b9a4bb97 100644
--- a/host/lib/usrp/usrp2/dboard_iface.cpp
+++ b/host/lib/usrp/usrp2/dboard_iface.cpp
@@ -37,6 +37,8 @@ public:
usrp2_dboard_iface(usrp2_iface::sptr iface, usrp2_clock_ctrl::sptr clock_ctrl);
~usrp2_dboard_iface(void);
+ std::string get_mboard_name(void){return "usrp2";}
+
void write_aux_dac(unit_t, aux_dac_t, float);
float read_aux_adc(unit_t, aux_adc_t);