openwebrx/owrx/source/hackrf.py

16 lines
409 B
Python
Raw Normal View History

2021-02-20 18:09:24 +01:00
from .soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
2020-05-30 22:58:31 +02:00
class HackrfSource(SoapyConnectorSource):
2020-05-30 23:03:43 +02:00
def getSoapySettingsMappings(self):
mappings = super().getSoapySettingsMappings()
mappings.update({"bias_tee": "bias_tx"})
return mappings
2020-05-30 22:58:31 +02:00
def getDriver(self):
2021-01-20 17:01:46 +01:00
return "hackrf"
2021-02-20 18:09:24 +01:00
class HackrfDeviceDescription(SoapyConnectorDeviceDescription):
pass