aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/usrp2/codec_ctrl.hpp
diff options
context:
space:
mode:
authorNick Foster <nick@nerdnetworks.org>2010-07-28 15:40:43 -0700
committerNick Foster <nick@nerdnetworks.org>2010-07-28 15:40:43 -0700
commit8784cf70df692066f224ddf58d624b148ea98301 (patch)
treedf0ea9bc2594316da79997933e0dd117a52d8311 /host/lib/usrp/usrp2/codec_ctrl.hpp
parente5722d61aa2b523991f5388d9bda0f56f43f79bd (diff)
downloaduhd-8784cf70df692066f224ddf58d624b148ea98301.tar.gz
uhd-8784cf70df692066f224ddf58d624b148ea98301.tar.bz2
uhd-8784cf70df692066f224ddf58d624b148ea98301.zip
ADC gain control works.
Separated digital gain and fine gain correction into separate buckets. Changed the rounding policy of gain_group to floor() rather than round().
Diffstat (limited to 'host/lib/usrp/usrp2/codec_ctrl.hpp')
-rw-r--r--host/lib/usrp/usrp2/codec_ctrl.hpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/host/lib/usrp/usrp2/codec_ctrl.hpp b/host/lib/usrp/usrp2/codec_ctrl.hpp
index d485690f6..57a37b94b 100644
--- a/host/lib/usrp/usrp2/codec_ctrl.hpp
+++ b/host/lib/usrp/usrp2/codec_ctrl.hpp
@@ -42,10 +42,18 @@ public:
/*!
* Set the digital gain on the USRP2+ ADC (ADS62P44).
- * \param gain from 0-6.5dB
+ * \param gain from 0-6dB
*/
virtual void set_rx_digital_gain(float gain) = 0;
+
+ /*!
+ * Set the digital gain correction on the USRP2+ ADC (ADS62P44).
+ * \param gain from 0-0.5dB
+ */
+
+ virtual void set_rx_digital_fine_gain(float gain) = 0;
+
};
#endif /* INCLUDED_CODEC_CTRL_HPP */