summaryrefslogtreecommitdiff
path: root/lib/jtty/jtty_fec_mod.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /lib/jtty/jtty_fec_mod.f90
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'lib/jtty/jtty_fec_mod.f90')
-rw-r--r--lib/jtty/jtty_fec_mod.f9019
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/jtty/jtty_fec_mod.f90 b/lib/jtty/jtty_fec_mod.f90
new file mode 100644
index 00000000..b73a3e62
--- /dev/null
+++ b/lib/jtty/jtty_fec_mod.f90
@@ -0,0 +1,19 @@
+module jtty_fec
+
+! JTTY's forward-error-correction configuration: the 13-symbol 4-FSK sync
+! sequence and established TBCC/outer-check code.
+! The profile and codec APIs are re-exported so JTTY callers need one module.
+
+ use jtty_tbcc_code_profiles
+ use tbcc
+
+! The ACF of this 4FSK sync sequence has peak sidelobe level of 2/13
+! and 46 such values over the entire 25x7 lag space
+ integer :: is13(13) = [0,2,2,3,0,0,3,2,1,3,1,2,0]
+
+! Bit 33 of the 34-bit payload (see jtty_mod.f90's pack_jtty/unpack_jtty) is
+! reserved-zero in the current protocol. Assigning it requires a coordinated
+! protocol revision. Bit 34 is the "last frame of this message" flag.
+ integer, parameter :: JTTY_RESERVED_BIT = 33
+
+end module jtty_fec