summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/adc121c021/javaupm_adc121c021.i
blob: 45096009f38429c716d3d06fe46650d975d32e3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
%module javaupm_adc121c021
%include "../upm.i"
/*%include "../carrays_uint16_t.i"
*/
%{
    #include "adc121c021.hpp"
%}

%include "adc121c021.hpp"

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