11#ifndef INCLUDED_ANALOG_PWR_SQUELCH_CC_H
12#define INCLUDED_ANALOG_PWR_SQUELCH_CC_H
29 bool mute()
const override = 0;
33 typedef std::shared_ptr<pwr_squelch_cc>
sptr;
49 static sptr make(
double db,
double alpha = 0.0001,
int ramp = 0,
bool gate =
false);
57 int ramp()
const override = 0;
59 bool gate()
const override = 0;
gate or zero output when input power below threshold
Definition: pwr_squelch_cc.h:26
std::shared_ptr< pwr_squelch_cc > sptr
Definition: pwr_squelch_cc.h:33
std::vector< float > squelch_range() const override=0
void set_ramp(int ramp) override=0
int ramp() const override=0
void set_gate(bool gate) override=0
virtual void set_alpha(double alpha)=0
bool gate() const override=0
static sptr make(double db, double alpha=0.0001, int ramp=0, bool gate=false)
Make power-based squelch block.
virtual void set_threshold(double db)=0
bool unmuted() const override=0
virtual double threshold() const =0
bool mute() const override=0
void update_state(const gr_complex &in) override=0
basic squelch block; to be subclassed for other squelches.
Definition: squelch_base_cc.h:25
The abstract base class for all 'terminal' processing blocks.
Definition: gnuradio-runtime/include/gnuradio/block.h:63
#define ANALOG_API
Definition: gr-analog/include/gnuradio/analog/api.h:18
std::complex< float > gr_complex
Definition: gr_complex.h:15
GNU Radio logging wrapper.
Definition: basic_block.h:29