aboutsummaryrefslogtreecommitdiffstats
path: root/src/librtlsdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librtlsdr.c')
-rw-r--r--src/librtlsdr.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/librtlsdr.c b/src/librtlsdr.c
index e2c3c73..b369a5d 100644
--- a/src/librtlsdr.c
+++ b/src/librtlsdr.c
@@ -1937,3 +1937,14 @@ int rtlsdr_i2c_read_fn(void *dev, uint8_t addr, uint8_t *buf, int len)
return -1;
}
+
+int rtlsdr_set_bias_tee(rtlsdr_dev_t *dev, int on)
+{
+ if (!dev)
+ return -1;
+
+ rtlsdr_set_gpio_output(dev, 0);
+ rtlsdr_set_gpio_bit(dev, 0, on);
+
+ return 0;
+}