Skip to main content

UvFast

Struct UvFast 

Source
pub struct UvFast;
Expand description

Fast — punctured to rate 2/3. 1600 net bps (+33 % vs AFSK 1200). Good-signal default. 63 % parity puncturing; kSR-greedy puncture selection delivers ~1 dB Eb/N0 gain over uniform-spread at the BP threshold.

Implementations§

Source§

impl UvFast

Source

pub const MODE: Mode = Mode::Fast

Puncturing posture for this sub-mode. Used by the bespoke TX / RX paths to pick the right puncture table.

Trait Implementations§

Source§

impl Clone for UvFast

Source§

fn clone(&self) -> UvFast

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UvFast

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for UvFast

Source§

fn default() -> UvFast

Returns the “default value” for a type. Read more
Source§

impl FrameLayout for UvFast

Source§

const N_DATA: u32 = 120

240 codeword bits / 2 bits-per-symbol = 120 data symbols per LDPC block. (Unpunctured. Higher-rate modes transmit fewer ch bits per block but the trait-level constant describes the mother codeword.)

Source§

const N_SYNC: u32 = 4

One Costas-4 at the head of each LDPC block.

Source§

const T_SLOT_S: f32

uvpacket frames are not slot-aligned — value is informational only. Use the duration of one LDPC-block-sized “protocol unit” so callers that expect a non-zero T_SLOT_S see something reasonable.

Source§

const N_SYMBOLS: u32 = 124

Total channel symbols per frame (= N_DATA + N_SYNC). Excludes any GFSK ramp-up / ramp-down symbols that are a shaping artifact.
Source§

const N_RAMP: u32 = 0

Extra symbol slots on each side of the frame reserved for amplitude ramp (FT4 has 1 each side = 2; FT8 has 0 — ramp absorbed into the first/last data symbol envelope). Applied at the transmitter.
Source§

const SYNC_MODE: SyncMode

Sync-symbol layout. Most WSJT protocols use SyncMode::Block with dedicated Costas blocks (FT8/FT4/FST4); WSPR uses SyncMode::Interleaved with a per-symbol sync bit. Callers that only support block sync should read SYNC_MODE.blocks() and treat an empty slice as “unsupported”.
Source§

const TX_START_OFFSET_S: f32 = 0.0

Time (seconds) from the start of the slot-audio buffer to the start of the first frame symbol — the “dt = 0” reference point used by sync, signal subtraction, and DT reporting. FT8 = 0.5, FT4 = 0.5.
Source§

const CODEWORD_INTERLEAVE: Option<&'static [u16]> = None

Optional bit interleaver: permutation table such that cw[CODEWORD_INTERLEAVE[j]] is the codeword bit transmitted at channel-bit position j. Length must equal <Self as Protocol>::Fec::N when Some. Read more
Source§

impl ModulationParams for UvFast

Source§

const NSPS: u32 = 10

1200 baud at 12 kHz sample rate → 10 samples / symbol.

Source§

const TONE_SPACING_HZ: f32 = 600.0

h = 0.5 → tone spacing = baud × h = 600 Hz.

Source§

const NDOWN: u32 = 4

12000 / 4 = 3000 Hz baseband window — clears the 800–2600 Hz tone span with margin.

Source§

const NTONES: u32 = 4

Number of FSK tones (M in M-ary FSK).
Source§

const BITS_PER_SYMBOL: u32 = 2

Information bits carried per modulated symbol (= log2(NTONES)).
Source§

const SYMBOL_DT: f32

Symbol duration in seconds (= NSPS / 12000).
Source§

const GRAY_MAP: &'static [u8]

Gray-code map: GRAY_MAP[tone_index] returns the NATURAL-bit pattern for that tone. The map covers at least the data alphabet (2^BITS_PER_SYMBOL entries) and at most the full tone set (NTONES entries). Protocols whose sync tones are part of the data alphabet (FT8 / FT4 / FST4 / WSPR) have len() == NTONES == 2^BITS_PER_SYMBOL; protocols that reserve additional sync-only tones (JT9, JT65, Q65) either trim the map to the data alphabet (JT9: 8 entries for 9 tones) or extend it with identity over the sync slots (JT65 / Q65). Pinned by tests/protocol_invariants.rs.
Source§

const GFSK_BT: f32 = 0.5

Gaussian bandwidth-time product. FT8 = 2.0, FT4 = 1.0, FST4 ≈ 1.0.
Source§

const GFSK_HMOD: f32 = 0.5

Modulation index h — the phase increment per symbol is 2π · h. FT8 and FT4 both use 1.0 (orthogonal tones at 1/T spacing).
Source§

const NFFT_PER_SYMBOL_FACTOR: u32 = 4

Per-symbol FFT size = NSPS * NFFT_PER_SYMBOL_FACTOR. FT8 = 2 (window is 2·NSPS), FT4 = 4 (window is 4·NSPS) — trade-off between frequency resolution and time localisation.
Source§

const NSTEP_PER_SYMBOL: u32 = 2

Coarse-sync time-step = NSPS / NSTEP_PER_SYMBOL. FT8 = 4 (quarter-symbol resolution), FT4 = 1 (symbol-granular).
Source§

const LLR_SCALE: f32 = 2.83

LLR scale factor applied after standard-deviation normalisation. FT8 uses 2.83 (empirical, from WSJT-X ft8b.f90). Different bits-per-symbol counts may shift the optimum — FT4’s 2-bit LLR dynamics are not identical to FT8’s 3-bit case.
Source§

impl Protocol for UvFast

Source§

const ID: ProtocolId = ProtocolId::UvPacket

Runtime tag used at FFI / WASM boundaries.
Source§

type Fec = Ldpc240_101

FEC codec carrying N_DATA * BITS_PER_SYMBOL coded bits.
Source§

type Msg = UvPacketRawMessage

Message codec consuming the FEC-decoded information bits.
Source§

impl Copy for UvFast

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.