diff options
author | Josh Blum <josh@joshknows.com> | 2012-05-29 13:13:24 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-05-30 12:56:38 -0700 |
commit | 3adecd5bc10c09fb5e66f4bb9422eb8936fd8668 (patch) | |
tree | 2b5d6614ada168396aeb48cd6021f75a286e034b /host/lib/usrp/usrp1 | |
parent | 7bcaacdbc7d58c06e69fe42806aedbbd5ad9d8d2 (diff) | |
download | uhd-3adecd5bc10c09fb5e66f4bb9422eb8936fd8668.tar.gz uhd-3adecd5bc10c09fb5e66f4bb9422eb8936fd8668.tar.bz2 uhd-3adecd5bc10c09fb5e66f4bb9422eb8936fd8668.zip |
usrp1: shutoff DAC digital w/ TX state machine
Diffstat (limited to 'host/lib/usrp/usrp1')
-rw-r--r-- | host/lib/usrp/usrp1/usrp1_impl.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp1/usrp1_impl.hpp b/host/lib/usrp/usrp1/usrp1_impl.hpp index fd1b8c193..581f4cbdd 100644 --- a/host/lib/usrp/usrp1/usrp1_impl.hpp +++ b/host/lib/usrp/usrp1/usrp1_impl.hpp @@ -1,5 +1,5 @@ // -// Copyright 2010-2011 Ettus Research LLC +// Copyright 2010-2012 Ettus Research LLC // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -31,6 +31,7 @@ #include <uhd/usrp/dboard_eeprom.hpp> #include <uhd/usrp/dboard_manager.hpp> #include <uhd/transport/usb_zero_copy.hpp> +#include <boost/foreach.hpp> #include <boost/weak_ptr.hpp> #include <complex> @@ -141,6 +142,10 @@ private: void enable_tx(bool enb){ _tx_enabled = enb; _fx2_ctrl->usrp_tx_enable(enb); + BOOST_FOREACH(const std::string &key, _dbc.keys()) + { + _dbc[key].codec->enable_tx_digital(enb); + } } //conditionally disable and enable rx |