mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
59 lines
1.4 KiB
OpenEdge ABL
59 lines
1.4 KiB
OpenEdge ABL
#ifdef SWIGPYTHON
|
|
%module (package="upm") bma250e
|
|
#endif
|
|
|
|
%import "interfaces/new_interfaces.i"
|
|
|
|
%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 upm_new_interfaces.*;
|
|
|
|
import java.util.AbstractList;
|
|
import java.lang.Float;
|
|
%}
|
|
|
|
%typemap(javaout) upm::BMA250E {
|
|
return new $&javaclassname($jnicall, true);
|
|
}
|
|
|
|
%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 */
|