diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-07-05 00:28:52 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2012-07-05 00:28:52 +0200 |
commit | 6ea029d92c73be2ffde6429430c7ea971a4c390d (patch) | |
tree | 6155350db216465706da0cc725f1db4ad46e9b58 /include | |
parent | 304c7c863d77b34ba0c0c4911394a3cfc1cfa017 (diff) |
add api function to control the IF gain for E4000 tuners
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl-sdr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index 1b0d82f..a7a3ee9 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -166,6 +166,16 @@ RTLSDR_API int rtlsdr_set_tuner_gain(rtlsdr_dev_t *dev, int gain); RTLSDR_API int rtlsdr_get_tuner_gain(rtlsdr_dev_t *dev); /*! + * Set the intermediate frequency gain for the device. + * + * \param dev the device handle given by rtlsdr_open() + * \param stage intermediate frequency gain stage number (1 to 6 for E4000) + * \param gain in tenths of a dB, -30 means -3.0 dB. + * \return 0 on success + */ +RTLSDR_API int rtlsdr_set_tuner_if_gain(rtlsdr_dev_t *dev, int stage, int gain); + +/*! * Set the gain mode (automatic/manual) for the device. * Manual gain mode must be enabled for the gain setter function to work. * |