hdc1000: Added upm support for sensor HDC1000

The HDC1000 is a digital humidity sensor with integrated temperature sensor.

Signed-off-by: Norbert Wesp <nwesp@phytec.de>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Norbert Wesp
2017-02-14 12:05:01 +01:00
committed by Mihai Tudor Panu
parent 5c837f22cb
commit aecdac255d
10 changed files with 468 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
%module javaupm_hdc1000
%include "../upm.i"
%{
#include "hdc1000.hpp"
%}
%include "hdc1000.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hdc1000");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}