GNU Radio Manual and C++ API Reference  v3.9.2.0-89-gb7c7001e
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  void set_loop_bandwidth(float bw) override = 0;
58  virtual void set_damping_factor(float df) = 0;
59  virtual void set_alpha(float alpha) = 0;
60  virtual void set_beta(float beta) = 0;
61  virtual void set_frequency(float freq) = 0;
62  virtual void set_phase(float phase) = 0;
63  virtual void set_min_freq(float freq) = 0;
64  virtual void set_max_freq(float freq) = 0;
65 
66  virtual float get_loop_bandwidth() const = 0;
67  virtual float get_damping_factor() const = 0;
68  virtual float get_alpha() const = 0;
69  virtual float get_beta() const = 0;
70  virtual float get_frequency() const = 0;
71  virtual float get_phase() const = 0;
72  virtual float get_min_freq() const = 0;
73  virtual float get_max_freq() const = 0;
74 };
75 
76 } /* namespace analog */
77 } /* namespace gr */
78 
79 #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 void set_phase(float phase)=0
virtual float get_max_freq() const =0
virtual void set_max_freq(float freq)=0
virtual void set_alpha(float alpha)=0
virtual float set_lock_threshold(float)=0
virtual void set_damping_factor(float df)=0
virtual float get_min_freq() const =0
virtual bool lock_detector(void)=0
void set_loop_bandwidth(float bw) override=0
Set the loop bandwidth.
virtual float get_frequency() const =0
virtual void set_min_freq(float freq)=0
virtual float get_damping_factor() const =0
std::shared_ptr< pll_carriertracking_cc > sptr
Definition: pll_carriertracking_cc.h:43
virtual void set_frequency(float freq)=0
virtual float get_beta() const =0
virtual float get_phase() const =0
virtual float get_loop_bandwidth() const =0
virtual void set_beta(float beta)=0
virtual float get_alpha() const =0
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 for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29