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_cc_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_cc_impl.h')
-rw-r--r-- | gr-analog/lib/squelch_base_cc_impl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gr-analog/lib/squelch_base_cc_impl.h b/gr-analog/lib/squelch_base_cc_impl.h index 58802df91c..68ed1bb2b8 100644 --- a/gr-analog/lib/squelch_base_cc_impl.h +++ b/gr-analog/lib/squelch_base_cc_impl.h @@ -36,6 +36,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 gr_complex &sample) {}; |