mirror of
https://github.com/eclipse/upm.git
synced 2025-03-28 03:10:06 +03:00

This commit provides a basic driver for the Vishay VEML6070 UV Sensor. Some functionality might be missing. Binding examples have not been tested as of now. Signed-off-by: Abhishek Malik <abhishek.malik@intel.com>
21 lines
424 B
OpenEdge ABL
21 lines
424 B
OpenEdge ABL
%module javaupm_veml6070
|
|
%include "../upm.i"
|
|
%include "stdint.i"
|
|
%include "typemaps.i"
|
|
|
|
%{
|
|
#include "veml6070.hpp"
|
|
%}
|
|
%include "veml6070.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_veml6070");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|