2016-05-04 12:47:39 -06:00
|
|
|
%module javaupm_bmp280
|
|
|
|
%include "../upm.i"
|
|
|
|
%include "cpointer.i"
|
|
|
|
%include "typemaps.i"
|
|
|
|
%include "arrays_java.i";
|
|
|
|
%include "../java_buffer.i"
|
|
|
|
|
2017-01-30 18:14:48 -08:00
|
|
|
%include "iModuleStatus.hpp"
|
|
|
|
%include "iHumiditySensor.hpp"
|
|
|
|
%include "iPressureSensor.hpp"
|
|
|
|
%include "iTemperatureSensor.hpp"
|
2016-05-04 12:47:39 -06:00
|
|
|
%include "bmp280.hpp"
|
|
|
|
%{
|
|
|
|
#include "bmp280.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "bme280.hpp"
|
|
|
|
%{
|
|
|
|
#include "bme280.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_bmp280");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|