diff options
author | Josh Blum <josh@joshknows.com> | 2010-10-08 13:53:40 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-10-08 13:53:40 -0700 |
commit | 2eb813f6845e8cd208d6a59e1d7873cf84c51b03 (patch) | |
tree | 5092d49313d9e2d09569504a7999eb0a0a49f9e1 /host/lib/usrp/dboard_manager.cpp | |
parent | 83fd99cc7badb91a2e8c97048eb9ea694aba22eb (diff) | |
parent | a4f8ad59b2abc6d4b1a6c65aa2652083486e3065 (diff) | |
download | uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.tar.gz uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.tar.bz2 uhd-2eb813f6845e8cd208d6a59e1d7873cf84c51b03.zip |
Merge branch 'subdev_enable' into next
Diffstat (limited to 'host/lib/usrp/dboard_manager.cpp')
-rw-r--r-- | host/lib/usrp/dboard_manager.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard_manager.cpp b/host/lib/usrp/dboard_manager.cpp index 181f843a0..78daa1b4d 100644 --- a/host/lib/usrp/dboard_manager.cpp +++ b/host/lib/usrp/dboard_manager.cpp @@ -86,7 +86,7 @@ std::string dboard_id_t::to_pp_string(void) const{ } /*********************************************************************** - * internal helper classe + * internal helper classes **********************************************************************/ /*! * A special wax proxy object that forwards calls to a subdev. @@ -330,4 +330,14 @@ void dboard_manager_impl::set_nice_dboard_if(void){ _iface->set_pin_ctrl(unit, 0x0000); //all gpio _iface->set_clock_enabled(unit, false); //clock off } + + //disable all rx subdevices + BOOST_FOREACH(const std::string &sd_name, this->get_rx_subdev_names()){ + this->get_rx_subdev(sd_name)[SUBDEV_PROP_ENABLED] = false; + } + + //disable all tx subdevices + BOOST_FOREACH(const std::string &sd_name, this->get_tx_subdev_names()){ + this->get_tx_subdev(sd_name)[SUBDEV_PROP_ENABLED] = false; + } } |