diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-07-18 21:24:57 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-07-18 21:24:57 +0200 |
commit | 86ec5d3b7383b31a493ac0a122386abb56be5bb4 (patch) | |
tree | 2b8128722228ae8dab4d54677613d08e6c4450f0 /lib/osmosdr_source_c_impl.h | |
parent | 0b5f48eb078cb5fedd4c675c30f9d966dd677abc (diff) |
add if gain setter API for rtl-sdr
and OsmoSDR devices
Observations lead to an useful gain
range from 15 to 30dB, a value of
24dB is used by default.
Diffstat (limited to 'lib/osmosdr_source_c_impl.h')
-rw-r--r-- | lib/osmosdr_source_c_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/osmosdr_source_c_impl.h b/lib/osmosdr_source_c_impl.h index 1bdf6b3..a34bf3b 100644 --- a/lib/osmosdr_source_c_impl.h +++ b/lib/osmosdr_source_c_impl.h @@ -51,6 +51,8 @@ public: double get_gain( size_t chan = 0 ); double get_gain( const std::string & name, size_t chan = 0 ); + double set_if_gain( double gain, size_t chan = 0 ); + std::vector< std::string > get_antennas( size_t chan = 0 ); std::string set_antenna( const std::string & antenna, size_t chan = 0 ); std::string get_antenna( size_t chan = 0 ); @@ -67,6 +69,7 @@ private: std::map< size_t, double > _freq_corr; std::map< size_t, bool > _gain_mode; std::map< size_t, double > _gain; + std::map< size_t, double > _if_gain; std::map< size_t, std::string > _antenna; std::vector< osmosdr_src_iface * > _devs; }; |