bmm150: split into new library, C port, FTI, C++ wraps C
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
23
src/bmm150/javaupm_bmm150.i
Normal file
23
src/bmm150/javaupm_bmm150.i
Normal file
@@ -0,0 +1,23 @@
|
||||
%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);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user