mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 17:30:01 +03:00

* c/c++ source * java/js/python/c/c++ examples * Doc image (png) * Tested on Intel Edison * TODO: Tuning for SpO2 reading Signed-off-by: Noel Eck <noel.eck@intel.com>
22 lines
474 B
OpenEdge ABL
22 lines
474 B
OpenEdge ABL
%module(directors="1", threads="1") javaupm_max30100
|
|
%include "../upm.i"
|
|
|
|
%{
|
|
#include "max30100.hpp"
|
|
%}
|
|
|
|
%feature("director") upm::Callback;
|
|
%include "max30100_regs.h"
|
|
%include "max30100.hpp"
|
|
|
|
%pragma(java) jniclasscode=%{
|
|
static {
|
|
try {
|
|
System.loadLibrary("javaupm_max30100");
|
|
} catch (UnsatisfiedLinkError e) {
|
|
System.err.println("Native code library failed to load. \n" + e);
|
|
System.exit(1);
|
|
}
|
|
}
|
|
%}
|