diff options
| author | Steve Markgraf <steve@steve-m.de> | 2012-10-06 19:43:25 +0200 |
|---|---|---|
| committer | Steve Markgraf <steve@steve-m.de> | 2012-10-06 19:43:25 +0200 |
| commit | b70c7d99f174ac0c26cfed034f213226028739d0 (patch) | |
| tree | 1728c0aa9e2d7d9def766185c204118db9c92373 /include | |
| parent | 1e67d2a9a3047234141bc9f92d0a4032049ecf3b (diff) | |
add function for offset tuning with zero-IF tuners
Signed-off-by: Steve Markgraf <steve@steve-m.de>
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 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); |
