2017-03-29 13:15:45 -06:00
|
|
|
%module javaupm_bmm150
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "typemaps.i"
|
2017-05-15 20:19:28 +03:00
|
|
|
%include "std_vector.i"
|
2017-03-29 13:15:45 -06:00
|
|
|
|
|
|
|
|
%ignore getMagnetometer(float *, float *, float *);
|
|
|
|
|
|
2017-05-15 20:19:28 +03:00
|
|
|
%template(floatVector) std::vector<float>;
|
|
|
|
|
|
2017-03-29 13:15:45 -06:00
|
|
|
%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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|