summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h
diff options
context:
space:
mode:
authorMichael Dickens <michael.dickens@ettus.com>2018-02-08 13:50:04 -0500
committerMartin Braun <martin.braun@ettus.com>2018-02-14 21:04:55 -0800
commit573d4c89f9ef4151b76eec8487c71adf4bbeebb0 (patch)
treea7cc567d5bd80624f51ac269d415ffc4e67afc2f /gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h
parentf783dd54a2a81bbd7a03b17e26a5563199c52015 (diff)
blocks: add threshold set and get to plateau detector
Also add the callback to the GRC block.
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h b/gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h
index cb43625c1f..9a9d7c8a16 100644
--- a/gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h
+++ b/gr-blocks/include/gnuradio/blocks/plateau_detector_fb.h
@@ -61,6 +61,9 @@ namespace gr {
* \param threshold Anything above this value is considered a plateau
*/
static sptr make(int max_len, float threshold=0.9);
+
+ virtual void set_threshold(float threshold) = 0;
+ virtual float threshold() const = 0;
};
} // namespace blocks