mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
itg3200: swig python additins for int16_t * support
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com>
This commit is contained in:
parent
09659c62f3
commit
e0bdba5478
@ -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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user