mfsk-core 0.4.1

Pure-Rust library for WSJT-family digital amateur-radio modes (FT8/FT4/FST4/WSPR/JT9/JT65/Q65): protocol traits, DSP, FEC codecs, message codecs, decoders and synthesisers — unified behind a zero-cost generic abstraction.
Documentation
//! # `fec::qra` — Q-ary Repeat-Accumulate (QRA) LDPC codecs
//!
//! Generic encoder + soft-decision belief-propagation decoder for the
//! QRA LDPC code family designed by Nico Palermo (IV3NWV) and used as
//! the FEC layer of WSJT-X's Q65 mode.
//!
//! Unlike the bit-LDPC codes in [`super::ldpc`] (binary parity, BP in
//! the LLR domain), QRA codes operate over **GF(2^m)** symbol
//! alphabets — for Q65 specifically, GF(64) — and run BP in the
//! **probability domain** with per-edge messages of length M=2^m.
//! Variable-to-check messages exploit the Walsh-Hadamard transform
//! ([`npfwht`]) to efficiently combine M-ary distributions across
//! repeat-accumulate parity constraints.
//!
//! ## Layout
//!
//! - [`pdmath`] — probability-vector arithmetic (init, normalise,
//!   pointwise multiply / divide, hard decision).
//! - [`npfwht`] — non-binary Walsh-Hadamard transform of size M.
//! - [`code`]   — generic [`QraCode`] encoder + BP decoder, with the
//!   code description (parity-check matrix, alphabet, dimensions)
//!   carried inside the [`QraCode`] struct itself.
//! - [`fast_fading`] / [`fading_tables`] — Doppler-spread-aware
//!   intrinsic-probability metric (Gaussian + Lorentzian models) that
//!   replaces the AWGN Bessel front end on heavily faded channels
//!   such as microwave EME.
//! - Concrete codes live in their own modules outside this one
//!   ([`super::qra15_65_64`] for `qra15_65_64_irr_e23`, the Q65 code).
//!
//! ## Reference
//!
//! Ported from <https://github.com/ja7eee/qracodes> and the Q65
//! integration in WSJT-X `lib/qra/q65/`.

pub mod code;
pub mod fading_tables;
pub mod fast_fading;
pub mod npfwht;
pub mod pdmath;
pub mod q65;

pub use code::{DecoderScratch, ExtrinsicResult, QraCode, QraCodeType};
pub use fast_fading::{FadingModel, FastFadingState, esnodb_fast_fading, intrinsics_fast_fading};
pub use q65::{Q65_LLH_THRESHOLD, Q65Codec, Q65DecodeError};