upm/src/itg3200/pyupm_itg3200.i
John Van Drasek e0bdba5478 itg3200: swig python additins for int16_t * support
Signed-off-by: John Van Drasek <john.r.van.drasek@intel.com>
2015-01-23 17:14:34 -08:00

24 lines
468 B
OpenEdge ABL

%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");
#ifdef DOXYGEN
%include "itg3200_doc.i"
#endif
%include "itg3200.h"
%{
#include "itg3200.h"
%}