mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 11:21:12 +03:00
rhusb: Initial implementation
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>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
a5fd4a2c10
commit
e1c66c351a
23
src/rhusb/javaupm_rhusb.i
Normal file
23
src/rhusb/javaupm_rhusb.i
Normal file
@ -0,0 +1,23 @@
|
||||
%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);
|
||||
}
|
||||
}
|
||||
%}
|
Reference in New Issue
Block a user