summaryrefslogtreecommitdiffstats
path: root/src/OutputUHD.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 20:58:54 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-20 20:58:54 +0200
commit9522c159dcca6acbb22c2f8ff04d76f4c6104c34 (patch)
tree7b05ce20b5cc6296af1b4662c62529f7a3d38c83 /src/OutputUHD.cpp
parent76302cd1f4441187e8481eeb2365669105081204 (diff)
downloaddabmod-9522c159dcca6acbb22c2f8ff04d76f4c6104c34.tar.gz
dabmod-9522c159dcca6acbb22c2f8ff04d76f4c6104c34.tar.bz2
dabmod-9522c159dcca6acbb22c2f8ff04d76f4c6104c34.zip
Add subdevice to UHD configuration
Diffstat (limited to 'src/OutputUHD.cpp')
-rw-r--r--src/OutputUHD.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/OutputUHD.cpp b/src/OutputUHD.cpp
index b0600cd..b44cd3f 100644
--- a/src/OutputUHD.cpp
+++ b/src/OutputUHD.cpp
@@ -108,6 +108,11 @@ OutputUHD::OutputUHD(
myUsrp->set_clock_source(myConf.refclk_src);
myUsrp->set_time_source(myConf.pps_src);
+ if (myConf.subDevice != "") {
+ myUsrp->set_tx_subdev_spec(uhd::usrp::subdev_spec_t(myConf.subDevice),
+ uhd::usrp::multi_usrp::ALL_MBOARDS);
+ }
+
std::cerr << "UHD clock source is " <<
myUsrp->get_clock_source(0) << std::endl;