1%module pyupm_adxl345
2%include "../upm.i"
3%include "../carrays_int16_t.i"
4%include "../carrays_float.i"
5
6%typemap(out) int16_t * {
7    $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
8}
9
10%typemap(out) float * {
11    $result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, 0 | 0 );
12}
13
14%feature("autodoc", "3");
15
16#ifdef DOXYGEN
17%include "adxl345_doc.i"
18#endif
19
20%include "adxl345.h"
21%{
22    #include "adxl345.h"
23%}
24