diff options
author | Josh Blum <josh@joshknows.com> | 2012-09-28 16:58:28 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2012-09-28 16:58:28 -0700 |
commit | be172a615a0832e9881c787ce98ba74974f1a0c0 (patch) | |
tree | 20e64ad4cc7e54332a388e7f91692946ffb3c9fc /host/lib/usrp/usrp2/usrp2_impl.cpp | |
parent | ce51fa3c1c4c8b670acd7b4606b631d6bb91dd29 (diff) | |
download | uhd-be172a615a0832e9881c787ce98ba74974f1a0c0.tar.gz uhd-be172a615a0832e9881c787ce98ba74974f1a0c0.tar.bz2 uhd-be172a615a0832e9881c787ce98ba74974f1a0c0.zip |
lfrx: disable dc offset correction when using LFRX
Diffstat (limited to 'host/lib/usrp/usrp2/usrp2_impl.cpp')
-rw-r--r-- | host/lib/usrp/usrp2/usrp2_impl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp2/usrp2_impl.cpp b/host/lib/usrp/usrp2/usrp2_impl.cpp index 42b1acc4c..21f166aa1 100644 --- a/host/lib/usrp/usrp2/usrp2_impl.cpp +++ b/host/lib/usrp/usrp2/usrp2_impl.cpp @@ -666,6 +666,9 @@ usrp2_impl::usrp2_impl(const device_addr_t &_device_addr){ tx_db_eeprom.load(*_mbc[mb].iface, USRP2_I2C_ADDR_TX_DB); gdb_eeprom.load(*_mbc[mb].iface, USRP2_I2C_ADDR_TX_DB ^ 5); + //disable rx dc offset if LFRX + if (rx_db_eeprom.id == 0x000f) _tree->access<bool>(rx_fe_path / "dc_offset" / "enable").set(false); + //create the properties and register subscribers _tree->create<dboard_eeprom_t>(mb_path / "dboards/A/rx_eeprom") .set(rx_db_eeprom) |