GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
pll_refout_cc.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2004,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_REFOUT_CC_H
12 #define INCLUDED_ANALOG_PLL_REFOUT_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 a carrier
23  * \ingroup synchronizers_blk
24  *
25  * \details
26  * Input stream 0: complex
27  * Output stream 0: complex
28  *
29  * This PLL locks onto a [possibly noisy] reference carrier on the
30  * input and outputs a clean version which is phase and frequency
31  * aligned to it.
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  */
38 class ANALOG_API pll_refout_cc : virtual public sync_block,
39  virtual public blocks::control_loop
40 {
41 public:
42  // gr::analog::pll_refout_cc::sptr
43  typedef std::shared_ptr<pll_refout_cc> sptr;
44 
45  /* \brief Make PLL block that outputs the tracked carrier signal.
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 
54 } /* namespace analog */
55 } /* namespace gr */
56 
57 #endif /* INCLUDED_ANALOG_PLL_REFOUT_CC_H */
Implements a PLL which locks to the input frequency and outputs a carrier.
Definition: pll_refout_cc.h:40
std::shared_ptr< pll_refout_cc > sptr
Definition: pll_refout_cc.h:43
static sptr make(float loop_bw, float max_freq, float min_freq)
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