summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Abele2010-06-04 15:34:27 -0700
committerJohnathan Corgan2010-06-04 22:38:39 -0700
commit5fc7083812b85a7f3e65daff8e879ef7521f5122 (patch)
tree929433ef5004be90bbe1acf86e34a41e72bb2e74
parent937b74e9f60a2668a6f39f7f5d7291a8e00aef1f (diff)
downloadgnuradio-5fc7083812b85a7f3e65daff8e879ef7521f5122.tar.gz
gnuradio-5fc7083812b85a7f3e65daff8e879ef7521f5122.tar.bz2
gnuradio-5fc7083812b85a7f3e65daff8e879ef7521f5122.zip
Fixed WBX RX PLL enable
-rw-r--r--usrp/host/lib/db_wbxng.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/usrp/host/lib/db_wbxng.cc b/usrp/host/lib/db_wbxng.cc
index 62007514a..89200653e 100644
--- a/usrp/host/lib/db_wbxng.cc
+++ b/usrp/host/lib/db_wbxng.cc
@@ -207,7 +207,7 @@ db_wbxng_tx::db_wbxng_tx(usrp_basic_sptr _usrp, int which)
//d_common->_enable(true);
usrp()->write_io(d_which, (PLL_PDBRF), (PLL_PDBRF));
- set_gain((gain_min() + gain_max()) / 2.0); // initialize gain
+ set_gain(gain_min()); // initialize gain
}
db_wbxng_tx::~db_wbxng_tx()
@@ -359,14 +359,14 @@ db_wbxng_rx::db_wbxng_rx(usrp_basic_sptr _usrp, int which)
_write_spi(d_common->compute_register(1));
_write_spi(d_common->compute_register(0));
- // Disable VCO/PLL
- //d_common->_enable(true);
- usrp()->write_io(d_which, (PLL_PDBRF), (PLL_PDBRF));
-
usrp()->_write_oe(d_which, (PLL_CE|PLL_PDBRF|RX2_RX1N|RXBB_EN|ATTN_MASK|ENABLE_33|ENABLE_5), (PLL_CE|PLL_PDBRF|RX2_RX1N|RXBB_EN|ATTN_MASK|ENABLE_33|ENABLE_5));
usrp()->write_io(d_which, (PLL_CE|RX2_RX1N|RXBB_EN|ENABLE_33|ENABLE_5), (PLL_CE|PLL_PDBRF|RX2_RX1N|RXBB_EN|ATTN_MASK|ENABLE_33|ENABLE_5));
//fprintf(stderr,"Setting WBXNG RXBB on");
+ // Enable VCO/PLL
+ //d_common->_enable(true);
+ usrp()->write_io(d_which, (PLL_PDBRF), (PLL_PDBRF));
+
// set up for RX on TX/RX port
select_rx_antenna("TX/RX");
@@ -376,7 +376,7 @@ db_wbxng_rx::db_wbxng_rx(usrp_basic_sptr _usrp, int which)
set_lo_offset(-4e6);
*/
- set_gain((gain_min() + gain_max()) / 2.0); // initialize gain
+ set_gain(gain_min()); // initialize gain
}
db_wbxng_rx::~db_wbxng_rx()