From 18cda8029ff7ab1255579d81b0b27de68dacc88e Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 26 Mar 2018 14:48:12 -0700 Subject: usrp2: Re-add ability to modulate in the DAC This partially reverts b29e80cc. That commit fixed a bug with numerical overflows, but also removed the ability to tune using the DAC, effectively reducing the DSP tuning range. This commit allows to tune within +/- 200 MHz using a combination of both the DAC and the DSP tuning in the FPGA. Reviewed-by: Derek Kozek --- host/lib/usrp/usrp2/codec_ctrl.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'host/lib/usrp/usrp2/codec_ctrl.hpp') diff --git a/host/lib/usrp/usrp2/codec_ctrl.hpp b/host/lib/usrp/usrp2/codec_ctrl.hpp index e32b508e9..ac808e357 100644 --- a/host/lib/usrp/usrp2/codec_ctrl.hpp +++ b/host/lib/usrp/usrp2/codec_ctrl.hpp @@ -56,6 +56,13 @@ public: virtual void set_rx_digital_fine_gain(double gain) = 0; + /*! Return the internal interpolation on the TX side. This is the factor + * between the rate of incoming samples and rate at which the DAC is + * actually clocked. Values > 1 will enable features, such as internal + * modulation. + */ + virtual size_t get_tx_interpolation() const = 0; + }; #endif /* INCLUDED_CODEC_CTRL_HPP */ -- cgit v1.2.3