GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
dpll_bb.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_ANALOG_DPLL_BB_H
12 #define INCLUDED_ANALOG_DPLL_BB_H
13 
14 #include <gnuradio/analog/api.h>
15 #include <gnuradio/sync_block.h>
16 
17 namespace gr {
18 namespace analog {
19 
20 /*!
21  * \brief Detect the peak of a signal
22  * \ingroup peak_detectors_blk
23  *
24  * \details
25  * If a peak is detected, this block outputs a 1,
26  * or it outputs 0's.
27  */
28 class ANALOG_API dpll_bb : virtual public sync_block
29 {
30 public:
31  // gr::analog::dpll_bb::sptr
32  typedef std::shared_ptr<dpll_bb> sptr;
33 
34  static sptr make(float period, float gain);
35 
36  virtual void set_gain(float gain) = 0;
37  virtual void set_decision_threshold(float thresh) = 0;
38 
39  virtual float gain() const = 0;
40  virtual float freq() const = 0;
41  virtual float phase() const = 0;
42  virtual float decision_threshold() const = 0;
43 };
44 
45 } /* namespace analog */
46 } /* namespace gr */
47 
48 #endif /* INCLUDED_ANALOG_DPLL_BB_H */
Detect the peak of a signal.
Definition: dpll_bb.h:29
virtual void set_gain(float gain)=0
virtual float gain() const =0
std::shared_ptr< dpll_bb > sptr
Definition: dpll_bb.h:32
virtual float decision_threshold() const =0
virtual void set_decision_threshold(float thresh)=0
static sptr make(float period, float gain)
virtual float phase() const =0
virtual float freq() const =0
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