aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/codec_ctrl.cpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2011-01-17 22:52:41 -0800
committerNick Foster <nick@nerdnetworks.org>2011-01-17 22:52:41 -0800
commit24c3565f9f887045e414652edffd6b5536f8c7a5 (patch)
treea0e40a679d6a029268fc2a328f3643c40a9e880b /host/lib/usrp/usrp1/codec_ctrl.cpp
parent330a014dfc32b34a7fe5555d3ae2d87a25dc2466 (diff)
parent37116e6c5be8e2660b9dd165e04ea1af4087f1f0 (diff)
downloaduhd-24c3565f9f887045e414652edffd6b5536f8c7a5.tar.gz
uhd-24c3565f9f887045e414652edffd6b5536f8c7a5.tar.bz2
uhd-24c3565f9f887045e414652edffd6b5536f8c7a5.zip
Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv 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)