upm/src/ads1x15/javaupm_ads1x15.i
Stefan Andritoiu fe9254c004 java: Created a general interface that is no longer included in each package and updated examples
Signed-off-by: Bogdan Ichim <bogdan.ichim@rinftech.com>
Signed-off-by: Stefan Andritoiu <stefan.andritoiu@gmail.com>
2017-04-25 11:57:54 -07:00

31 lines
604 B
OpenEdge ABL

%module javaupm_ads1x15
%include "../upm.i"
%include "typemaps.i"
%import "../interfaces/javaupm_iADC.i"
%typemap(javaimports) SWIGTYPE %{
import upm_interfaces.*;
%}
%{
#include "ads1x15.hpp"
#include "ads1015.hpp"
#include "ads1115.hpp"
%}
%include "ads1x15.hpp"
%include "ads1015.hpp"
%include "ads1115.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ads1x15");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}