FreeDATA/freedata_server/rigdummy.py
2024-04-26 14:58:10 +02:00

142 lines
No EOL
2 KiB
Python

class radio:
""" """
def __init__(self):
self.parameters = {
'frequency': '---',
'mode': '---',
'alc': '---',
'strength': '---',
'bandwidth': '---',
'rf': '---',
'ptt': False, # Initial PTT state is set to False
'tuner': False,
'swr': '---'
}
def connect(self, **kwargs):
"""
Args:
**kwargs:
Returns:
"""
return True
def disconnect(self, **kwargs):
"""
Args:
**kwargs:
Returns:
"""
return True
def get_frequency(self):
""" """
return None
def get_mode(self):
""" """
return None
def get_level(self):
""" """
return None
def get_alc(self):
""" """
return None
def get_meter(self):
""" """
return None
def get_bandwidth(self):
""" """
return None
def get_strength(self):
""" """
return None
def get_tuner(self):
""" """
return None
def get_swr(self):
""" """
return None
def set_bandwidth(self):
""" """
return None
def set_mode(self, mode):
"""
Args:
mode:
Returns:
"""
return None
def set_tuner(self, state):
"""
Args:
mode:
Returns:
"""
return None
def set_frequency(self, frequency):
"""
Args:
mode:
Returns:
"""
return None
def get_status(self):
"""
Args:
mode:
Returns:
"""
return True
def get_ptt(self):
""" """
return None
def set_ptt(self, state):
"""
Args:
state:
Returns:
"""
return state
def close_rig(self):
""" """
return
def get_parameters(self):
return self.parameters