GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
squelch_base_ff.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2006,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_SQUELCH_BASE_FF_H
12
#define INCLUDED_ANALOG_SQUELCH_BASE_FF_H
13
14
#include <
gnuradio/analog/api.h
>
15
#include <
gnuradio/block.h
>
16
17
namespace
gr
{
18
namespace
analog {
19
20
/*!
21
* \brief basic squelch block; to be subclassed for other squelches.
22
* \ingroup level_blk
23
*/
24
class
ANALOG_API
squelch_base_ff
:
virtual
public
block
25
{
26
protected
:
27
virtual
void
update_state(
const
float
& sample) = 0;
28
virtual
bool
mute()
const
= 0;
29
30
public
:
31
squelch_base_ff
(){};
32
virtual
int
ramp()
const
= 0;
33
virtual
void
set_ramp(
int
ramp) = 0;
34
virtual
bool
gate()
const
= 0;
35
virtual
void
set_gate(
bool
gate) = 0;
36
virtual
bool
unmuted()
const
= 0;
37
38
virtual
std::vector<float> squelch_range()
const
= 0;
39
};
40
41
}
/* namespace analog */
42
}
/* namespace gr */
43
44
#endif
/* INCLUDED_ANALOG_SQUELCH_BASE_FF_H */
block.h
gr::analog::squelch_base_ff
basic squelch block; to be subclassed for other squelches.
Definition:
squelch_base_ff.h:24
ANALOG_API
#define ANALOG_API
Definition:
gr-analog/include/gnuradio/analog/api.h:18
gr::block
The abstract base class for all 'terminal' processing blocks.
Definition:
block.h:59
gr::analog::squelch_base_ff::squelch_base_ff
squelch_base_ff()
Definition:
squelch_base_ff.h:31
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
api.h
gr-analog
include
gnuradio
analog
squelch_base_ff.h
Generated by
1.8.17