GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
pll_carriertracking_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,2006,2011,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_ANALOG_PLL_CARRIERTRACKING_CC_H
12 #define INCLUDED_ANALOG_PLL_CARRIERTRACKING_CC_H
13 
14 #include <gnuradio/analog/api.h>
16 #include <gnuradio/sync_block.h>
17 
18 namespace gr {
19 namespace analog {
20 
21 /*!
22  * \brief Implements a PLL which locks to the input frequency and outputs the
23  * input signal mixed with that carrier.
24  * \ingroup synchronizers_blk
25  *
26  * \details
27  * Input stream 0: complex
28  * Output stream 0: complex
29  *
30  * This PLL locks onto a [possibly noisy] reference carrier on the
31  * input and outputs that signal, downconverted to DC
32  *
33  * All settings max_freq and min_freq are in terms of radians per
34  * sample, NOT HERTZ. The loop bandwidth determines the lock range
35  * and should be set around pi/200 -- 2pi/100. \sa
36  * pll_freqdet_cf, pll_carriertracking_cc
37  */
39  virtual public blocks::control_loop
40 {
41 public:
42  // gr::analog::pll_carriertracking_cc::sptr
43  typedef std::shared_ptr<pll_carriertracking_cc> sptr;
44 
45  /* \brief Make a carrier tracking PLL block.
46  *
47  * \param loop_bw: control loop's bandwidth parameter.
48  * \param max_freq: maximum (normalized) frequency PLL will lock to.
49  * \param min_freq: minimum (normalized) frequency PLL will lock to.
50  */
51  static sptr make(float loop_bw, float max_freq, float min_freq);
52 
53  virtual bool lock_detector(void) = 0;
54  virtual bool squelch_enable(bool) = 0;
55  virtual float set_lock_threshold(float) = 0;
56 };
57 
58 } /* namespace analog */
59 } /* namespace gr */
60 
61 #endif /* INCLUDED_ANALOG_PLL_CARRIERTRACKING_CC_H */
Implements a PLL which locks to the input frequency and outputs the input signal mixed with that carr...
Definition: pll_carriertracking_cc.h:40
static sptr make(float loop_bw, float max_freq, float min_freq)
virtual float set_lock_threshold(float)=0
virtual bool lock_detector(void)=0
std::shared_ptr< pll_carriertracking_cc > sptr
Definition: pll_carriertracking_cc.h:43
virtual bool squelch_enable(bool)=0
A second-order control loop implementation class.
Definition: control_loop.h:51
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
GNU Radio logging wrapper.
Definition: basic_block.h:29