mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
itg3200: Modifications to js swig file
Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
parent
092a455172
commit
12ecd6fa14
@ -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 <carrays.i>
|
||||
|
Loading…
x
Reference in New Issue
Block a user