summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/mpl3115a2/javaupm_mpl3115a2.i
blob: 651dbccd2429412d33e2adcf6a3125c2e8b8858c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
%module javaupm_mpl3115a2
%include "../upm.i"

%{
    #include "mpl3115a2.h"
%}

%include "mpl3115a2.h"

%pragma(java) jniclasscode=%{
    static {
        try {
            System.loadLibrary("javaupm_mpl3115a2");
        } catch (UnsatisfiedLinkError e) {
            System.err.println("Native code library failed to load. \n" + e);
            System.exit(1);
        }
    }
%}