aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_ctrl.hpp
diff options
context:
space:
mode:
authorJulian Arnold <julian.arnold@ettus.com>2015-02-23 17:08:21 -0800
committerJulian Arnold <julian.arnold@ettus.com>2015-02-23 17:47:27 -0800
commit566dbc2b5d0751167c9d868743dbebfff4d22afe (patch)
tree2648136464cf6f1fc32719649a0c0b070d0f94b5 /host/lib/usrp/common/ad9361_ctrl.hpp
parent2b06c3815551c99d7691a7aa3dbcf6eaedc9e998 (diff)
downloaduhd-566dbc2b5d0751167c9d868743dbebfff4d22afe.tar.gz
uhd-566dbc2b5d0751167c9d868743dbebfff4d22afe.tar.bz2
uhd-566dbc2b5d0751167c9d868743dbebfff4d22afe.zip
e3xx: support for dc offset and iq balance control
Diffstat (limited to 'host/lib/usrp/common/ad9361_ctrl.hpp')
-rw-r--r--host/lib/usrp/common/ad9361_ctrl.hpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.hpp b/host/lib/usrp/common/ad9361_ctrl.hpp
index 94eee608e..5396de225 100644
--- a/host/lib/usrp/common/ad9361_ctrl.hpp
+++ b/host/lib/usrp/common/ad9361_ctrl.hpp
@@ -22,6 +22,7 @@
#include <uhd/types/ranges.hpp>
#include <uhd/types/serial.hpp>
#include <uhd/types/sensors.hpp>
+#include <uhd/exception.hpp>
#include <boost/shared_ptr.hpp>
#include <ad9361_device.h>
#include <string>
@@ -97,13 +98,21 @@ public:
virtual double tune(const std::string &which, const double value) = 0;
//! set the DC offset for I and Q manually
- virtual void set_dc_offset(const std::string &which, const std::complex<double> value) = 0;
+ void set_dc_offset(const std::string &, const std::complex<double>)
+ {
+ //This feature should not be used according to Analog Devices
+ throw uhd::runtime_error("ad9361_ctrl::set_dc_offset this feature is not supported on this device.");
+ }
//! enable or disable the BB/RF DC tracking feature
virtual void set_dc_offset_auto(const std::string &which, const bool on) = 0;
//! set the IQ correction value manually
- virtual void set_iq_balance(const std::string &which, const std::complex<double> value) = 0;
+ void set_iq_balance(const std::string &, const std::complex<double>)
+ {
+ //This feature should not be used according to Analog Devices
+ throw uhd::runtime_error("ad9361_ctrl::set_iq_balance this feature is not supported on this device.");
+ }
//! enable or disable the quadrature calibration
virtual void set_iq_balance_auto(const std::string &which, const bool on) = 0;