2016-05-04 12:47:39 -06:00
|
|
|
%module javaupm_bmp280
|
2017-04-05 18:36:43 +03:00
|
|
|
|
|
|
|
%import "../interfaces/javaupm_iTemperatureSensor.i"
|
|
|
|
%import "../interfaces/javaupm_iHumiditySensor.i"
|
|
|
|
%import "../interfaces/javaupm_iPressureSensor.i"
|
|
|
|
|
|
|
|
|
2016-05-04 12:47:39 -06:00
|
|
|
%include "../upm.i"
|
2017-04-05 18:36:43 +03:00
|
|
|
%include "cpointer.i"
|
|
|
|
%include "typemaps.i"
|
|
|
|
%include "arrays_java.i";
|
|
|
|
%include "../java_buffer.i"
|
2017-02-06 14:59:00 -08:00
|
|
|
|
2017-04-05 18:36:43 +03:00
|
|
|
%typemap(javaimports) SWIGTYPE %{
|
|
|
|
import upm_interfaces.*;
|
|
|
|
%}
|
2017-02-06 14:59:00 -08:00
|
|
|
|
2017-03-10 09:57:09 -07:00
|
|
|
%include "bmp280_regs.h"
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|