mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00

The driver implements support for the Omega RH-USB Humidity Probe with Temperature sensor. It connects via an integrated USB cable, and appears as a serial port. It does not currently work with Edison (as of this date) due to missing ftdi_sio and usbserial kernel support. It was implemented and tested on the Galileo 2. Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
24 lines
465 B
OpenEdge ABL
24 lines
465 B
OpenEdge ABL
%module javaupm_rhusb
|
|
%include "../upm.i"
|
|
%include "typemaps.i"
|
|
%include "cpointer.i"
|
|
%include "arrays_java.i";
|
|
%include "../java_buffer.i"
|
|
|
|
%{
|
|
#include "rhusb.h"
|
|
%}
|
|
|
|
%include "rhusb.h"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_rhusb");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|