GNU Radio C++ API Reference: dpll_bb.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
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
17namespace gr {
18namespace 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{
30public:
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 */
gr::analog::dpll_bb
Detect the peak of a signal.
Definition dpll_bb.h:29
gr::analog::dpll_bb::set_gain
virtual void set_gain(float gain)=0
gr::analog::dpll_bb::gain
virtual float gain() const =0
gr::analog::dpll_bb::sptr
std::shared_ptr< dpll_bb > sptr
Definition dpll_bb.h:32
gr::analog::dpll_bb::decision_threshold
virtual float decision_threshold() const =0
gr::analog::dpll_bb::set_decision_threshold
virtual void set_decision_threshold(float thresh)=0
gr::analog::dpll_bb::make
static sptr make(float period, float gain)
gr::analog::dpll_bb::phase
virtual float phase() const =0
gr::analog::dpll_bb::freq
virtual float freq() const =0
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
ANALOG_API
#define ANALOG_API
Definition gr-analog/include/gnuradio/analog/api.h:18
gr::analog
Definition agc.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h