2018-08-07 17:12:08 +03:00
|
|
|
#ifdef SWIGPYTHON
|
|
|
|
%module (package="upm") mpu9150
|
|
|
|
#endif
|
|
|
|
|
2018-09-27 17:33:40 +03:00
|
|
|
%import "interfaces/interfaces.i"
|
2018-08-07 17:12:08 +03:00
|
|
|
|
2018-01-26 11:52:34 -08:00
|
|
|
%include "../common_top.i"
|
|
|
|
|
|
|
|
/* BEGIN Java syntax ------------------------------------------------------- */
|
|
|
|
#ifdef SWIGJAVA
|
|
|
|
%include "std_vector.i"
|
|
|
|
%include "arrays_java.i"
|
|
|
|
%include "../java_buffer.i"
|
|
|
|
|
2018-08-07 17:12:08 +03:00
|
|
|
%typemap(javaimports) SWIGTYPE %{
|
2018-09-27 17:33:40 +03:00
|
|
|
import upm_interfaces.*;
|
2018-08-07 17:12:08 +03:00
|
|
|
|
|
|
|
import java.util.AbstractList;
|
|
|
|
import java.lang.Float;
|
|
|
|
%}
|
2018-01-26 11:52:34 -08:00
|
|
|
|
|
|
|
%apply int {mraa::Edge};
|
|
|
|
|
|
|
|
%define GETTER get_gpioIRQ()
|
|
|
|
%enddef
|
|
|
|
|
|
|
|
JAVA_ADD_INSTALLISR_GPIO(upm::MPU60X0)
|
|
|
|
|
|
|
|
JAVA_JNI_LOADLIBRARY(javaupm_mpu9150)
|
|
|
|
#endif
|
|
|
|
/* END Java syntax */
|
|
|
|
|
|
|
|
/* BEGIN Javascript syntax ------------------------------------------------- */
|
|
|
|
#ifdef SWIGJAVASCRIPT
|
|
|
|
%include "std_vector.i"
|
2018-08-07 17:12:08 +03:00
|
|
|
%include "../upm_vectortypes.i"
|
2018-01-26 11:52:34 -08:00
|
|
|
%pointer_functions(float, floatp);
|
|
|
|
#endif
|
|
|
|
/* END Javascript syntax */
|
|
|
|
|
|
|
|
/* BEGIN Python syntax ----------------------------------------------------- */
|
|
|
|
#ifdef SWIGPYTHON
|
|
|
|
%include "std_vector.i"
|
2018-08-07 17:12:08 +03:00
|
|
|
%include "../upm_vectortypes.i"
|
2018-01-26 11:52:34 -08:00
|
|
|
%pointer_functions(float, floatp);
|
|
|
|
#endif
|
|
|
|
/* END Python syntax */
|
|
|
|
|
|
|
|
/* BEGIN Common SWIG syntax ------------------------------------------------- */
|
|
|
|
%{
|
|
|
|
#include "ak8975.hpp"
|
|
|
|
#include "mpu60x0.hpp"
|
|
|
|
#include "mpu9150.hpp"
|
|
|
|
#include "mpu9250.hpp"
|
|
|
|
%}
|
|
|
|
%include "ak8975.hpp"
|
|
|
|
%include "mpu60x0.hpp"
|
|
|
|
%include "mpu9150.hpp"
|
|
|
|
%include "mpu9250.hpp"
|
|
|
|
/* END Common SWIG syntax */
|