FreeDATA/freedata_server/rigdummy.py

121 lines
1.7 KiB
Python
Raw Normal View History

2022-05-09 01:27:24 +00:00
class radio:
""" """
def __init__(self):
2024-01-12 14:51:23 +00:00
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
2024-01-12 14:51:23 +00:00
def disconnect(self, **kwargs):
"""
Args:
2022-05-09 00:41:49 +00:00
**kwargs:
Returns:
"""
return True
2022-05-09 00:41:49 +00:00
def get_frequency(self):
""" """
return None
2022-05-09 00:41:49 +00:00
def get_mode(self):
""" """
return None
2022-05-09 00:41:49 +00:00
def get_level(self):
""" """
return None
def get_alc(self):
""" """
return None
2023-01-30 11:28:02 +00:00
def get_meter(self):
""" """
return None
def get_bandwidth(self):
""" """
return None
2023-02-02 19:58:03 +00:00
def get_strength(self):
""" """
return None
2023-01-04 21:49:24 +00:00
def set_bandwidth(self):
""" """
return None
def set_mode(self, mode):
"""
Args:
2022-05-09 00:41:49 +00:00
mode:
Returns:
"""
return None
2022-05-09 00:41:49 +00:00
2023-01-04 21:49:24 +00:00
def set_frequency(self, frequency):
"""
Args:
mode:
Returns:
"""
return None
2022-11-20 21:13:57 +00:00
def get_status(self):
2022-11-20 12:52:00 +00:00
"""
Args:
mode:
Returns:
"""
2023-11-18 22:50:40 +00:00
return True
def get_ptt(self):
""" """
return None
2022-05-09 00:41:49 +00:00
def set_ptt(self, state):
"""
Args:
2022-05-09 00:41:49 +00:00
state:
Returns:
"""
return state
2022-05-09 00:41:49 +00:00
def close_rig(self):
""" """
return
2024-01-12 14:51:23 +00:00
def get_parameters(self):
return self.parameters