GNU Radio 3.6.5 C++ API

digital_pn_correlator_cc Class Reference

PN code sequential search correlatorReceives complex baseband signal, outputs complex correlation against reference PN code, one sample per PN code period. The PN sequence is generated using a GLFSR. More...

#include <digital_pn_correlator_cc.h>

Inheritance diagram for digital_pn_correlator_cc:
gr_sync_decimator gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

virtual int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you
 ~digital_pn_correlator_cc ()

Protected Member Functions

 digital_pn_correlator_cc (int degree, int mask, int seed)

Friends

DIGITAL_API
digital_pn_correlator_cc_sptr 
digital_make_pn_correlator_cc (int degree, int mask, int seed)

Detailed Description

PN code sequential search correlator

Receives complex baseband signal, outputs complex correlation against reference PN code, one sample per PN code period. The PN sequence is generated using a GLFSR.

Parameters:
degreeDegree of shift register must be in [1, 32]. If mask is 0, the degree determines a default mask (see digital_impl_glfsr.cc for the mapping).
repeatSet to repeat sequence.
maskAllows a user-defined bit mask for indexes of the shift register to feed back.
seedInitial setting for values in shift register.

Constructor & Destructor Documentation

digital_pn_correlator_cc::digital_pn_correlator_cc ( int  degree,
int  mask,
int  seed 
) [protected]
digital_pn_correlator_cc::~digital_pn_correlator_cc ( )

Member Function Documentation

virtual int digital_pn_correlator_cc::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
) [virtual]

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


Friends And Related Function Documentation

DIGITAL_API digital_pn_correlator_cc_sptr digital_make_pn_correlator_cc ( int  degree,
int  mask,
int  seed 
) [friend]

The documentation for this class was generated from the following file: