openwebrx-clone/owrx/source/rtl_sdr_soapy.py

20 lines
704 B
Python
Raw Normal View History

2021-02-20 17:09:24 +00:00
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
from owrx.form import Input
from owrx.form.device import BiasTeeInput, DirectSamplingInput
from typing import List
class RtlSdrSoapySource(SoapyConnectorSource):
def getSoapySettingsMappings(self):
mappings = super().getSoapySettingsMappings()
mappings.update({"direct_sampling": "direct_samp", "bias_tee": "biastee"})
return mappings
2020-01-10 19:50:56 +00:00
def getDriver(self):
return "rtlsdr"
2021-02-20 17:09:24 +00:00
class RtlSdrSoapyDeviceDescription(SoapyConnectorDeviceDescription):
def getInputs(self) -> List[Input]:
return self.mergeInputs(super().getInputs(), [BiasTeeInput(), DirectSamplingInput()])