openwebrx-clone/csdr/chain/demodulator.py
2021-08-31 22:46:11 +02:00

35 lines
597 B
Python

from csdr.chain import Chain
from abc import ABC, abstractmethod
class BaseDemodulatorChain(Chain):
def supportsSquelch(self) -> bool:
return True
class SecondaryDemodulator(Chain):
pass
class FixedAudioRateChain(ABC):
@abstractmethod
def getFixedAudioRate(self) -> int:
pass
class FixedIfSampleRateChain(ABC):
@abstractmethod
def getFixedIfSampleRate(self) -> int:
pass
class DialFrequencyReceiver(ABC):
@abstractmethod
def setDialFrequency(self, frequency: int) -> None:
pass
# marker interface
class HdAudio:
pass