aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-04-13 23:12:22 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-04-13 23:12:22 +0200
commit448206b2d2a932d583c502a0ba0f55fd9ab1800b (patch)
tree860fb740ccb3b65ce58cfb91205d86ed34a1404d /include
parent7b66bb860a9394c5f4989a9444d7f08eaa53aed9 (diff)
hackrf: implement full control for RF/IF/BB gain stages
the following named gain stages are available: RF: MGA-81563, switchable 0 or 14dB IF: MAX2837 LNA, 0 to 40dB in 8dB steps BB: MAX2837 VGA, 0 to 62dB in 2dB steps
Diffstat (limited to 'include')
-rw-r--r--include/osmosdr/osmosdr_source_c.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/osmosdr/osmosdr_source_c.h b/include/osmosdr/osmosdr_source_c.h
index 453f592..dd4505c 100644
--- a/include/osmosdr/osmosdr_source_c.h
+++ b/include/osmosdr/osmosdr_source_c.h
@@ -208,6 +208,16 @@ public:
virtual double set_if_gain( double gain, size_t chan = 0 ) = 0;
/*!
+ * Set the BB gain for the underlying radio hardware.
+ * This function will automatically distribute the desired gain value over
+ * available BB gain stages in an appropriate way and return the actual value.
+ * \param gain the gain in dB
+ * \param chan the channel index 0 to N-1
+ * \return the actual gain in dB
+ */
+ virtual double set_bb_gain( double gain, size_t chan = 0 ) = 0;
+
+ /*!
* Get the available antennas of the underlying radio hardware.
* \param chan the channel index 0 to N-1
* \return a vector of strings containing the names of available antennas
@@ -226,7 +236,7 @@ public:
/*!
* Get the actual underlying radio hardware antenna setting.
* \param chan the channel index 0 to N-1
- * \return antenna the actual antenna's name
+ * \return the actual antenna's name
*/
virtual std::string get_antenna( size_t chan = 0 ) = 0;