FreeDATA/tnc/queues.py

29 lines
876 B
Python
Raw Normal View History

"""
Hold queues used by more than one module to eliminate cyclic imports.
"""
import queue
import static
from global_instances import ARQ, AudioParam, Beacon, Channel, Daemon, HamlibParam, ModemParam, Station, TCIParam, TNC
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()
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()
# 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)
# Commands we want to send to rigctld
RIGCTLD_COMMAND_QUEUE = queue.Queue()