summaryrefslogtreecommitdiff
path: root/lib/jtty/jtty_fec_mod.f90
blob: b73a3e626566e51e95e8d14f1a4b2e070393e48e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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