Skip to content

Struct carrier_mpsk_state_t

ClassList > carrier_mpsk_state_t

M-PSK carrier loop state. More...

  • #include <carrier_mpsk_core.h>

Public Attributes

Type Name
float complex acc
size_t acc_n
double bn
double bn_fll
int have_prev
double k_fll
double last_error
loop_filter_state_t lf
double lock_metric
int m
lo_state_t nco
float complex prev
double prev_abs
double seed_norm_freq
size_t tsamps
double zeta

Detailed Description

Allocate with carrier_mpsk_create(), or embed by value and carrier_mpsk_init(). The carrier NCO (nco) and PI loop (lf) are public sub-components so the inline composition helpers can drive them; treat the integrate-and-dump and diagnostic fields as internal.

Public Attributes Documentation

variable acc

float complex carrier_mpsk_state_t::acc;

running coherent I&D accumulator.


variable acc_n

size_t carrier_mpsk_state_t::acc_n;

samples accumulated into acc.


variable bn

double carrier_mpsk_state_t::bn;

PLL loop noise bandwidth (retained).


variable bn_fll

double carrier_mpsk_state_t::bn_fll;

FLL-assist bandwidth (0 = pure PLL).


variable have_prev

int carrier_mpsk_state_t::have_prev;

prev valid (skip FLL on the 1st symbol).


variable k_fll

double carrier_mpsk_state_t::k_fll;

derived FLL gain (per-symbol freq pull).


variable last_error

double carrier_mpsk_state_t::last_error;

last PLL discriminator (loop stress).


variable lf

loop_filter_state_t carrier_mpsk_state_t::lf;

2nd-order carrier PI loop (PLL).


variable lock_metric

double carrier_mpsk_state_t::lock_metric;

EMA of Re(P conj a)/|P| (1 = locked).


variable m

int carrier_mpsk_state_t::m;

constellation order M (2, 4, 8).


variable nco

lo_state_t carrier_mpsk_state_t::nco;

integer carrier NCO (uint32 phase).


variable prev

float complex carrier_mpsk_state_t::prev;

previous data-wiped prompt (FLL cross).


variable prev_abs

double carrier_mpsk_state_t::prev_abs;

|previous prompt| (FLL normalization).


variable seed_norm_freq

double carrier_mpsk_state_t::seed_norm_freq;

create-time carrier freq, for reset.


variable tsamps

size_t carrier_mpsk_state_t::tsamps;

samples per symbol (integrate-and-dump).


variable zeta

double carrier_mpsk_state_t::zeta;

damping factor (retained).



The documentation for this class was generated from the following file native/inc/carrier_mpsk/carrier_mpsk_core.h