From ad1d52fd9911114ad8c9748e808b55de4e16232b Mon Sep 17 00:00:00 2001
From: Tom Rondeau <trondeau@vt.edu>
Date: Tue, 18 Jun 2013 15:08:17 -0400
Subject: controlport: added support for complex data types.

Vectors of complex are still passed as interleaved. Single values can be passed as GNURadio::complex. ControlPort can translate these in GNU Radio to gr_complex; Python programs need to convert themselves. gr-ctrl-monitor updated to handle this.

multiply_const_cc block updated to export get and set of k value through ControlPort.
---
 gnuradio-runtime/lib/controlport/gnuradio.ice | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'gnuradio-runtime/lib/controlport/gnuradio.ice')

diff --git a/gnuradio-runtime/lib/controlport/gnuradio.ice b/gnuradio-runtime/lib/controlport/gnuradio.ice
index 29ddc2bfbe..8318875926 100644
--- a/gnuradio-runtime/lib/controlport/gnuradio.ice
+++ b/gnuradio-runtime/lib/controlport/gnuradio.ice
@@ -25,6 +25,12 @@
 #define GNURADIO_DEBUG
 
 module GNURadio {
+
+struct complex {
+  float re;
+  float im;
+};
+
 class Knob {};
 class KnobB extends Knob { bool   value; };
 class KnobC extends Knob { byte   value; };
@@ -33,6 +39,7 @@ class KnobF extends Knob { float  value; };
 class KnobD extends Knob { double value; };
 class KnobL extends Knob { long   value; };
 class KnobS extends Knob { string value; };
+class KnobZ extends Knob { complex value; };
 
 sequence<bool>   VectorB; sequence<byte>   VectorC; 
 sequence<int>    VectorI; sequence<float>  VectorF;
-- 
cgit v1.2.3