2021-02-20 18:09:24 +01:00
|
|
|
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
|
2024-01-17 22:39:05 +01:00
|
|
|
from owrx.form.input.validator import Range
|
2020-04-10 16:33:04 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class UhdSource(SoapyConnectorSource):
|
|
|
|
|
def getDriver(self):
|
|
|
|
|
return "uhd"
|
2021-02-20 18:09:24 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
class UhdDeviceDescription(SoapyConnectorDeviceDescription):
|
2021-04-17 17:42:08 +02:00
|
|
|
def getName(self):
|
|
|
|
|
return "Ettus Research USRP device"
|
2024-01-17 22:39:05 +01:00
|
|
|
|
|
|
|
|
def getSampleRateRanges(self) -> list[Range]:
|
|
|
|
|
# not sure since this depends of the specific model
|
|
|
|
|
return [Range(0, 64000000)]
|