summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/itg3200/pyupm_itg3200.i
blob: 7faae41b8fd313e6f61d48d0890f273937155049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Include doxygen-generated documentation
%include "pyupm_doxy2swig.i"
%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"
%}