mirror of
https://github.com/jketterl/openwebrx.git
synced 2025-12-06 07:12:09 +01:00
22 lines
558 B
Python
22 lines
558 B
Python
from owrx.source.soapy import SoapyConnectorSource, SoapyConnectorDeviceDescription
|
|
from owrx.form.input.validator import Range
|
|
from typing import List
|
|
|
|
|
|
class RadioberrySource(SoapyConnectorSource):
|
|
def getDriver(self):
|
|
return "radioberry"
|
|
|
|
|
|
class RadioberryDeviceDescription(SoapyConnectorDeviceDescription):
|
|
def getName(self):
|
|
return "RadioBerry"
|
|
|
|
def getSampleRateRanges(self) -> List[Range]:
|
|
return [
|
|
Range(48000),
|
|
Range(96000),
|
|
Range(192000),
|
|
Range(384000),
|
|
]
|