java: Added auto load library code in upm SWIG interfaces

Signed-off-by: Stefan Andritoiu <stefan.andritoiu@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Stefan Andritoiu 2015-11-23 17:04:32 +02:00 committed by Mihai Tudor Panu
parent 500e14663b
commit dddba3e8a4
118 changed files with 1298 additions and 14 deletions

View File

@ -12,3 +12,14 @@
#include "a110x.h"
%}
%include "a110x.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_a110x");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ad8232.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ad8232");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "adafruitms1438.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adafruitms1438");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -5,3 +5,14 @@
%{
#include "adafruitss.h"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adafruitss");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "adc121c021.h"
%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);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "adis16448.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adis16448");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -41,3 +41,14 @@
%ignore acceleration(float *, float *, float *);
%include "adxl335.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adxl335");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -34,3 +34,14 @@
}
%include "adxl345.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adxl345");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "adxrs610.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_adxrs610");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "am2315.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_am2315");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "apds9002.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_apds9002");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "at42qt1070.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_at42qt1070");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "biss0001.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_biss0001");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -34,3 +34,14 @@
%}
%include "bma220.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_bma220");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "bmpx8x.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_bmpx8x");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "buzzer.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_buzzer");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "cjq4435.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_cjq4435");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "dfrph.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_dfrph");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -8,3 +8,14 @@
%}
%include "ds1307.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ds1307");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ecs1030.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ecs1030");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "enc03r.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_enc03r");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "flex.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_flex");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -55,3 +55,14 @@
%include "mq8.h"
%include "mq9.h"
%include "tp401.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_gas");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "gp2y0a.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_gp2y0a");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -12,20 +12,17 @@
%{
#include "grove.h"
%}
/*
%typemap(jni) mraa_result_t "jint"
%typemap(jstype) mraa_result_t "int"
%typemap(jtype) mraa_result_t "int"
%typemap(javaout) mraa_result_t {
return $jnicall;
}
%typemap(out) mraa_result_t {
$result = (int)$1;
}
*/
%include "grove.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grove");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "grovecircularled.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovecircularled");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovecollision.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovecollision");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -8,3 +8,14 @@
%}
%include "groveehr.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_groveehr");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "groveeldriver.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_groveeldriver");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "groveelectromagnet.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_groveelectromagnet");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "groveemg.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_groveemg");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -9,3 +9,14 @@
%include "grovegprs.h"
%array_class(char, charArray);
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovegprs");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovegsr.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovegsr");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovelinefinder.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovelinefinder");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovemd.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovemd");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovemoisture.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovemoisture");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "groveo2.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_groveo2");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "grovescam.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovescam");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovespeaker.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovespeaker");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovevdiv.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovevdiv");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "grovewater.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovewater");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -8,3 +8,14 @@
%}
%include "grovewfs.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_grovewfs");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "guvas12d.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_guvas12d");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -49,3 +49,14 @@
%ignore getAcceleration(float *, float *, float *);
%include "h3lis331dl.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_h3lis331dl");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -11,3 +11,14 @@
%}
%include "hcsr04.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hcsr04");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -11,3 +11,14 @@
%include "hm11.h"
speed_t int_B9600 = B9600;
%array_class(char, charArray);
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hm11");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -19,3 +19,14 @@
}
%include "hmc5883l.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hmc5883l");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -17,3 +17,14 @@
%include "hmtrp.h"
speed_t int_B9600 = B9600;
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hmtrp");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "hp20x.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hp20x");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ht9170.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ht9170");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "htu21d.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_htu21d");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "hx711.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_hx711");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ina132.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ina132");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%include "isd1820.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_isd1820");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -33,3 +33,14 @@
}
%include "itg3200.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_itg3200");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "joystick12.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_joystick12");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "l298.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_l298");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -43,3 +43,14 @@
%include "lcm1602.h"
%include "jhd1313m1.h"
%include "sainsmartks.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_i2clcd");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ldt0028.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ldt0028");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "lm35.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_lm35");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -23,3 +23,14 @@
%}
%include "lol.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_lol");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "loudness.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_loudness");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "lpd8806.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_lpd8806");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -19,3 +19,14 @@
}
%include "lsm303.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_lsm303");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -48,3 +48,14 @@
%}
%include "lsm9ds0.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_lsm9ds0");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -24,3 +24,14 @@
%}
%include "m24lr64e.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_m24lr64e");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "max31723.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_max31723");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -8,3 +8,14 @@
%include "max31855.h"
//! [Interesting]
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_max31855");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "max44000.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_max44000");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "max5487.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_max5487");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "maxds3231m.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_maxds3231m");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "maxsonarez.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_maxsonarez");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "mcp9808.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mcp9808");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "mg811.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mg811");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -14,3 +14,14 @@
%include "mhz16.h"
speed_t int_B9600 = B9600;
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mhz16");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -38,3 +38,14 @@
}
%include "mic.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mic");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "micsv89.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_micsv89");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "mlx90614.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mlx90614");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -27,3 +27,14 @@
%}
%include "mma7455.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mma7455");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -48,3 +48,14 @@
%ignore getAcceleration(float *, float *, float *);
%include "mma7660.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mma7660");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%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);
}
}
%}

View File

@ -8,3 +8,14 @@
%}
%include "mpr121.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mpr121");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -37,3 +37,14 @@
%include "mpu60x0.h"
%include "mpu9150.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mpu9150");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "mq303a.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_mq303a");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "my9221.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_my9221");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -12,3 +12,14 @@
%}
%include "nrf24l01.h"
%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);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "nrf8001.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_nrf8001");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "nunchuck.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_nunchuck");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "otp538u.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_otp538u");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "pca9685.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_pca9685");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -14,3 +14,14 @@
%}
%include "pn532.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_pn532");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "ppd42ns.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_ppd42ns");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -15,3 +15,14 @@
%}
%include "pulsensor.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_pulsensor");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "rfr359f.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_rfr359f");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "rgbringcoder.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_rgbringcoder");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -8,3 +8,14 @@
%}
%include "rotaryencoder.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_rotaryencoder");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -11,3 +11,14 @@
#include "rpr220.h"
%}
%include "rpr220.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_rpr220");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -15,3 +15,14 @@
%{
#include "es9257.h"
%}
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_servo");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -7,3 +7,14 @@
%}
%include "si114x.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_si114x");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

View File

@ -6,3 +6,14 @@
%}
%include "sm130.h"
%pragma(java) jniclasscode=%{
static {
try {
System.loadLibrary("javaupm_sm130");
} catch (UnsatisfiedLinkError e) {
System.err.println("Native code library failed to load. \n" + e);
System.exit(1);
}
}
%}

Some files were not shown because too many files have changed in this diff Show More