diff options
author | Marcus Müller <Marcus.Mueller@ettus.com> | 2015-04-22 20:32:04 +0200 |
---|---|---|
committer | Marcus Müller <Marcus.Mueller@ettus.com> | 2015-04-23 19:52:36 +0200 |
commit | 93a35f0bda8319a569e3a34a31f047dda793597a (patch) | |
tree | 0d60d20609f96b064dd4106bf80e8356318418ef /gr-analog/lib/squelch_base_ff_impl.h | |
parent | fdfece16643f4f997cdbbd14a8646ae5f417e258 (diff) |
analog: Power Squelch now emit tags on start/end of bursts
The block will emit a tag with the key pmt::intern("squelch_sob")
with the value of pmt::PMT_NIL on the first item it passes, and with
the key pmt::intern("squelch:eob") on the last item it passes.
Added this to the `make` documentation.
Also: made the GRC XML's defaults reflect the C++ default args.
Also: indentation was mixed; unified the paragraphs I worked on.
Diffstat (limited to 'gr-analog/lib/squelch_base_ff_impl.h')
-rw-r--r-- | gr-analog/lib/squelch_base_ff_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-analog/lib/squelch_base_ff_impl.h b/gr-analog/lib/squelch_base_ff_impl.h index 343dc5f610..b6a7efe609 100644 --- a/gr-analog/lib/squelch_base_ff_impl.h +++ b/gr-analog/lib/squelch_base_ff_impl.h @@ -24,6 +24,7 @@ #define INCLUDED_GR_SQUELCH_BASE_FF_IMPL_H #include <gnuradio/analog/squelch_base_ff.h> +#include <pmt/pmt.h> namespace gr { namespace analog { @@ -36,6 +37,8 @@ namespace gr { bool d_gate; double d_envelope; enum { ST_MUTED, ST_ATTACK, ST_UNMUTED, ST_DECAY } d_state; + const pmt::pmt_t d_sob_key, d_eob_key; + bool d_tag_next_unmuted; protected: virtual void update_state(const float &sample) {}; |