diff options
author | ZoRo <dos21h@gmail.com> | 2022-02-18 20:33:58 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2022-02-18 20:33:58 +0000 |
commit | d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d (patch) | |
tree | 0f10ba2174be3335d75b63975b2b2c0795a8aa2a /include | |
parent | f8b84cf48099fb020b1174c8cc6195dde42308c3 (diff) | |
download | r820t-d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d.tar.gz r820t-d696ea3a6d640cd96a1ba2ac39bdc51d7f884e1d.zip |
Update to latest
Diffstat (limited to 'include')
-rw-r--r-- | include/rtl-sdr.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/rtl-sdr.h b/include/rtl-sdr.h index fe64bea..d64701e 100644 --- a/include/rtl-sdr.h +++ b/include/rtl-sdr.h @@ -380,6 +380,26 @@ RTLSDR_API int rtlsdr_read_async(rtlsdr_dev_t *dev, */ RTLSDR_API int rtlsdr_cancel_async(rtlsdr_dev_t *dev); +/*! + * Enable or disable the bias tee on GPIO PIN 0. + * + * \param dev the device handle given by rtlsdr_open() + * \param on 1 for Bias T on. 0 for Bias T off. + * \return -1 if device is not initialized. 0 otherwise. + */ +RTLSDR_API int rtlsdr_set_bias_tee(rtlsdr_dev_t *dev, int on); + +/*! + * Enable or disable the bias tee on the given GPIO pin. + * + * \param dev the device handle given by rtlsdr_open() + * \param gpio the gpio pin to configure as a Bias T control. + * \param on 1 for Bias T on. 0 for Bias T off. + * \return -1 if device is not initialized. 0 otherwise. + */ +RTLSDR_API int rtlsdr_set_bias_tee_gpio(rtlsdr_dev_t *dev, int gpio, int on); + + #ifdef __cplusplus } #endif |