FreeDATA/modem/rigdummy.py
2024-01-12 15:51:23 +01:00

121 lines
No EOL
1.7 KiB
Python

class radio:
""" """
def __init__(self):
self.parameters = {
'frequency': '---',
'mode': '---',
'alc': '---',
'strength': '---',
'bandwidth': '---',
'rf': '---',
'ptt': False # Initial PTT state is set to False
}
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 set_bandwidth(self):
""" """
return None
def set_mode(self, mode):
"""
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