Skip to content

Struct despreader_state_t

ClassList > despreader_state_t

Despreader state. More...

  • #include <despreader_core.h>

Public Attributes

Type Name
double bit_acc
size_t bit_phase
costas_state_t car
dll_state_t code
uint8_t * code_copy
size_t epoch_count
size_t epochs_in_bit
size_t * flip_hist
int have_prev
size_t periods_per_bit
int prev_sign
dp_tlm_t * tlm_ctx

Detailed Description

Allocate with despreader_create(). Embeds the carrier (car) and code (code) loops by value; the despreader owns the copied spreading code and the bit-sync histogram.

Public Attributes Documentation

variable bit_acc

double despreader_state_t::bit_acc;

running sum of Re(prompt) over the bit.


variable bit_phase

size_t despreader_state_t::bit_phase;

detected bit boundary (argmax flip_hist).


variable car

costas_state_t despreader_state_t::car;

carrier (Costas/FLL-assisted-PLL) loop.


variable code

dll_state_t despreader_state_t::code;

code (early/prompt/late DLL) loop.


variable code_copy

uint8_t* despreader_state_t::code_copy;

owned copy of the spreading code.


variable epoch_count

size_t despreader_state_t::epoch_count;

code periods processed so far.


variable epochs_in_bit

size_t despreader_state_t::epochs_in_bit;

periods accumulated in the current bit.


variable flip_hist

size_t* despreader_state_t::flip_hist;

prompt sign-flip histogram, length np.


variable have_prev

int despreader_state_t::have_prev;

prev_sign valid.


variable periods_per_bit

size_t despreader_state_t::periods_per_bit;

code periods per data bit (>=1).


variable prev_sign

int despreader_state_t::prev_sign;

previous prompt sign (+1/-1).


variable tlm_ctx

dp_tlm_t* despreader_state_t::tlm_ctx;

telemetry gate: non-NULL when the embedded loops are attached (despreader_set_telemetry); the probes live on car.tlm / code.tlm. Not serialized (field-wise triplet skips it).



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