1%module jsupm_adxl345
2%include "../upm.i"
3%include "../carrays_int16_t.i"
4%include "../carrays_float.i"
5
6%{
7    #include "adxl345.h"
8%}
9
10%typemap(out) int16_t * {
11    $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
12}
13
14%typemap(out) float * {
15    $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, 0 | 0 );
16}
17
18%include "adxl345.h"
19
20%include <carrays.i>
21