2015-08-05 19:43:31 +03:00
|
|
|
%module javaupm_ublox6
|
|
|
|
%include "../upm.i"
|
2015-09-07 19:00:30 +03:00
|
|
|
%include "../java_buffer.i"
|
2015-08-05 19:43:31 +03:00
|
|
|
|
|
|
|
%{
|
2016-04-25 14:27:51 -07:00
|
|
|
#include "ublox6.hpp"
|
2016-07-22 17:52:25 +02:00
|
|
|
speed_t int_B2400 = B2400;
|
|
|
|
speed_t int_B4800 = B4800;
|
2015-08-05 19:43:31 +03:00
|
|
|
speed_t int_B9600 = B9600;
|
2016-07-22 17:52:25 +02:00
|
|
|
speed_t int_B19200 = B19200;
|
|
|
|
speed_t int_B38400 = B38400;
|
2015-08-05 19:43:31 +03:00
|
|
|
%}
|
|
|
|
|
2016-04-25 14:27:51 -07:00
|
|
|
%include "ublox6.hpp"
|
2016-07-22 17:52:25 +02:00
|
|
|
speed_t int_B2400 = B2400;
|
|
|
|
speed_t int_B4800 = B4800;
|
2015-08-05 19:43:31 +03:00
|
|
|
speed_t int_B9600 = B9600;
|
2016-07-22 17:52:25 +02:00
|
|
|
speed_t int_B19200 = B19200;
|
|
|
|
speed_t int_B38400 = B38400;
|
2015-11-23 17:04:32 +02:00
|
|
|
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
|
|
static {
|
|
|
|
try {
|
|
|
|
System.loadLibrary("javaupm_ublox6");
|
|
|
|
} catch (UnsatisfiedLinkError e) {
|
|
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
|
|
System.exit(1);
|
|
|
|
}
|
|
|
|
}
|
2016-07-22 17:52:25 +02:00
|
|
|
%}
|