Imported Upstream version 3.2.2
[debian/gnuradio] / gnuradio-core / src / lib / io / gr_oscope_sink.i
index 114c71f34108a772466535bd8e5e989a5e908b45..9d634193b22bd5dfb61dda4a01c3a1d039c939bf 100644 (file)
@@ -6,7 +6,7 @@
  * 
  * GNU Radio is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2, or (at your option)
+ * the Free Software Foundation; either version 3, or (at your option)
  * any later version.
  * 
  * GNU Radio is distributed in the hope that it will be useful,
  * Boston, MA 02110-1301, USA.
  */
 
-enum gr_trigger_mode {
-  gr_TRIG_AUTO,                        // auto trigger (on anything)
-  gr_TRIG_POS_SLOPE,           // trigger on positive slope across trigger level
-  gr_TRIG_NEG_SLOPE            // trigger on negative slope across trigger level
-};
+%include gr_trigger_mode.h
 
 // GR_SWIG_BLOCK_MAGIC(gr,oscope_sink_x)
 
@@ -43,6 +39,7 @@ class gr_oscope_sink_x : public gr_sync_block
   bool set_decimation_count (int decimation_count);
   bool set_trigger_channel (int channel);
   bool set_trigger_mode (gr_trigger_mode mode);
+  bool set_trigger_slope (gr_trigger_slope slope);
   bool set_trigger_level (double trigger_level);
   bool set_trigger_level_auto ();                              // set to 50% level
   bool set_sample_rate(double sample_rate);
@@ -54,6 +51,7 @@ class gr_oscope_sink_x : public gr_sync_block
   int get_decimation_count () const;
   int get_trigger_channel () const;
   gr_trigger_mode get_trigger_mode () const;
+  gr_trigger_slope get_trigger_slope () const;
   double get_trigger_level () const;
 
   // # of samples written to each output record.