24 lines
517 B
OpenEdge ABL
24 lines
517 B
OpenEdge ABL
|
|
%module javaupm_lis2ds12
|
||
|
|
%include "../upm.i"
|
||
|
|
%include "typemaps.i"
|
||
|
|
%include "../upm_vectortypes.i"
|
||
|
|
|
||
|
|
%ignore getAccelerometer(float *, float *, float *);
|
||
|
|
|
||
|
|
%include "lis2ds12_defs.h"
|
||
|
|
%include "lis2ds12.hpp"
|
||
|
|
%{
|
||
|
|
#include "lis2ds12.hpp"
|
||
|
|
%}
|
||
|
|
|
||
|
|
%pragma(java) jniclasscode=%{
|
||
|
|
static {
|
||
|
|
try {
|
||
|
|
System.loadLibrary("javaupm_lis2ds12");
|
||
|
|
} catch (UnsatisfiedLinkError e) {
|
||
|
|
System.err.println("Native code library failed to load. \n" + e);
|
||
|
|
System.exit(1);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
%}
|