Move HBP constants to domain, abstract TTS behind VoiceProvider port.pull/4/head
parent
93b0debf83
commit
bb771a744e
@ -0,0 +1,43 @@
|
||||
# ADN DMR Peer Server - HBP protocol constants (domain)
|
||||
# Copyright (C) 2026 Rodrigo Pérez, CE5RPY <ce5rpy@qmd.cl>
|
||||
#
|
||||
# Derived from ADN DMR Server / FreeDMR / HBlink. Original license:
|
||||
###############################################################################
|
||||
# Copyright (C) 2020 Simon Adlem, G7RZU <g7rzu@gb7fr.org.uk>
|
||||
# Copyright (C) 2016-2019 Cortney T. Buffington, N0MJS <n0mjs@me.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, write to the Free Software Foundation,
|
||||
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
###############################################################################
|
||||
|
||||
"""HBP frame types and protocol-level constants used across layers.
|
||||
|
||||
These are pure protocol vocabulary (no Twisted, no I/O dependencies) and
|
||||
belong in the domain layer so application use cases can reference them
|
||||
without importing infrastructure.
|
||||
"""
|
||||
|
||||
# Frame types (bits)
|
||||
HBPF_VOICE = 0x0
|
||||
HBPF_VOICE_SYNC = 0x1
|
||||
HBPF_DATA_SYNC = 0x2
|
||||
HBPF_SLT_VHEAD = 0x1
|
||||
HBPF_SLT_VTERM = 0x2
|
||||
|
||||
# Protocol version
|
||||
VER = 5
|
||||
PROTO_VER = 5
|
||||
|
||||
# Stream timeout (seconds) for contention (legacy const.py)
|
||||
STREAM_TO = 0.36
|
||||
Loading…
Reference in new issue