mma8x5x: Added upm support for some MMA8X5X sensors
This commit adds support for following sensors: MMA8652 , MMA8653, MMA8451 , MMA8452 , MMA8453 These sensors are three-axis accelerometer. Signed-off-by: Norbert Wesp <nwesp@phytec.de> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
committed by
Mihai Tudor Panu
parent
8342b4c079
commit
12c81adeba
19
src/mma8x5x/javaupm_mma8x5x.i
Normal file
19
src/mma8x5x/javaupm_mma8x5x.i
Normal file
@@ -0,0 +1,19 @@
|
||||
%module javaupm_mma8x5x
|
||||
%include "../upm.i"
|
||||
|
||||
%{
|
||||
#include "mma8x5x.hpp"
|
||||
%}
|
||||
|
||||
%include "mma8x5x.hpp"
|
||||
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
System.loadLibrary("javaupm_mma8x5x");
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
System.err.println("Native code library failed to load. \n" + e);
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user