lsm6dsl: Initial implementation; C; C++ wraps C; FTI; examples
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
24
src/lsm6dsl/javaupm_lsm6dsl.i
Normal file
24
src/lsm6dsl/javaupm_lsm6dsl.i
Normal file
@@ -0,0 +1,24 @@
|
||||
%module javaupm_lsm6dsl
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
%include "../upm_vectortypes.i"
|
||||
|
||||
%ignore getAccelerometer(float *, float *, float *);
|
||||
%ignore getGyroscope(float *, float *, float *);
|
||||
|
||||
%include "lsm6dsl_defs.h"
|
||||
%include "lsm6dsl.hpp"
|
||||
%{
|
||||
#include "lsm6dsl.hpp"
|
||||
%}
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_lsm6dsl");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user