aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmosdr/osmosdr_source_c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/osmosdr/osmosdr_source_c.h')
-rw-r--r--include/osmosdr/osmosdr_source_c.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/osmosdr/osmosdr_source_c.h b/include/osmosdr/osmosdr_source_c.h
index f5d603a..fae0f05 100644
--- a/include/osmosdr/osmosdr_source_c.h
+++ b/include/osmosdr/osmosdr_source_c.h
@@ -146,6 +146,22 @@ public:
size_t chan = 0 ) = 0;
/*!
+ * Set the gain mode for the underlying radio hardware.
+ * This might be supported only for certain hardware types.
+ * \param mode the gain mode (true means manual gain mode)
+ * \param chan the channel index 0 to N-1
+ * \return the actual gain mode
+ */
+ virtual bool set_gain_mode( bool mode, size_t chan = 0 ) = 0;
+
+ /*!
+ * Get the gain mode selected for the underlying radio hardware.
+ * \param chan the channel index 0 to N-1
+ * \return the actual gain mode
+ */
+ virtual bool get_gain_mode( size_t chan = 0 ) = 0;
+
+ /*!
* Set the gain for the underlying radio hardware.
* This function will automatically distribute the desired gain value over
* available gain stages in an appropriate way and return the actual value.