summaryrefslogtreecommitdiff
path: root/gr-uhd/include/gnuradio/uhd/usrp_source.h
diff options
context:
space:
mode:
authorPeter Witkowski <pete@deepwavedigital.com>2019-04-15 15:03:56 -0600
committerMartin Braun <martin.braun@ettus.com>2019-05-17 21:15:46 -0700
commit4e4f44c726556496c420bceb87ccafe6843916f7 (patch)
tree9efa4a511e6ecaea19c1700d8dbaad24b076473f /gr-uhd/include/gnuradio/uhd/usrp_source.h
parent96b1eec42dcfade96d15320b44b2936561f9fb9c (diff)
uhd: Add set_rx_agc() API call and GRC bindings
This adds the set_rx_agc() call from UHD to the USRP source.
Diffstat (limited to 'gr-uhd/include/gnuradio/uhd/usrp_source.h')
-rw-r--r--gr-uhd/include/gnuradio/uhd/usrp_source.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gr-uhd/include/gnuradio/uhd/usrp_source.h b/gr-uhd/include/gnuradio/uhd/usrp_source.h
index 60413e35d4..f3ecdeb796 100644
--- a/gr-uhd/include/gnuradio/uhd/usrp_source.h
+++ b/gr-uhd/include/gnuradio/uhd/usrp_source.h
@@ -253,6 +253,15 @@ namespace gr {
size_t chan = 0) = 0;
/*!
+ * Enable/disable the RX AGC module.
+ * If AGC is turned on, all manual gain settings are ignored.
+ *
+ * \param enable true to enable the AGC
+ * \param chan the channel index 0 to N-1
+ */
+ virtual void set_rx_agc(const bool enable, size_t chan = 0) = 0;
+
+ /*!
* Convenience function for finite data acquisition.
* This is not to be used with the scheduler; rather,
* one can request samples from the USRP in python.