mirror of
https://github.com/eclipse/upm.git
synced 2025-03-22 00:17:30 +03:00

Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
17 lines
393 B
OpenEdge ABL
17 lines
393 B
OpenEdge ABL
%module pyupm_lsm303
|
|
%include "../upm.i"
|
|
%include "../carrays_int16_t.i"
|
|
|
|
%feature("autodoc", "3");
|
|
|
|
// Adding this typemap because SWIG is converting int16 into a short by default
|
|
// This forces SWIG to convert it correctly
|
|
%typemap(out) int16_t* {
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
|
}
|
|
|
|
%include "lsm303.h"
|
|
%{
|
|
#include "lsm303.h"
|
|
%}
|