diff options
author | Martin Braun <martin.braun@ettus.com> | 2015-07-22 18:11:14 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-07-29 16:50:34 -0700 |
commit | 863648f52eeeea0a8c7e80a7d0f42c5efeede92a (patch) | |
tree | 98d1c8204a3350366d499bd28206c065327bdeb0 /host/lib/usrp/e300/e300_impl.cpp | |
parent | 9ee68e5323932abf06971c7b67415154dee37509 (diff) | |
download | uhd-863648f52eeeea0a8c7e80a7d0f42c5efeede92a.tar.gz uhd-863648f52eeeea0a8c7e80a7d0f42c5efeede92a.tar.bz2 uhd-863648f52eeeea0a8c7e80a7d0f42c5efeede92a.zip |
cores: Moved subtree populate code to frontend cores
Diffstat (limited to 'host/lib/usrp/e300/e300_impl.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_impl.cpp | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/host/lib/usrp/e300/e300_impl.cpp b/host/lib/usrp/e300/e300_impl.cpp index 6f7ea5abf..90897e6bb 100644 --- a/host/lib/usrp/e300/e300_impl.cpp +++ b/host/lib/usrp/e300/e300_impl.cpp @@ -982,28 +982,8 @@ void e300_impl::_setup_radio(const size_t dspno) //////////////////////////////////////////////////////////////////// // front end corrections //////////////////////////////////////////////////////////////////// - const fs_path rx_fe_path = mb_path / "rx_frontends" / slot_name; - _tree->create<std::complex<double> >(rx_fe_path / "dc_offset" / "value") - .set(std::complex<double>(0.0, 0.0)) - .coerce(boost::bind(&rx_frontend_core_200::set_dc_offset, perif.rx_fe, _1)) - ; - _tree->create<bool>(rx_fe_path / "dc_offset" / "enable") - .set(true) - .subscribe(boost::bind(&rx_frontend_core_200::set_dc_offset_auto, perif.rx_fe, _1)) - ; - _tree->create<std::complex<double> >(rx_fe_path / "iq_balance" / "value") - .set(std::complex<double>(0.0, 0.0)) - .subscribe(boost::bind(&rx_frontend_core_200::set_iq_balance, perif.rx_fe, _1)) - ; - const fs_path tx_fe_path = mb_path / "tx_frontends" / slot_name; - _tree->create<std::complex<double> >(tx_fe_path / "dc_offset" / "value") - .set(std::complex<double>(0.0, 0.0)) - .coerce(boost::bind(&tx_frontend_core_200::set_dc_offset, perif.tx_fe, _1)) - ; - _tree->create<std::complex<double> >(tx_fe_path / "iq_balance" / "value") - .set(std::complex<double>(0.0, 0.0)) - .subscribe(boost::bind(&tx_frontend_core_200::set_iq_balance, perif.tx_fe, _1)) - ; + perif.rx_fe->populate_subtree(_tree->subtree(mb_path / "rx_frontends" / slot_name)); + perif.tx_fe->populate_subtree(_tree->subtree(mb_path / "tx_frontends" / slot_name)); //////////////////////////////////////////////////////////////////// // create rx dsp control objects |