diff options
Diffstat (limited to 'lib/jtty/jtty_fec_mod.f90')
| -rw-r--r-- | lib/jtty/jtty_fec_mod.f90 | 19 |
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 |
