diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtl-sdr.h | 12 | ||||
| -rw-r--r-- | include/tuner_r820t.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index 2b9fff0..98c9992 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -229,6 +229,18 @@ RTLSDR_API int rtlsdr_set_testmode(rtlsdr_dev_t *dev, int on); */ RTLSDR_API int rtlsdr_set_agc_mode(rtlsdr_dev_t *dev, int on); +/*! + * Enable or disable the direct sampling mode. When enabled, the IF mode + * of the RTL2832 is activated, and rtlsdr_set_center_freq() will control + * the IF-frequency of the DDC, which can be used to tune from 0 to 28.8 MHz + * (xtal frequency of the RTL2832). + * + * \param dev the device handle given by rtlsdr_open() + * \param direct sampling mode, 1 means enabled, 0 disabled + * \return 0 on success + */ +RTLSDR_API int rtlsdr_set_direct_sampling(rtlsdr_dev_t *dev, int on); + /* streaming functions */ RTLSDR_API int rtlsdr_reset_buffer(rtlsdr_dev_t *dev); diff --git a/include/tuner_r820t.h b/include/tuner_r820t.h index 058a9f2..5d15bfe 100644 --- a/include/tuner_r820t.h +++ b/include/tuner_r820t.h @@ -5,6 +5,8 @@ #define R820T_CHECK_ADDR 0x00 #define R820T_CHECK_VAL 0x69 +#define R820T_IF_FREQ 3570000 + //*************************************************************** //* INCLUDES.H //*************************************************************** |
