Loading...
Searching...
No Matches
squelch_base_cc.h
Go to the documentation of this file.
/* -*- c++ -*- */
/*
* Copyright 2006,2012 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
*/
#ifndef INCLUDED_ANALOG_SQUELCH_BASE_CC_H
#define INCLUDED_ANALOG_SQUELCH_BASE_CC_H
#include <gnuradio/analog/api.h>
#include <gnuradio/block.h>
namespace gr {
namespace analog {
/*!
* \brief basic squelch block; to be subclassed for other squelches.
* \ingroup level_blk
*/
class ANALOG_API squelch_base_cc : virtual public block
{
protected:
virtual void update_state(const gr_complex& sample) = 0;
virtual bool mute() const = 0;
public:
squelch_base_cc(){};
virtual int ramp() const = 0;
virtual void set_ramp(int ramp) = 0;
virtual bool gate() const = 0;
virtual void set_gate(bool gate) = 0;
virtual bool unmuted() const = 0;
virtual std::vector<float> squelch_range() const = 0;
};
} /* namespace analog */
} /* namespace gr */
#endif /* INCLUDED_ANALOG_SQUELCH_BASE_CC_H */
gr::analog::squelch_base_cc::ramp
virtual int ramp() const =0
gr::analog::squelch_base_cc::update_state
virtual void update_state(const gr_complex &sample)=0
gr::analog::squelch_base_cc::set_gate
virtual void set_gate(bool gate)=0
gr::analog::squelch_base_cc::squelch_range
virtual std::vector< float > squelch_range() const =0
gr::analog::squelch_base_cc::unmuted
virtual bool unmuted() const =0
gr::analog::squelch_base_cc::squelch_base_cc
squelch_base_cc()
Definition squelch_base_cc.h:31
gr::analog::squelch_base_cc::set_ramp
virtual void set_ramp(int ramp)=0
gr::analog::squelch_base_cc::mute
virtual bool mute() const =0
gr::analog::squelch_base_cc::gate
virtual bool gate() const =0
gr::block::block
block(void)
Definition gnuradio-runtime/include/gnuradio/block.h:806
block.h
api.h
ANALOG_API
#define ANALOG_API
Definition gr-analog/include/gnuradio/analog/api.h:18
gr_complex
std::complex< float > gr_complex
Definition gr_complex.h:15
gr::analog
Definition agc.h:19
gr
GNU Radio logging wrapper.
Definition basic_block.h:29