diff options
Diffstat (limited to 'include/osmosdr/osmosdr_source_c.h')
-rw-r--r-- | include/osmosdr/osmosdr_source_c.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/osmosdr/osmosdr_source_c.h b/include/osmosdr/osmosdr_source_c.h index 425902d..55a9a0f 100644 --- a/include/osmosdr/osmosdr_source_c.h +++ b/include/osmosdr/osmosdr_source_c.h @@ -198,6 +198,16 @@ public: virtual double get_gain( const std::string & name, size_t chan = 0 ) = 0; /*! + * Set the IF gain for the underlying radio hardware. + * This function will automatically distribute the desired gain value over + * available IF 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_if_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 |