2016-05-04 12:47:39 -06:00
|
|
|
%module javaupm_bmp280
|
|
|
|
%include "../upm.i"
|
2017-02-06 14:59:00 -08:00
|
|
|
|
|
|
|
%include "../interfaces/javaupm_iTemperatureSensor.i"
|
|
|
|
%include "../interfaces/javaupm_iHumiditySensor.i"
|
|
|
|
%include "../interfaces/javaupm_iPressureSensor.i"
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|