2015-12-16 13:58:11 -08:00
|
|
|
// Include doxygen-generated documentation
|
|
|
|
%include "pyupm_doxy2swig.i"
|
2014-12-16 16:29:40 -08:00
|
|
|
%module pyupm_adxl345
|
|
|
|
%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 "adxl345_doc.i"
|
|
|
|
#endif
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "adxl345.hpp"
|
2014-12-16 16:29:40 -08:00
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "adxl345.hpp"
|
2014-12-16 16:29:40 -08:00
|
|
|
%}
|