upm/src/sx1276/javaupm_sx1276.i

27 lines
557 B
OpenEdge ABL
Raw Normal View History

%module javaupm_sx1276
%include "../upm.i"
%include "cpointer.i"
%include "typemaps.i"
%include "arrays_java.i";
%include "../java_buffer.i"
%{
#include "sx1276.hpp"
%}
%ignore send(uint8_t *buffer, uint8_t size, int txTimeout);
%ignore getRxBuffer();
%include "sx1276.hpp"
%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);
}
}
%}