2016-07-22 15:52:55 -07:00
|
|
|
%module javaupm_ms5611
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
|
2017-02-06 14:59:00 -08:00
|
|
|
%include "../interfaces/javaupm_iTemperatureSensor.i"
|
|
|
|
|
%include "../interfaces/javaupm_iPressureSensor.i"
|
|
|
|
|
|
2016-07-22 15:52:55 -07:00
|
|
|
%{
|
|
|
|
|
#include "ms5611.hpp"
|
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
%include "ms5611.hpp"
|
2016-09-29 18:24:19 -07:00
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
|
static {
|
|
|
|
|
try {
|
|
|
|
|
System.loadLibrary("javaupm_ms5611");
|
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
|
System.exit(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
%}
|