From fdc7bc978bf423f2663b10bb8f6cbd69879d9c02 Mon Sep 17 00:00:00 2001 From: Steve Markgraf Date: Thu, 17 May 2012 23:51:59 +0200 Subject: add an initial version of rtl_test This tool allows to check for lost samples (and thus check the USB connection), as well as benchmark the Elonics E4000 tunable range. (-t switch) 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 6c342d1..a5b3dfd 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -126,6 +126,16 @@ RTLSDR_API int rtlsdr_set_sample_rate(rtlsdr_dev_t *dev, uint32_t rate); */ RTLSDR_API uint32_t rtlsdr_get_sample_rate(rtlsdr_dev_t *dev); +/*! + * Enable test mode that returns an 8 bit counter instead of the samples. + * The counter is generated inside the RTL2832. + * + * \param dev the device handle given by rtlsdr_open() + * \param test mode, 1 means enabled, 0 disabled + * \return 0 on success + */ +RTLSDR_API int rtlsdr_set_testmode(rtlsdr_dev_t *dev, int on); + /* streaming functions */ RTLSDR_API int rtlsdr_reset_buffer(rtlsdr_dev_t *dev); -- cgit v1.3.1