2015-12-23 17:47:26 +02:00
|
|
|
%module javaupm_sx1276
|
2015-10-30 17:58:36 -06:00
|
|
|
%include "../upm.i"
|
|
|
|
%include "cpointer.i"
|
|
|
|
%include "typemaps.i"
|
|
|
|
%include "arrays_java.i";
|
|
|
|
%include "../java_buffer.i"
|
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "sx1276.hpp"
|
2015-10-30 17:58:36 -06:00
|
|
|
%}
|
|
|
|
|
2015-11-27 19:24:38 +02:00
|
|
|
%ignore send(uint8_t *buffer, uint8_t size, int txTimeout);
|
|
|
|
%ignore getRxBuffer();
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "sx1276.hpp"
|
2015-12-04 14:47:59 +02:00
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_sx1276");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
%}
|