From 6ea029d92c73be2ffde6429430c7ea971a4c390d Mon Sep 17 00:00:00 2001 From: Dimitri Stolnikov Date: Thu, 5 Jul 2012 00:28:52 +0200 Subject: add api function to control the IF gain for E4000 tuners --- include/rtl-sdr.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') 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 @@ -165,6 +165,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. -- cgit v1.3.1