summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/controlport/gnuradio.ice
diff options
context:
space:
mode:
authorTom Rondeau <trondeau@vt.edu>2013-06-18 15:08:17 -0400
committerTom Rondeau <trondeau@vt.edu>2013-06-18 15:08:17 -0400
commitad1d52fd9911114ad8c9748e808b55de4e16232b (patch)
treebb5696ca8617290e5ae76672544f308e3a21baae /gnuradio-runtime/lib/controlport/gnuradio.ice
parentbec07463ddb722ed22bae83577ffe4c8029ff90d (diff)
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.
Diffstat (limited to 'gnuradio-runtime/lib/controlport/gnuradio.ice')
-rw-r--r--gnuradio-runtime/lib/controlport/gnuradio.ice7
1 files changed, 7 insertions, 0 deletions
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;