upm/src/max30100/javaupm_max30100.i
Noel Eck bd47b9ed45 max30100: Initial commit - MAX30100 pulse oximeter
* 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>
2017-01-10 11:29:30 -08:00

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);
}
}
%}