diff options
author | Steve Markgraf <steve@steve-m.de> | 2012-05-17 23:51:59 +0200 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2012-05-17 23:51:59 +0200 |
commit | fdc7bc978bf423f2663b10bb8f6cbd69879d9c02 (patch) | |
tree | 87a05fe05dbc9864784010eb5eab59fd7e90cbd2 /include | |
parent | 73f54be2ed33eb08ad8175b53e403037929a2d05 (diff) |
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 <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 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); |