mirror of
https://github.com/eclipse/upm.git
synced 2025-03-26 10:20:01 +03:00
24 lines
506 B
OpenEdge ABL
24 lines
506 B
OpenEdge ABL
![]() |
%module javaupm_bmm150
|
||
|
%include "../upm.i"
|
||
|
%include "typemaps.i"
|
||
|
%include "../upm_vectortypes.i"
|
||
|
|
||
|
%ignore getMagnetometer(float *, float *, float *);
|
||
|
|
||
|
%include "bmm150_defs.h"
|
||
|
%include "bmm150.hpp"
|
||
|
%{
|
||
|
#include "bmm150.hpp"
|
||
|
%}
|
||
|
|
||
|
%pragma(java) jniclasscode=%{
|
||
|
static {
|
||
|
try {
|
||
|
System.loadLibrary("javaupm_bmm150");
|
||
|
} catch (UnsatisfiedLinkError e) {
|
||
|
System.err.println("Native code library failed to load. \n" + e);
|
||
|
System.exit(1);
|
||
|
}
|
||
|
}
|
||
|
%}
|