2022-05-09 01:27:24 +00:00
|
|
|
|
2022-02-02 20:12:16 +00:00
|
|
|
class radio:
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-05-26 01:23:30 +00:00
|
|
|
|
2022-02-02 20:12:16 +00:00
|
|
|
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
|
2022-02-02 20:12:16 +00:00
|
|
|
|
2024-01-12 14:51:23 +00:00
|
|
|
def disconnect(self, **kwargs):
|
2022-03-04 15:50:32 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
2022-05-09 00:41:49 +00:00
|
|
|
**kwargs:
|
2022-03-04 15:50:32 +00:00
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
"""
|
2022-02-02 20:12:16 +00:00
|
|
|
return True
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2022-02-02 20:12:16 +00:00
|
|
|
def get_frequency(self):
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-02-02 20:12:16 +00:00
|
|
|
return None
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2022-02-02 20:12:16 +00:00
|
|
|
def get_mode(self):
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-02-02 20:12:16 +00:00
|
|
|
return None
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2023-01-30 11:08:45 +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):
|
2023-01-30 11:08:45 +00:00
|
|
|
""" """
|
|
|
|
return None
|
|
|
|
|
2022-05-28 12:08:33 +00:00
|
|
|
def get_bandwidth(self):
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-02-02 20:12:16 +00:00
|
|
|
return None
|
|
|
|
|
2023-02-02 19:58:03 +00:00
|
|
|
def get_strength(self):
|
|
|
|
""" """
|
|
|
|
return None
|
|
|
|
|
2024-04-26 09:54:24 +00:00
|
|
|
def get_tuner(self):
|
|
|
|
""" """
|
|
|
|
return None
|
|
|
|
|
|
|
|
def get_swr(self):
|
|
|
|
""" """
|
|
|
|
return None
|
|
|
|
|
2023-01-04 21:49:24 +00:00
|
|
|
def set_bandwidth(self):
|
|
|
|
""" """
|
|
|
|
return None
|
2022-02-02 20:12:16 +00:00
|
|
|
def set_mode(self, mode):
|
2022-03-04 15:50:32 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
2022-05-09 00:41:49 +00:00
|
|
|
mode:
|
2022-03-04 15:50:32 +00:00
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
"""
|
2022-02-02 20:12:16 +00:00
|
|
|
return None
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2024-04-26 09:54:24 +00:00
|
|
|
def set_tuner(self, state):
|
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
|
|
|
mode:
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
"""
|
|
|
|
return None
|
|
|
|
|
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
|
2022-02-02 20:12:16 +00:00
|
|
|
def get_ptt(self):
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-02-02 20:12:16 +00:00
|
|
|
return None
|
2022-05-09 00:41:49 +00:00
|
|
|
|
|
|
|
def set_ptt(self, state):
|
2022-03-04 15:50:32 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
Args:
|
2022-05-09 00:41:49 +00:00
|
|
|
state:
|
2022-03-04 15:50:32 +00:00
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
|
|
|
"""
|
2022-02-02 20:12:16 +00:00
|
|
|
return state
|
2022-05-09 00:41:49 +00:00
|
|
|
|
2022-02-02 20:12:16 +00:00
|
|
|
def close_rig(self):
|
2022-03-04 15:50:32 +00:00
|
|
|
""" """
|
2022-02-02 20:12:16 +00:00
|
|
|
return
|
2024-01-12 14:51:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
def get_parameters(self):
|
|
|
|
return self.parameters
|