summaryrefslogtreecommitdiff
path: root/gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h')
-rw-r--r--gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h b/gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h
index 81f9c0c8c5..ed65d3136c 100644
--- a/gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h
+++ b/gr-qtgui/include/gnuradio/qtgui/freq_sink_f.h
@@ -28,6 +28,7 @@
#endif
#include <gnuradio/qtgui/api.h>
+#include <gnuradio/qtgui/trigger_mode.h>
#include <gnuradio/sync_block.h>
#include <qapplication.h>
#include <gnuradio/filter/firdes.h>
@@ -117,6 +118,40 @@ namespace gr {
virtual void set_line_marker(int which, int marker) = 0;
virtual void set_line_alpha(int which, double alpha) = 0;
+ /*!
+ * Pass "true" to this function to only show the positive half
+ * of the spectrum. By default, this plotter shows the full
+ * spectrum (positive and negative halves).
+ */
+ virtual void set_plot_pos_half(bool half) = 0;
+
+ /*!
+ * Set up a trigger for the sink to know when to start
+ * plotting. Useful to isolate events and avoid noise.
+ *
+ * The trigger modes are Free, Auto, Normal, and Tag (see
+ * gr::qtgui::trigger_mode). The first three are like a normal
+ * trigger function. Free means free running with no trigger,
+ * auto will trigger if the trigger event is seen, but will
+ * still plot otherwise, and normal will hold until the trigger
+ * event is observed. The Tag trigger mode allows us to trigger
+ * off a specific stream tag. The tag trigger is based only on
+ * the name of the tag, so when a tag of the given name is seen,
+ * the trigger is activated.
+ *
+ * In auto and normal mode, we look to see if the magnitude of
+ * the any FFT point is over the set level.
+ *
+ * \param mode The trigger_mode: free, auto, normal, or tag.
+ * \param level The magnitude of the trigger even for auto or normal modes.
+ * \param channel Which input channel to use for the trigger events.
+ * \param tag_key The name (as a string) of the tag to trigger off
+ * of if using the tag mode.
+ */
+ virtual void set_trigger_mode(trigger_mode mode,
+ float level, int channel,
+ const std::string &tag_key="") = 0;
+
virtual std::string title() = 0;
virtual std::string line_label(int which) = 0;
virtual std::string line_color(int which) = 0;