2018-01-26 11:52:34 -08:00
|
|
|
%include "../common_top.i"
|
|
|
|
|
|
|
|
|
|
/* BEGIN Java syntax ------------------------------------------------------- */
|
|
|
|
|
#ifdef SWIGJAVA
|
2016-10-27 15:12:26 -06:00
|
|
|
%include "arrays_java.i";
|
|
|
|
|
%include "../java_buffer.i"
|
2018-01-23 11:58:12 -08:00
|
|
|
%include "std_vector.i"
|
|
|
|
|
|
2018-01-26 11:52:34 -08:00
|
|
|
%apply float *OUTPUT { float *ax, float *ay, float *az };
|
|
|
|
|
%apply int *OUTPUT { int *x, int *y, int *z };
|
|
|
|
|
%ignore installISR(int , void *, void *);
|
|
|
|
|
|
2018-01-23 11:58:12 -08:00
|
|
|
%template(IntVector) std::vector<int>;
|
|
|
|
|
%template(FloatVector) std::vector<float>;
|
2015-08-14 14:37:02 +03:00
|
|
|
|
2018-01-26 11:52:34 -08:00
|
|
|
JAVA_ADD_INSTALLISR_PIN(upm::MMA7660)
|
|
|
|
|
JAVA_JNI_LOADLIBRARY(javaupm_mma7660)
|
|
|
|
|
#endif
|
|
|
|
|
/* END Java syntax */
|
|
|
|
|
|
|
|
|
|
/* BEGIN Common SWIG syntax ------------------------------------------------- */
|
|
|
|
|
%pointer_functions(int, intp);
|
|
|
|
|
%pointer_functions(float, floatp);
|
2015-08-05 19:43:31 +03:00
|
|
|
|
2016-10-27 15:12:26 -06:00
|
|
|
%{
|
2018-01-23 11:58:12 -08:00
|
|
|
#include "mma7660_regs.h"
|
2018-01-26 11:52:34 -08:00
|
|
|
#include "mma7660.hpp"
|
2016-10-27 15:12:26 -06:00
|
|
|
%}
|
2018-01-19 13:12:50 +02:00
|
|
|
%include "mma7660_regs.h"
|
|
|
|
|
%include "mma7660.hpp"
|
2018-01-26 11:52:34 -08:00
|
|
|
/* END Common SWIG syntax */
|