upm/src/ublox6/javaupm_ublox6.i
deadprogram 40fe6654eb ublox6: Add most popular baud rates to GPS enums
Signed-off-by: deadprogram <ron@hybridgroup.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2016-07-22 15:33:05 -07:00

31 lines
701 B
OpenEdge ABL

%module javaupm_ublox6
%include "../upm.i"
%include "../java_buffer.i"
%{
#include "ublox6.hpp"
speed_t int_B2400 = B2400;
speed_t int_B4800 = B4800;
speed_t int_B9600 = B9600;
speed_t int_B19200 = B19200;
speed_t int_B38400 = B38400;
%}
%include "ublox6.hpp"
speed_t int_B2400 = B2400;
speed_t int_B4800 = B4800;
speed_t int_B9600 = B9600;
speed_t int_B19200 = B19200;
speed_t int_B38400 = B38400;
%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);
}
}
%}