aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/usrp/common/ad9361_driver/ad9361_device.h
diff options
context:
space:
mode:
authorJulian Arnold <julian.arnold@ettus.com>2015-02-20 10:51:45 -0800
committerJulian Arnold <julian.arnold@ettus.com>2015-02-20 11:01:00 -0800
commit2b06c3815551c99d7691a7aa3dbcf6eaedc9e998 (patch)
treecd18e178c980b91d467de20ccb06a362a6a55987 /host/lib/usrp/common/ad9361_driver/ad9361_device.h
parent4602ea9148e5e36fefca6402b7dcc5a1104e7410 (diff)
downloaduhd-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_driver/ad9361_device.h')
-rw-r--r--host/lib/usrp/common/ad9361_driver/ad9361_device.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/common/ad9361_driver/ad9361_device.h b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
index 8f64922f8..93dc413d5 100644
--- a/host/lib/usrp/common/ad9361_driver/ad9361_device.h
+++ b/host/lib/usrp/common/ad9361_driver/ad9361_device.h
@@ -72,6 +72,12 @@ public:
*/
double get_average_temperature(const double cal_offset = -30.0, const size_t num_samples = 3);
+ /* Turn on/off AD9361's RX DC offset correction */
+ void set_dc_offset_auto(direction_t direction, const bool on);
+
+ /* Turn on/off AD9361's RX IQ imbalance correction */
+ void set_iq_balance_auto(direction_t direction, const bool on);
+
//Constants
static const double AD9361_MAX_GAIN;
static const double AD9361_MAX_CLOCK_RATE;
@@ -102,6 +108,7 @@ private: //Methods
double _tune_helper(direction_t direction, const double value);
double _setup_rates(const double rate);
double _get_temperature(const double cal_offset, const double timeout = 0.1);
+ void _configure_bb_rf_dc_tracking(const bool on);
private: //Members
typedef struct {
@@ -130,6 +137,8 @@ private: //Members
chip_regs_t _regs;
//Synchronization
boost::recursive_mutex _mutex;
+ bool _use_dc_offset_correction;
+ bool _use_iq_balance_correction;
};
}} //namespace