From 12ecd6fa140e1e97c64a0717a07fa6a5f3ec491d Mon Sep 17 00:00:00 2001 From: Sarah Knepper Date: Mon, 19 Jan 2015 15:11:34 -0800 Subject: [PATCH] itg3200: Modifications to js swig file Signed-off-by: Sarah Knepper --- src/itg3200/jsupm_itg3200.i | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/itg3200/jsupm_itg3200.i b/src/itg3200/jsupm_itg3200.i index 528c4dca..011ffc69 100644 --- a/src/itg3200/jsupm_itg3200.i +++ b/src/itg3200/jsupm_itg3200.i @@ -1,10 +1,20 @@ %module jsupm_itg3200 %include "../upm.i" +%include "../carrays_int16_t.i" +%include "../carrays_float.i" %{ #include "itg3200.h" %} +%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 ); +} + %include "itg3200.h" %include