aboutsummaryrefslogtreecommitdiffstats
path: root/gr-uhd/lib/usrp_source_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r--gr-uhd/lib/usrp_source_impl.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc
index 0a7dd0050..83ec74fa8 100644
--- a/gr-uhd/lib/usrp_source_impl.cc
+++ b/gr-uhd/lib/usrp_source_impl.cc
@@ -159,6 +159,17 @@ namespace gr {
return _dev->set_rx_gain(gain, name, chan);
}
+ void
+ usrp_source_impl::set_rx_agc(const bool enable, size_t chan)
+ {
+#if UHD_VERSION >= 30803
+ chan = _stream_args.channels[chan];
+ return _dev->set_rx_agc(enable, chan);
+#else
+ throw std::runtime_error("not implemented in this version");
+#endif
+ }
+
void usrp_source_impl::set_normalized_gain(double norm_gain, size_t chan)
{
#ifdef UHD_USRP_MULTI_USRP_NORMALIZED_GAIN