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>
19 lines
378 B
OpenEdge ABL
19 lines
378 B
OpenEdge ABL
%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);
|
|
}
|
|
}
|
|
%} |