-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
I want to add a GPIO interface to the Soapy RTL-SDR driver. I'm designing an automatic antenna tuner that I want to control using the GPIO pins on the RTL-SDR.
The Blade RF Soapy driver has a GPIO interface. I'd like to implement a similar interface for the RTL-SDR:
void writeGPIO(const std::string &bank, const unsigned value);
void writeGPIO(const std::string &bank, const unsigned value, const unsigned mask);
The issue is that the librtlsdr driver supports these changing these pins with rtlsdr_set_gpio_bit, but this function is not public by default.
So I have a couple questions:
- On the Soapy side, does this API make sense?
- What should I do about making that function public in the librtlsdr driver? Is there a way to check whether that function is available when compiling, either in a future version of the driver or a custom fork?
Thanks.