aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2012-05-05 00:43:32 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2012-05-05 00:43:32 +0200
commit3a47e3661c616de677a813adb31e0d325f8ae0f1 (patch)
tree1989c8399eda4836f10b4dcc3a4d38ca596e3c35 /include
parentf0ac70fa41913f607db627d209e3cc85cf9ffd6f (diff)
add api for manual gain mode control
Diffstat (limited to 'include')
-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.