diff options
| author | Nicolas Cuervo <nicolas.cuervo@ettus.com> | 2016-08-09 18:29:08 -0700 | 
|---|---|---|
| committer | Martin Braun <martin.braun@ettus.com> | 2016-08-11 15:32:35 -0700 | 
| commit | 00c70d7155e40e59c7635b5aecc2993ca3f4ae5e (patch) | |
| tree | 6a05f2713dad9219e7a0d5208db89a857ada7a29 /host/lib/usrp/x300 | |
| parent | bf6adfaf6f4b391ea74639133a6a00b0ca7fcfa0 (diff) | |
| download | uhd-00c70d7155e40e59c7635b5aecc2993ca3f4ae5e.tar.gz uhd-00c70d7155e40e59c7635b5aecc2993ca3f4ae5e.tar.bz2 uhd-00c70d7155e40e59c7635b5aecc2993ca3f4ae5e.zip  | |
Frontend corrections: Provide new function for RFNoC-based radio
Diffstat (limited to 'host/lib/usrp/x300')
| -rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.cpp | 14 | ||||
| -rw-r--r-- | host/lib/usrp/x300/x300_radio_ctrl_impl.hpp | 4 | 
2 files changed, 10 insertions, 8 deletions
diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp index 6a4ed8cf5..388b66929 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.cpp @@ -391,12 +391,12 @@ void x300_radio_ctrl_impl::setup_radio(uhd::i2c_iface::sptr zpu_i2c, x300_clock_      const fs_path db_tx_fe_path = db_path / "tx_frontends";      BOOST_FOREACH(const std::string &name, _tree->list(db_tx_fe_path)) {          _tree->access<double>(db_tx_fe_path / name / "freq" / "value") -            .add_coerced_subscriber(boost::bind(&x300_radio_ctrl_impl::set_tx_fe_corrections, this, _radio_slot, _1)); +            .add_coerced_subscriber(boost::bind(&x300_radio_ctrl_impl::set_tx_fe_corrections, this, db_path, _root_path / "tx_fe_corrections" / name, _1));      }      const fs_path db_rx_fe_path = db_path / "rx_frontends";      BOOST_FOREACH(const std::string &name, _tree->list(db_rx_fe_path)) {          _tree->access<double>(db_rx_fe_path / name / "freq" / "value") -            .add_coerced_subscriber(boost::bind(&x300_radio_ctrl_impl::set_rx_fe_corrections, this, _radio_slot, _1)); +            .add_coerced_subscriber(boost::bind(&x300_radio_ctrl_impl::set_rx_fe_corrections, this, db_path, _root_path / "rx_fe_corrections" / name,_1));      }      //////////////////////////////////////////////////////////////// @@ -411,20 +411,22 @@ void x300_radio_ctrl_impl::setup_radio(uhd::i2c_iface::sptr zpu_i2c, x300_clock_  }  void x300_radio_ctrl_impl::set_rx_fe_corrections( -        const std::string &slot_name, +        const fs_path &db_path, +        const fs_path &rx_fe_corr_path,          const double lo_freq  ) {      if (not _ignore_cal_file) { -        apply_rx_fe_corrections(_tree, slot_name, lo_freq); +        apply_rx_fe_corrections(_tree, db_path, rx_fe_corr_path, lo_freq);      }  }  void x300_radio_ctrl_impl::set_tx_fe_corrections( -        const std::string &slot_name, +        const fs_path &db_path, +        const fs_path &tx_fe_corr_path,          const double lo_freq  ) {      if (not _ignore_cal_file) { -        apply_tx_fe_corrections(_tree, slot_name, lo_freq); +        apply_tx_fe_corrections(_tree, db_path, tx_fe_corr_path, lo_freq);      }  } diff --git a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp index f2150a982..ff41096bd 100644 --- a/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp +++ b/host/lib/usrp/x300/x300_radio_ctrl_impl.hpp @@ -152,8 +152,8 @@ private:      void _check_adc(const boost::uint32_t val); -    void set_rx_fe_corrections(const std::string &fe_name, const double lo_freq); -    void set_tx_fe_corrections(const std::string &fe_name, const double lo_freq); +    void set_rx_fe_corrections(const uhd::fs_path &db_path, const uhd::fs_path &rx_fe_corr_path, const double lo_freq); +    void set_tx_fe_corrections(const uhd::fs_path &db_path, const uhd::fs_path &tx_fe_corr_path, const double lo_freq);  private: // members      enum radio_connection_t { PRIMARY, SECONDARY };  | 
