From b70c7d99f174ac0c26cfed034f213226028739d0 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Sat, 6 Oct 2012 19:43:25 +0200 Subject: add function for offset tuning with zero-IF tuners Signed-off-by: Steve Markgraf --- 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 956b62b..0b130bb 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -241,6 +241,16 @@ RTLSDR_API int rtlsdr_set_agc_mode(rtlsdr_dev_t *dev, int on); */ RTLSDR_API int rtlsdr_set_direct_sampling(rtlsdr_dev_t *dev, int on); +/*! + * Enable or disable offset tuning for zero-IF tuners, which allows to avoid + * problems caused by the DC offset of the ADCs and 1/f noise. + * + * \param dev the device handle given by rtlsdr_open() + * \param on 0 means disabled, 1 enabled + * \return 0 on success + */ +RTLSDR_API int rtlsdr_set_offset_tuning(rtlsdr_dev_t *dev, int on); + /* streaming functions */ RTLSDR_API int rtlsdr_reset_buffer(rtlsdr_dev_t *dev); -- cgit v1.3.1