GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
pn_correlator_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2007,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_GR_PN_CORRELATOR_CC_H
12 #define INCLUDED_GR_PN_CORRELATOR_CC_H
13 
14 #include <gnuradio/digital/api.h>
16 
17 namespace gr {
18 namespace digital {
19 
20 /*!
21  * \brief PN code sequential search correlator
22  * \ingroup synchronizers_blk
23  *
24  * \details
25  * Receives complex baseband signal, outputs complex correlation
26  * against reference PN code, one sample per PN code period. The
27  * PN sequence is generated using a GLFSR.
28  */
30 {
31 public:
32  // gr::digital::pn_correlator_cc::sptr
33  typedef std::shared_ptr<pn_correlator_cc> sptr;
34 
35  /*!
36  * \brief Make PN code sequential search correlator block.
37  *
38  * \param degree Degree of shift register must be in [1, 32]. If mask
39  * is 0, the degree determines a default mask (see
40  * digital_impl_glfsr.cc for the mapping).
41  * \param mask Allows a user-defined bit mask for indexes of the shift
42  * register to feed back.
43  * \param seed Initial setting for values in shift register.
44  */
45  static sptr make(int degree, int mask = 0, int seed = 1);
46 };
47 
48 } /* namespace digital */
49 } /* namespace gr */
50 
51 #endif /* INCLUDED_GR_PN_CORRELATOR_CC_H */
PN code sequential search correlator.
Definition: pn_correlator_cc.h:30
static sptr make(int degree, int mask=0, int seed=1)
Make PN code sequential search correlator block.
std::shared_ptr< pn_correlator_cc > sptr
Definition: pn_correlator_cc.h:33
synchronous N:1 input to output with history
Definition: sync_decimator.h:26
#define DIGITAL_API
Definition: gr-digital/include/gnuradio/digital/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29