upm/src/lsm303d/lsm303d.i
Serban Waltter 5f9bebad14 Removed old interfaces and replaced them with the new ones.
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
2018-10-11 17:55:25 +03:00

46 lines
1.0 KiB
OpenEdge ABL

#ifdef SWIGPYTHON
%module (package="upm") lsm303d
#endif
%import "interfaces/interfaces.i"
%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
%ignore getMagnetometer(float *, float *, float *);
%ignore getAccelerometer(float *, float *, float *);
%typemap(javaimports) SWIGTYPE %{
import upm_interfaces.*;
import java.util.AbstractList;
import java.lang.Float;
%}
JAVA_JNI_LOADLIBRARY(javaupm_lsm303d)
#endif
/* END Java syntax */
/* BEGIN Javascript syntax ------------------------------------------------- */
#ifdef SWIGJAVASCRIPT
%include "../upm_vectortypes.i"
#endif
/* END Javascript syntax */
/* BEGIN Python syntax ----------------------------------------------------- */
#ifdef SWIGPYTHON
%include "../upm_vectortypes.i"
#endif
/* END Python syntax */
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%{
#include "lsm303d_defs.h"
#include "lsm303d.hpp"
%}
%include "lsm303d_defs.h"
%include "lsm303d.hpp"
/* END Common SWIG syntax */