openwebrx-clone/owrx/source/sdrplay.py

25 lines
712 B
Python
Raw Normal View History

2021-02-19 14:29:17 +00:00
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class SdrplaySource(SoapyConnectorSource):
2020-03-14 00:15:25 +00:00
def getSoapySettingsMappings(self):
mappings = super().getSoapySettingsMappings()
mappings.update(
{
"bias_tee": "biasT_ctrl",
"rf_notch": "rfnotch_ctrl",
"dab_notch": "dabnotch_ctrl",
"if_mode": "if_mode",
2020-12-27 12:52:49 +00:00
"external_reference": "extref_ctrl",
}
)
2020-03-14 00:15:25 +00:00
return mappings
def getDriver(self):
return "sdrplay"
2021-02-19 14:29:17 +00:00
class SdrplayDeviceDescription(SoapyConnectorDeviceDescription):
2021-02-19 17:18:25 +00:00
def getGainStages(self):
return ["RFGR", "IFGR"]