mirror of
https://github.com/eclipse/upm.git
synced 2025-03-19 23:17:29 +03:00
57 lines
1.5 KiB
OpenEdge ABL
57 lines
1.5 KiB
OpenEdge ABL
![]() |
%include "../common_top.i"
|
||
|
|
||
|
/* BEGIN Java syntax ------------------------------------------------------- */
|
||
|
#ifdef SWIGJAVA
|
||
|
%include "../upm_javastdvector.i"
|
||
|
|
||
|
%ignore getAccelerometer(float *, float *, float *);
|
||
|
%ignore installISR (BMA250E_INTERRUPT_PINS_T, int, mraa::Edge , void *, void *);
|
||
|
|
||
|
%typemap(javaimports) SWIGTYPE %{
|
||
|
import java.util.AbstractList;
|
||
|
import java.lang.Float;
|
||
|
%}
|
||
|
|
||
|
%typemap(javaout) upm::BMA250E {
|
||
|
return new $&javaclassname($jnicall, true);
|
||
|
}
|
||
|
%typemap(javaout) std::vector<float> {
|
||
|
return (AbstractList<Float>)(new $&javaclassname($jnicall, true));
|
||
|
}
|
||
|
%typemap(jstype) std::vector<float> "AbstractList<Float>"
|
||
|
|
||
|
%template(floatVector) std::vector<float>;
|
||
|
|
||
|
%define INTERRUPT BMA250E_INTERRUPT_PINS_T
|
||
|
%enddef
|
||
|
|
||
|
JAVA_ADD_INSTALLISR_INTERRUPT(upm::BMA250E)
|
||
|
JAVA_JNI_LOADLIBRARY(javaupm_bma250e)
|
||
|
#endif
|
||
|
/* END Java syntax */
|
||
|
|
||
|
/* BEGIN Javascript syntax ------------------------------------------------- */
|
||
|
#ifdef SWIGJAVASCRIPT
|
||
|
%include "../upm_vectortypes.i"
|
||
|
%pointer_functions(int, intp);
|
||
|
%pointer_functions(float, floatp);
|
||
|
#endif
|
||
|
/* END Javascript syntax */
|
||
|
|
||
|
/* BEGIN Python syntax ----------------------------------------------------- */
|
||
|
#ifdef SWIGPYTHON
|
||
|
%include "../upm_vectortypes.i"
|
||
|
%pointer_functions(int, intp);
|
||
|
%pointer_functions(float, floatp);
|
||
|
#endif
|
||
|
/* END Python syntax */
|
||
|
|
||
|
/* BEGIN Common SWIG syntax ------------------------------------------------- */
|
||
|
%{
|
||
|
#include "bma250e_defs.h"
|
||
|
#include "bma250e.hpp"
|
||
|
%}
|
||
|
%include "bma250e_defs.h"
|
||
|
%include "bma250e.hpp"
|
||
|
/* END Common SWIG syntax */
|