create device descriptions for all

This commit is contained in:
Jakob Ketterl 2021-02-20 18:09:24 +01:00
parent 0e64f15e65
commit 0ab6729fcc
18 changed files with 92 additions and 21 deletions

View File

@ -1,5 +1,4 @@
from owrx.command import Flag
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class AirspySource(SoapyConnectorSource):
@ -15,3 +14,7 @@ class AirspySource(SoapyConnectorSource):
def getDriver(self):
return "airspy"
class AirspyDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class AirspyhfSource(SoapyConnectorSource):
def getDriver(self):
return "airspyhf"
class AirspyhfDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from abc import ABCMeta
from . import SdrSource
from owrx.source import SdrSource, SdrDeviceDescription
import logging
@ -51,3 +51,7 @@ class DirectSource(SdrSource, metaclass=ABCMeta):
# override this in subclasses, if necessary
def sleepOnRestart(self):
pass
class DirectSourceDeviceDescription(SdrDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from owrx.source.soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class FcdppSource(SoapyConnectorSource):
def getDriver(self):
return "fcdpp"
class FcdppDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from owrx.command import Option
from .direct import DirectSource
from owrx.source.direct import DirectSource, DirectSourceDeviceDescription
from subprocess import Popen
import logging
@ -37,3 +37,7 @@ class FifiSdrSource(DirectSource):
def onPropertyChange(self, changes):
if "center_freq" in changes:
self.sendRockProgFrequency(changes["center_freq"])
class FifiSdrDeviceDescription(DirectSourceDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource
from .soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class HackrfSource(SoapyConnectorSource):
@ -9,3 +9,7 @@ class HackrfSource(SoapyConnectorSource):
def getDriver(self):
return "hackrf"
class HackrfDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from .connector import ConnectorSource
from owrx.command import Flag, Option
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Option
# In order to use an HPSDR radio, you must install hpsdrconnector from https://github.com/jancona/hpsdrconnector
# These are the command line options available:
@ -33,3 +33,7 @@ class HpsdrSource(ConnectorSource):
}
)
)
class HpsdrDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class LimeSdrSource(SoapyConnectorSource):
def getDriver(self):
return "lime"
class LimeSdrDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,5 +1,5 @@
from .direct import DirectSource
from owrx.command import Flag, Option
from owrx.source.direct import DirectSource, DirectSourceDeviceDescription
from owrx.command import Option
#
@ -35,3 +35,7 @@ class PerseussdrSource(DirectSource):
}
)
)
class PerseussdrDeviceDescription(DirectSourceDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class PlutoSdrSource(SoapyConnectorSource):
def getDriver(self):
return "plutosdr"
class PlutoSdrDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RadioberrySource(SoapyConnectorSource):
def getDriver(self):
return "radioberry"
class RadioberryDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RedPitayaSource(SoapyConnectorSource):
def getDriver(self):
return "redpitaya"
class RedPitayaDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class RtlSdrSoapySource(SoapyConnectorSource):
@ -9,3 +9,7 @@ class RtlSdrSoapySource(SoapyConnectorSource):
def getDriver(self):
return "rtlsdr"
class RtlSdrSoapyDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .connector import ConnectorSource
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Flag, Option, Argument
@ -16,3 +16,7 @@ class RtlTcpSource(ConnectorSource):
}
)
)
class RtlTcpDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from owrx.source.connector import ConnectorSource
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
from owrx.command import Argument, Flag, Option
@ -16,3 +16,7 @@ class RundsSource(ConnectorSource):
}
)
)
class RundsDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from owrx.source.connector import ConnectorSource
from owrx.source.connector import ConnectorSource, ConnectorDeviceDescription
class SddcSource(ConnectorSource):
def getCommandMapper(self):
return super().getCommandMapper().setBase("sddc_connector")
class SddcDeviceDescription(ConnectorDeviceDescription):
pass

View File

@ -1,4 +1,4 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class SoapyRemoteSource(SoapyConnectorSource):
@ -15,3 +15,7 @@ class SoapyRemoteSource(SoapyConnectorSource):
if "remote_driver" in values and values["remote_driver"] is not None:
params += [{"remote:driver": values["remote_driver"]}]
return params
class SoapyRemoteDeviceDescription(SoapyConnectorDeviceDescription):
pass

View File

@ -1,6 +1,10 @@
from .soapy import SoapyConnectorSource
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
class UhdSource(SoapyConnectorSource):
def getDriver(self):
return "uhd"
class UhdDeviceDescription(SoapyConnectorDeviceDescription):
pass