Skip to content

Struct channel_state_t

ClassList > channel_state_t

Tracking-channel state. More...

  • #include <channel_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 nav_period
int prev_sign

Detailed Description

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

Public Attributes Documentation

variable bit_acc

double channel_state_t::bit_acc;

running sum of Re(prompt) over the bit.


variable bit_phase

size_t channel_state_t::bit_phase;

detected bit boundary (argmax flip_hist).


variable car

costas_state_t channel_state_t::car;

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


variable code

dll_state_t channel_state_t::code;

code (early/prompt/late DLL) loop.


variable code_copy

uint8_t* channel_state_t::code_copy;

owned copy of the spreading code.


variable epoch_count

size_t channel_state_t::epoch_count;

code periods processed so far.


variable epochs_in_bit

size_t channel_state_t::epochs_in_bit;

periods accumulated in the current bit.


variable flip_hist

size_t* channel_state_t::flip_hist;

prompt sign-flip histogram, length np.


variable have_prev

int channel_state_t::have_prev;

prev_sign valid.


variable nav_period

size_t channel_state_t::nav_period;

code periods per data bit (>=1).


variable prev_sign

int channel_state_t::prev_sign;

previous prompt sign (+1/-1).



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