aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/codec_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-01-17 15:21:11 -0800
committerJosh Blum <josh@joshknows.com>2011-01-17 15:21:11 -0800
commit7e1d02710090c2c1aac971e41a2abb6f68c37d12 (patch)
tree9c3261ac3eebde988030a80f976e68d49516ac65 /host/lib/usrp/usrp1/codec_ctrl.cpp
parentcaa911aa270ee4aef7244f3159b9fd402a454069 (diff)
parentd71344091b324266975b58ec075d896fcb79aeb9 (diff)
downloaduhd-7e1d02710090c2c1aac971e41a2abb6f68c37d12.tar.gz
uhd-7e1d02710090c2c1aac971e41a2abb6f68c37d12.tar.bz2
uhd-7e1d02710090c2c1aac971e41a2abb6f68c37d12.zip
Merge branch 'usrp1' into next
Diffstat (limited to 'host/lib/usrp/usrp1/codec_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp1/codec_ctrl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/codec_ctrl.cpp b/host/lib/usrp/usrp1/codec_ctrl.cpp
index 6342bb057..f3816b377 100644
--- a/host/lib/usrp/usrp1/codec_ctrl.cpp
+++ b/host/lib/usrp/usrp1/codec_ctrl.cpp
@@ -55,6 +55,7 @@ public:
//duc control
void set_duc_freq(double freq);
+ void enable_tx_digital(bool enb);
//pga gain control
void set_tx_pga_gain(double);
@@ -421,6 +422,11 @@ void usrp1_codec_ctrl_impl::set_duc_freq(double freq)
this->send_reg(23);
}
+void usrp1_codec_ctrl_impl::enable_tx_digital(bool enb){
+ _ad9862_regs.tx_digital_pd = (enb)? 0 : 1;
+ this->send_reg(8);
+}
+
/***********************************************************************
* Codec Control ADC buffer bypass
* Disable this for AC-coupled daughterboards (TVRX)