bsync_rrrf

Variants: bsync_cccf, bsync_crcf, bsync_rrrf

Binary P/N synchronizer

Public Functions

bsync_rrrf bsync_rrrf_create(unsigned int _n, float * _v)
bsync_rrrf bsync_rrrf_create_msequence(unsigned int _g, unsigned int _k)
int bsync_rrrf_destroy(bsync_rrrf _q)
int bsync_rrrf_print(bsync_rrrf _q)
int bsync_rrrf_correlate(bsync_rrrf _q, float _x, float * _y)

Interfaces

bsync_rrrf bsync_rrrf_create(unsigned int _n, float * _v)

Create bsync object

  • _n : sequence length
  • _v : correlation sequence, shape: (_n, 1)

bsync_rrrf bsync_rrrf_create_msequence(unsigned int _g, unsigned int _k)

Create binary synchronizer from m-sequence

  • _g : m-sequence generator polynomial
  • _k : samples/symbol (over-sampling factor)

int bsync_rrrf_destroy(bsync_rrrf _q)

Destroy binary synchronizer object, freeing all internal memory

  • _q : bsync object

int bsync_rrrf_print(bsync_rrrf _q)

Print object internals to stdout

  • _q : bsync object

int bsync_rrrf_correlate(bsync_rrrf _q, float _x, float * _y)

Correlate input signal against internal sequence

  • _q : bsync object
  • _x : input sample
  • _y : pointer to output sample