aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp1/codec_ctrl.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-09-30 14:51:41 -0700
committerJosh Blum <josh@joshknows.com>2010-09-30 14:51:41 -0700
commit2e7991fb7955fe94cdca82a094abf063c2466ee5 (patch)
tree802d9d7cad2877fb29307fc07d07b4c77f4e8c0c /host/lib/usrp/usrp1/codec_ctrl.cpp
parent2c8a7c7debf19d92065661cc1d258f97bd38e224 (diff)
parent487ef9836a4dc5654654cd7c18686ad8033fff54 (diff)
downloaduhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.tar.gz
uhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.tar.bz2
uhd-2e7991fb7955fe94cdca82a094abf063c2466ee5.zip
Merge branch 'tvrx_uhd'
Diffstat (limited to 'host/lib/usrp/usrp1/codec_ctrl.cpp')
-rw-r--r--host/lib/usrp/usrp1/codec_ctrl.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/lib/usrp/usrp1/codec_ctrl.cpp b/host/lib/usrp/usrp1/codec_ctrl.cpp
index ad16f6b3a..4aa730573 100644
--- a/host/lib/usrp/usrp1/codec_ctrl.cpp
+++ b/host/lib/usrp/usrp1/codec_ctrl.cpp
@@ -61,6 +61,9 @@ public:
float get_tx_pga_gain(void);
void set_rx_pga_gain(float, char);
float get_rx_pga_gain(char);
+
+ //rx adc buffer control
+ void bypass_adc_buffers(bool bypass);
private:
usrp1_iface::sptr _iface;
@@ -419,6 +422,17 @@ void usrp1_codec_ctrl_impl::set_duc_freq(double freq)
}
/***********************************************************************
+ * Codec Control ADC buffer bypass
+ * Disable this for AC-coupled daughterboards (TVRX)
+ * By default it is initialized TRUE.
+ **********************************************************************/
+void usrp1_codec_ctrl_impl::bypass_adc_buffers(bool bypass) {
+ _ad9862_regs.byp_buffer_a = bypass;
+ _ad9862_regs.byp_buffer_b = bypass;
+ this->send_reg(2);
+}
+
+/***********************************************************************
* Codec Control Make
**********************************************************************/
usrp1_codec_ctrl::sptr usrp1_codec_ctrl::make(usrp1_iface::sptr iface,