diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2015-02-20 10:51:45 -0800 |
---|---|---|
committer | Julian Arnold <julian.arnold@ettus.com> | 2015-02-20 11:01:00 -0800 |
commit | 2b06c3815551c99d7691a7aa3dbcf6eaedc9e998 (patch) | |
tree | cd18e178c980b91d467de20ccb06a362a6a55987 /host/lib/usrp/common/ad9361_ctrl.hpp | |
parent | 4602ea9148e5e36fefca6402b7dcc5a1104e7410 (diff) | |
download | uhd-2b06c3815551c99d7691a7aa3dbcf6eaedc9e998.tar.gz uhd-2b06c3815551c99d7691a7aa3dbcf6eaedc9e998.tar.bz2 uhd-2b06c3815551c99d7691a7aa3dbcf6eaedc9e998.zip |
b2xx: dc offset and iq imbalance correction control
Diffstat (limited to 'host/lib/usrp/common/ad9361_ctrl.hpp')
-rw-r--r-- | host/lib/usrp/common/ad9361_ctrl.hpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/host/lib/usrp/common/ad9361_ctrl.hpp b/host/lib/usrp/common/ad9361_ctrl.hpp index f831f870d..94eee608e 100644 --- a/host/lib/usrp/common/ad9361_ctrl.hpp +++ b/host/lib/usrp/common/ad9361_ctrl.hpp @@ -25,6 +25,7 @@ #include <boost/shared_ptr.hpp> #include <ad9361_device.h> #include <string> +#include <complex> namespace uhd { namespace usrp { @@ -95,7 +96,19 @@ public: //! tune the given frontend, return the exact value virtual double tune(const std::string &which, const double value) = 0; - //! turn on/off data port loopback + //! set the DC offset for I and Q manually + virtual void set_dc_offset(const std::string &which, const std::complex<double> value) = 0; + + //! 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; + + //! enable or disable the quadrature calibration + virtual void set_iq_balance_auto(const std::string &which, const bool on) = 0; + + //! turn on/off Catalina's data port loopback virtual void data_port_loopback(const bool on) = 0; //! read internal RSSI sensor |