summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/swig/gr_ctrlport.i
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/swig/gr_ctrlport.i
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/swig/gr_ctrlport.i')
-rw-r--r--gnuradio-runtime/swig/gr_ctrlport.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-runtime/swig/gr_ctrlport.i b/gnuradio-runtime/swig/gr_ctrlport.i
index ac05c05ee..d7fde34db 100644
--- a/gnuradio-runtime/swig/gr_ctrlport.i
+++ b/gnuradio-runtime/swig/gr_ctrlport.i
@@ -48,6 +48,7 @@ enum priv_lvl_t {
enum KnobType {
KNOBBOOL, KNOBCHAR, KNOBINT, KNOBFLOAT,
KNOBDOUBLE, KNOBSTRING, KNOBLONG, KNOBVECBOOL,
+ KNOBCOMPLEX, KNOBCOMPLEXD,
KNOBVECCHAR, KNOBVECINT, KNOBVECFLOAT, KNOBVECDOUBLE,
KNOBVECSTRING, KNOBVECLONG
};
@@ -91,6 +92,8 @@ class GR_RUNTIME_API rpcmanager : public virtual rpcmanager_base
%template(RPC_get_int) pycallback_object<int>;
%template(RPC_get_float) pycallback_object<float>;
%template(RPC_get_double) pycallback_object<double>;
+%template(RPC_get_complex) pycallback_object<gr_complex>;
+%template(RPC_get_complexd) pycallback_object<gr_complexd>;
%template(RPC_get_vector_float) pycallback_object<std::vector<float> >;
%template(RPC_get_vector_gr_complex) pycallback_object<std::vector<gr_complex> >;