From e0bdba54785d6425006517b42e5b72c004be4454 Mon Sep 17 00:00:00 2001 From: John Van Drasek Date: Wed, 21 Jan 2015 15:41:13 -0800 Subject: [PATCH] itg3200: swig python additins for int16_t * support Signed-off-by: John Van Drasek --- src/itg3200/pyupm_itg3200.i | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/itg3200/pyupm_itg3200.i b/src/itg3200/pyupm_itg3200.i index 08aff43c..4b483bbd 100644 --- a/src/itg3200/pyupm_itg3200.i +++ b/src/itg3200/pyupm_itg3200.i @@ -1,5 +1,15 @@ %module pyupm_itg3200 %include "../upm.i" +%include "../carrays_int16_t.i" +%include "../carrays_float.i" + +%typemap(out) int16_t * { + $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 ); +} + +%typemap(out) float * { + $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, 0 | 0 ); +} %feature("autodoc", "3");