symstreamcf

Symbol streaming generator object

Variants: symstreamcf

Public Functions

symstreamcf symstreamcf_create()
symstreamcf symstreamcf_create_linear(int _ftype, unsigned int _k, unsigned int _m, float _beta, int _ms)
int symstreamcf_destroy(symstreamcf _q)
int symstreamcf_print(symstreamcf _q)
int symstreamcf_reset(symstreamcf _q)
int symstreamcf_set_scheme(symstreamcf _q, int _ms)
int symstreamcf_get_ftype(symstreamcf _q)
float symstreamcf_get_k(symstreamcf _q)
unsigned int symstreamcf_get_m(symstreamcf _q)
float symstreamcf_get_beta(symstreamcf _q)
int symstreamcf_get_scheme(symstreamcf _q)
int symstreamcf_set_gain(symstreamcf _q, float _gain)
float symstreamcf_get_gain(symstreamcf _q)
unsigned int symstreamcf_get_delay(symstreamcf _q)
int symstreamcf_write_samples(symstreamcf _q, float complex * _buf, unsigned int _buf_len)

Interfaces

symstreamcf symstreamcf_create()

Create symstream object with default parameters. This is equivalent to invoking the create_linear() method with _ftype=LIQUID_FIRFILT_ARKAISER, _k=2, _m=7, _beta=0.3, and with _ms=LIQUID_MODEM_QPSK

symstreamcf symstreamcf_create_linear(int _ftype, unsigned int _k, unsigned int _m, float _beta, int _ms)

Create symstream object with linear modulation

  • _ftype : filter type (e.g. LIQUID_FIRFILT_RRC)
  • _k : samples per symbol, 2 <= _k
  • _m : filter delay (symbols), 0 < _m
  • _beta : filter excess bandwidth, 0 < _beta <= 1
  • _ms : modulation scheme, e.g. LIQUID_MODEM_QPSK

int symstreamcf_destroy(symstreamcf _q)

Destroy symstream object, freeing all internal memory

int symstreamcf_print(symstreamcf _q)

Print symstream object's parameters

int symstreamcf_reset(symstreamcf _q)

Reset symstream internal state

int symstreamcf_set_scheme(symstreamcf _q, int _ms)

Set internal linear modulation scheme, leaving the filter parameters (interpolator) unmodified

  • _q :
  • _ms :

int symstreamcf_get_ftype(symstreamcf _q)

Get internal filter type

float symstreamcf_get_k(symstreamcf _q)

Get internal samples per symbol

unsigned int symstreamcf_get_m(symstreamcf _q)

Get internal filter semi-length

float symstreamcf_get_beta(symstreamcf _q)

Get internal filter excess bandwidth factor

int symstreamcf_get_scheme(symstreamcf _q)

Get internal linear modulation scheme

int symstreamcf_set_gain(symstreamcf _q, float _gain)

Set internal linear gain (before interpolation)

  • _q :
  • _gain :

float symstreamcf_get_gain(symstreamcf _q)

Get internal linear gain (before interpolation)

unsigned int symstreamcf_get_delay(symstreamcf _q)

Get delay in samples

int symstreamcf_write_samples(symstreamcf _q, float complex * _buf, unsigned int _buf_len)

Write block of samples to output buffer

  • _q : synchronizer object
  • _buf : output buffer, shape: (_buf_len, 1)
  • _buf_len : output buffer size