diff options
author | Jiří Pinkava <j-pi@seznam.cz> | 2015-03-17 13:21:09 +0100 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2015-05-16 00:38:01 +0200 |
commit | 92df068dc5acae9e671eefe1f80626319819c52b (patch) | |
tree | 8a8df5c05b8c237c2d97dbd9807da6b582c21af5 /include | |
parent | d892279085491f9c610388da89bc701ef6ac632c (diff) |
New functions rtlsdr_set_tuner_bandwidth()
Signed-off-by: Steve Markgraf <steve@steve-m.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl-sdr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index 489e117..fe64bea 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -216,6 +216,15 @@ RTLSDR_API int rtlsdr_get_tuner_gains(rtlsdr_dev_t *dev, int *gains); RTLSDR_API int rtlsdr_set_tuner_gain(rtlsdr_dev_t *dev, int gain); /*! + * Set the bandwidth for the device. + * + * \param dev the device handle given by rtlsdr_open() + * \param bw bandwidth in Hz. Zero means automatic BW selection. + * \return 0 on success + */ +RTLSDR_API int rtlsdr_set_tuner_bandwidth(rtlsdr_dev_t *dev, uint32_t bw); + +/*! * Get actual gain the device is configured to. * * \param dev the device handle given by rtlsdr_open() |