GNU Radio Manual and C++ API Reference
3.9.1.0
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
17
namespace
gr
{
18
namespace
analog {
19
20
/*!
21
* \brief simple squelch block based on average signal power and threshold in dB.
22
* \ingroup level_controllers_blk
23
*/
24
class
ANALOG_API
simple_squelch_cc
:
virtual
public
sync_block
25
{
26
public
:
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 */
ANALOG_API
#define ANALOG_API
Definition:
gr-analog/include/gnuradio/analog/api.h:18
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
sync_block.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
api.h
gr::analog::simple_squelch_cc::sptr
std::shared_ptr< simple_squelch_cc > sptr
Definition:
simple_squelch_cc.h:28
gr::analog::simple_squelch_cc
simple squelch block based on average signal power and threshold in dB.
Definition:
simple_squelch_cc.h:24
gr-analog
include
gnuradio
analog
simple_squelch_cc.h
Generated by
1.8.17