mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
17 lines
492 B
Python
17 lines
492 B
Python
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
|
|
from owrx.form.input.validator import Range
|
|
|
|
|
|
class UhdSource(SoapyConnectorSource):
|
|
def getDriver(self):
|
|
return "uhd"
|
|
|
|
|
|
class UhdDeviceDescription(SoapyConnectorDeviceDescription):
|
|
def getName(self):
|
|
return "Ettus Research USRP device"
|
|
|
|
def getSampleRateRanges(self) -> list[Range]:
|
|
# not sure since this depends of the specific model
|
|
return [Range(0, 64000000)]
|