aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Abele <jason@ettus.com>2010-07-16 13:12:46 -0700
committerJason Abele <jason@ettus.com>2010-07-16 14:23:45 -0700
commitfb955a50fef30e340dc24b0db3189ee2acba5fd1 (patch)
tree0cce9430fc265acdccbd7d7e33b875fd603b785c
parentcc087a3417041c978d0be4ea155dbfc715c5b599 (diff)
downloaduhd-fb955a50fef30e340dc24b0db3189ee2acba5fd1.tar.gz
uhd-fb955a50fef30e340dc24b0db3189ee2acba5fd1.tar.bz2
uhd-fb955a50fef30e340dc24b0db3189ee2acba5fd1.zip
Change WBX frequency range to match actual VCO/divider possibles
-rw-r--r--host/lib/usrp/dboard/db_wbx.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/host/lib/usrp/dboard/db_wbx.cpp b/host/lib/usrp/dboard/db_wbx.cpp
index 2b2822b6b..e1403196d 100644
--- a/host/lib/usrp/dboard/db_wbx.cpp
+++ b/host/lib/usrp/dboard/db_wbx.cpp
@@ -86,7 +86,7 @@ using namespace boost::assign;
**********************************************************************/
static const bool wbx_debug = false;
-static const freq_range_t wbx_freq_range(50e6, 2.22e9);
+static const freq_range_t wbx_freq_range(68.75e6, 2.2e9);
static const prop_names_t wbx_tx_antennas = list_of("TX/RX");
@@ -328,6 +328,10 @@ double wbx_xcvr::set_lo_freq(
//clip the input
target_freq = std::clip(target_freq, wbx_freq_range.min, wbx_freq_range.max);
+ //return the clipped frequency
+ std::cerr << boost::format(
+ "WBX tune: target frequency %f Mhz"
+ ) % (target_freq/1e6) << std::endl;
//map prescaler setting to mininmum integer divider (N) values (pg.18 prescaler)
static const uhd::dict<int, int> prescaler_to_min_int_div = map_list_of
@@ -439,6 +443,7 @@ double wbx_xcvr::set_lo_freq(
regs.reference_divide_by_2 = T;
regs.reference_doubler = D;
regs.band_select_clock_div = BS;
+ UHD_ASSERT_THROW(rfdivsel_to_enum.has_key(RFdiv));
regs.rf_divider_select = rfdivsel_to_enum[RFdiv];
//write the registers