blob: d3e32b9318430863173e111db495a7362853858a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
%module(directors="1") javaupm_nrf24l01
%include "../upm.i"
%feature("director") Callback;
SWIG_DIRECTOR_OWNED(Callback)
%include "arrays_java.i";
%apply signed char[] {uint8_t *};
%include "Callback.hpp"
%{
#include "nrf24l01.hpp"
%}
%include "nrf24l01.hpp"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_nrf24l01");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}
|