diff options
author | Julian Arnold <julian.arnold@ettus.com> | 2015-03-05 15:25:31 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-03-05 17:18:54 -0800 |
commit | b8815805372feef40b9254a320e091a40c65377e (patch) | |
tree | 69e85d3af053d3da61dc6891d84b6c632f7e39c9 /host/lib/usrp/e300/e300_network.cpp | |
parent | be14725245cca756e19c48d84aedc54064e8706c (diff) | |
download | uhd-b8815805372feef40b9254a320e091a40c65377e.tar.gz uhd-b8815805372feef40b9254a320e091a40c65377e.tar.bz2 uhd-b8815805372feef40b9254a320e091a40c65377e.zip |
e3xx: AGC support
Diffstat (limited to 'host/lib/usrp/e300/e300_network.cpp')
-rw-r--r-- | host/lib/usrp/e300/e300_network.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/usrp/e300/e300_network.cpp b/host/lib/usrp/e300/e300_network.cpp index 693e78b6e..cb06a5740 100644 --- a/host/lib/usrp/e300/e300_network.cpp +++ b/host/lib/usrp/e300/e300_network.cpp @@ -235,6 +235,15 @@ static void e300_codec_ctrl_tunnel( break; case codec_xact_t::ACTION_SET_IQ_BALANCE_AUTO: _codec_ctrl->set_iq_balance_auto(which_str, in->use_iq_correction == 1); + case codec_xact_t::ACTION_SET_AGC: + _codec_ctrl->set_agc(which_str, in->use_agc == 1); + break; + case codec_xact_t::ACTION_SET_AGC_MODE: + if(in->agc_mode == 0) { + _codec_ctrl->set_agc_mode(which_str, "slow"); + } else if (in->agc_mode == 1) { + _codec_ctrl->set_agc_mode(which_str, "fast"); + } break; default: UHD_MSG(status) << "Got unknown request?!" << std::endl; |