GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
simple_squelch_cc.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2005,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_SIMPLE_SQUELCH_CC_H
12#define INCLUDED_ANALOG_SIMPLE_SQUELCH_CC_H
13
14#include <gnuradio/analog/api.h>
15#include <gnuradio/sync_block.h>
16
17namespace gr {
18namespace analog {
19
20/*!
21 * \brief simple squelch block based on average signal power and threshold in dB.
22 * \ingroup level_controllers_blk
23 */
25{
26public:
27 // gr::analog::simple_squelch_cc::sptr
28 typedef std::shared_ptr<simple_squelch_cc> sptr;
29
30 /*!
31 * \brief Make a simple squelch block.
32 *
33 * \param threshold_db Threshold for muting.
34 * \param alpha Gain parameter for the running average filter.
35 */
36 static sptr make(double threshold_db, double alpha);
37
38 virtual bool unmuted() const = 0;
39
40 virtual void set_alpha(double alpha) = 0;
41 virtual void set_threshold(double decibels) = 0;
42
43 virtual double threshold() const = 0;
44 virtual std::vector<float> squelch_range() const = 0;
45};
46
47} /* namespace analog */
48} /* namespace gr */
49
50#endif /* INCLUDED_ANALOG_SIMPLE_SQUELCH_CC_H */
simple squelch block based on average signal power and threshold in dB.
Definition: simple_squelch_cc.h:25
virtual void set_threshold(double decibels)=0
static sptr make(double threshold_db, double alpha)
Make a simple squelch block.
std::shared_ptr< simple_squelch_cc > sptr
Definition: simple_squelch_cc.h:28
virtual void set_alpha(double alpha)=0
virtual bool unmuted() const =0
virtual double threshold() const =0
virtual std::vector< float > squelch_range() 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