diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2015-02-23 17:08:21 -0800 |
---|---|---|
committer | Julian Arnold <julian.arnold@ettus.com> | 2015-02-23 17:47:27 -0800 |
commit | 566dbc2b5d0751167c9d868743dbebfff4d22afe (patch) | |
tree | 2648136464cf6f1fc32719649a0c0b070d0f94b5 /host/lib/usrp/e300/e300_network.cpp | |
parent | 2b06c3815551c99d7691a7aa3dbcf6eaedc9e998 (diff) | |
download | uhd-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/e300/e300_network.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_network.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_network.cpp b/host/lib/usrp/e300/e300_network.cpp index 7ed83c6c6..3396931e3 100644 --- a/host/lib/usrp/e300/e300_network.cpp +++ b/host/lib/usrp/e300/e300_network.cpp @@ -229,6 +229,12 @@ static void e300_codec_ctrl_tunnel( case codec_xact_t::ACTION_GET_TEMPERATURE: out->temp = _codec_ctrl->get_temperature().to_real(); break; + case codec_xact_t::ACTION_SET_DC_OFFSET_AUTO: + _codec_ctrl->set_dc_offset_auto(which_str, in->use_dc_correction == 1); + break; + case codec_xact_t::ACTION_SET_IQ_BALANCE_AUTO: + _codec_ctrl->set_iq_balance_auto(which_str, in->use_iq_correction == 1); + break; default: UHD_MSG(status) << "Got unknown request?!" << std::endl; //Zero out actions to fail this request on client |