2015-08-05 19:47:50 +03:00
|
|
|
%module javaupm_pn532
|
|
|
|
%include "../upm.i"
|
2015-09-01 15:09:12 +03:00
|
|
|
%include "typemaps.i"
|
2015-08-17 18:25:09 +03:00
|
|
|
%include "arrays_java.i"
|
|
|
|
|
2015-09-01 15:09:12 +03:00
|
|
|
%apply signed char[] {uint8_t *};
|
|
|
|
%apply unsigned char *INOUT {uint8_t *responseLength};
|
|
|
|
%apply unsigned char *OUTPUT {uint8_t *uidLength};
|
|
|
|
|
2015-08-26 17:04:37 +03:00
|
|
|
%ignore i2cContext;
|
2015-08-05 19:47:50 +03:00
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "pn532.hpp"
|
2015-08-05 19:47:50 +03:00
|
|
|
%}
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "pn532.hpp"
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_pn532");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|