Skip to main content

demodulate_8psk

Function demodulate_8psk 

Source
pub fn demodulate_8psk(
    symbols_i: &[f32],
    symbols_q: &[f32],
    n_bits: usize,
    noise_var: f32,
    scale: f32,
    llr: &mut [i16],
)
Expand description

Demodulates 8PSK symbols to soft-decision i16 LLRs.

Uses the max-log-MAP approximation: for each of the 3 bits per symbol, computes the difference between the minimum squared distance to constellation points where that bit is 0 vs 1.

Produces n_bits LLRs (3 per symbol, MSB first).