2022-07-03 17:41:06 +00:00
|
|
|
"""
|
|
|
|
Hold queues used by more than one module to eliminate cyclic imports.
|
|
|
|
"""
|
|
|
|
import queue
|
2022-09-05 08:47:03 +00:00
|
|
|
import static
|
2023-10-17 12:30:34 +00:00
|
|
|
from global_instances import ARQ, AudioParam, Beacon, Channel, Daemon, HamlibParam, ModemParam, Station, TCIParam, TNC
|
2022-07-03 17:41:06 +00:00
|
|
|
|
|
|
|
DATA_QUEUE_TRANSMIT = queue.Queue()
|
|
|
|
DATA_QUEUE_RECEIVED = queue.Queue()
|
|
|
|
|
|
|
|
# Initialize FIFO queue to store received frames
|
|
|
|
MODEM_RECEIVED_QUEUE = queue.Queue()
|
|
|
|
MODEM_TRANSMIT_QUEUE = queue.Queue()
|
2022-09-05 08:37:50 +00:00
|
|
|
|
2023-05-26 12:25:48 +00:00
|
|
|
# Initialize FIFO queue to store received frames
|
|
|
|
MESH_RECEIVED_QUEUE = queue.Queue()
|
2023-06-11 07:12:40 +00:00
|
|
|
MESH_QUEUE_TRANSMIT = queue.Queue()
|
2023-06-13 12:03:36 +00:00
|
|
|
MESH_SIGNALLING_TABLE = []
|
2023-06-11 07:12:40 +00:00
|
|
|
|
2023-05-26 12:25:48 +00:00
|
|
|
|
2023-02-21 10:57:14 +00:00
|
|
|
# Initialize FIFO queue to store audio frames
|
|
|
|
AUDIO_RECEIVED_QUEUE = queue.Queue()
|
|
|
|
AUDIO_TRANSMIT_QUEUE = queue.Queue()
|
|
|
|
|
2022-09-05 08:37:50 +00:00
|
|
|
# Initialize FIFO queue to finally store received data
|
2023-04-27 19:43:56 +00:00
|
|
|
RX_BUFFER = queue.Queue(maxsize=ARQ.rx_buffer_size)
|
2023-01-04 18:26:11 +00:00
|
|
|
|
|
|
|
# Commands we want to send to rigctld
|
|
|
|
RIGCTLD_COMMAND_QUEUE = queue.Queue()
|