mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00

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>
19 lines
378 B
OpenEdge ABL
19 lines
378 B
OpenEdge ABL
%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);
|
|
}
|
|
}
|
|
%} |