2015-12-01 14:57:34 -08:00
|
|
|
%module javaupm_ads1x15
|
|
|
|
|
%include "../upm.i"
|
2017-04-05 18:36:43 +03:00
|
|
|
%include "typemaps.i"
|
2017-02-06 14:59:00 -08:00
|
|
|
|
2017-04-05 18:36:43 +03:00
|
|
|
%import "../interfaces/javaupm_iADC.i"
|
2017-02-06 14:59:00 -08:00
|
|
|
|
2017-04-05 18:36:43 +03:00
|
|
|
%typemap(javaimports) SWIGTYPE %{
|
|
|
|
|
import upm_interfaces.*;
|
|
|
|
|
%}
|
2015-12-01 14:57:34 -08:00
|
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "ads1x15.hpp"
|
|
|
|
|
#include "ads1015.hpp"
|
|
|
|
|
#include "ads1115.hpp"
|
2015-12-01 14:57:34 -08:00
|
|
|
%}
|
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "ads1x15.hpp"
|
|
|
|
|
%include "ads1015.hpp"
|
|
|
|
|
%include "ads1115.hpp"
|
2015-12-01 14:57:34 -08:00
|
|
|
|
|
|
|
|
%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);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-30 18:14:48 -08:00
|
|
|
%}
|