diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2013-11-19 06:20:54 -0800 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2013-11-19 06:20:54 -0800 |
commit | 20c021af827eb910c7ebbd55448dddda0fa6e7aa (patch) | |
tree | 203fff6d85b9182f8f0fe3cb8a46d1d691d43518 /host/lib/usrp/dboard/db_sbx_common.hpp | |
parent | 3c7484f9647f87925a82a6ce20800915e5c22c13 (diff) | |
parent | c0bf255bcdaa5e2b2f0220c0eea20344792de650 (diff) | |
download | uhd-20c021af827eb910c7ebbd55448dddda0fa6e7aa.tar.gz uhd-20c021af827eb910c7ebbd55448dddda0fa6e7aa.tar.bz2 uhd-20c021af827eb910c7ebbd55448dddda0fa6e7aa.zip |
Merge branch 'bugfix/sbx_tuning'
Diffstat (limited to 'host/lib/usrp/dboard/db_sbx_common.hpp')
-rw-r--r-- | host/lib/usrp/dboard/db_sbx_common.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/host/lib/usrp/dboard/db_sbx_common.hpp b/host/lib/usrp/dboard/db_sbx_common.hpp index 4f3a2eeaa..e9bb2434c 100644 --- a/host/lib/usrp/dboard/db_sbx_common.hpp +++ b/host/lib/usrp/dboard/db_sbx_common.hpp @@ -181,6 +181,34 @@ protected: ~sbx_versionx(void) {} virtual double set_lo_freq(dboard_iface::unit_t unit, double target_freq) = 0; + protected: + struct adf435x_tuning_constraints { + bool force_frac0; + double ref_doubler_threshold; + double pfd_freq_max; + double band_sel_freq_max; + uhd::range_t rf_divider_range; + uhd::range_t int_range; + }; + + struct adf435x_tuning_settings { + boost::uint16_t frac_12_bit; + boost::uint16_t int_16_bit; + boost::uint16_t mod_12_bit; + boost::uint16_t r_counter_10_bit; + bool r_doubler_en; + bool r_divide_by_2_en; + boost::uint16_t clock_divider_12_bit; + boost::uint8_t band_select_clock_div; + boost::uint16_t rf_divider; + bool feedback_after_divider; + }; + + adf435x_tuning_settings _tune_adf435x_synth( + double target_freq, + double ref_freq, + const adf435x_tuning_constraints& constraints, + double& actual_freq); }; /*! |