2015-12-01 14:57:34 -08:00
|
|
|
%module javaupm_ads1x15
|
|
|
|
|
%include "../upm.i"
|
|
|
|
|
%include "typemaps.i"
|
|
|
|
|
|
|
|
|
|
%{
|
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
|
|
|
%}
|
|
|
|
|
|
2017-01-30 18:14:48 -08:00
|
|
|
%include "iModuleStatus.hpp"
|
|
|
|
|
%include "iADC.hpp"
|
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
|
|
|
%}
|