2015-09-17 17:23:46 +03:00
|
|
|
%module (directors=1, docstring="TTP223 Touch Sensor") javaupm_ttp223
|
|
|
|
|
2015-08-05 19:43:31 +03:00
|
|
|
%include "../upm.i"
|
|
|
|
|
2015-09-17 17:23:46 +03:00
|
|
|
%feature("director") IsrCallback;
|
2015-12-09 14:34:19 +02:00
|
|
|
SWIG_DIRECTOR_OWNED(IsrCallback)
|
2015-09-17 17:23:46 +03:00
|
|
|
%ignore generic_callback_isr;
|
|
|
|
%include "../IsrCallback.h"
|
|
|
|
|
|
|
|
%apply int {mraa::Edge}
|
|
|
|
|
|
|
|
|
2015-08-05 19:43:31 +03:00
|
|
|
%{
|
|
|
|
#include "ttp223.h"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "ttp223.h"
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_ttp223");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|