aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/simple_usrp.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-08-05 17:33:57 -0700
committerJosh Blum <josh@joshknows.com>2010-08-06 12:15:05 -0700
commit187fe9d3e7353021d89da38b687ee8729a060ccd (patch)
tree93a8a9a165a9f2ba14af2c0833cbe4e62c5e933c /host/lib/usrp/simple_usrp.cpp
parent5ec42578fa9f69e92ae935c16717957a6ea66324 (diff)
downloaduhd-187fe9d3e7353021d89da38b687ee8729a060ccd.tar.gz
uhd-187fe9d3e7353021d89da38b687ee8729a060ccd.tar.bz2
uhd-187fe9d3e7353021d89da38b687ee8729a060ccd.zip
usrp: tweaks to subdev spec printing
Diffstat (limited to 'host/lib/usrp/simple_usrp.cpp')
-rw-r--r--host/lib/usrp/simple_usrp.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/lib/usrp/simple_usrp.cpp b/host/lib/usrp/simple_usrp.cpp
index e2a1126ca..ebba5e137 100644
--- a/host/lib/usrp/simple_usrp.cpp
+++ b/host/lib/usrp/simple_usrp.cpp
@@ -26,6 +26,7 @@
#include <boost/foreach.hpp>
#include <boost/format.hpp>
#include <stdexcept>
+#include <iostream>
using namespace uhd;
using namespace uhd::usrp;
@@ -101,8 +102,9 @@ public:
/*******************************************************************
* RX methods
******************************************************************/
- void set_rx_subdev_spec(const uhd::usrp::subdev_spec_t &spec){
+ void set_rx_subdev_spec(const subdev_spec_t &spec){
_mboard()[MBOARD_PROP_RX_SUBDEV_SPEC] = spec;
+ std::cout << "RX " << _mboard()[MBOARD_PROP_RX_SUBDEV_SPEC].as<subdev_spec_t>().to_pp_string() << std::endl;
}
void set_rx_rate(double rate){
@@ -164,8 +166,9 @@ public:
/*******************************************************************
* TX methods
******************************************************************/
- void set_tx_subdev_spec(const uhd::usrp::subdev_spec_t &spec){
+ void set_tx_subdev_spec(const subdev_spec_t &spec){
_mboard()[MBOARD_PROP_TX_SUBDEV_SPEC] = spec;
+ std::cout << "TX " << _mboard()[MBOARD_PROP_TX_SUBDEV_SPEC].as<subdev_spec_t>().to_pp_string() << std::endl;
}
void set_tx_rate(double rate){