upm/src/kx122/kx122.i
Noel Eck a43bcfe8d2 kx122: Add Java/Javascript/Python examples
Implemented a swig interface file for the kx122 and added corresponding
swig language examples.  Also added an STL vector flavor for getting
acceleration values from the kx122.

Signed-off-by: Noel Eck <noel.eck@intel.com>
2018-02-26 14:36:06 -08:00

21 lines
490 B
OpenEdge ABL

%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
JAVA_JNI_LOADLIBRARY(javaupm_kx122)
#endif
/* END Java syntax */
/* BEGIN Common SWIG syntax ------------------------------------------------- */
%include "std_vector.i"
%template(floatVector) std::vector<float>;
%apply float *OUTPUT {float *x, float *y, float *z};
%{
#include "kx122.hpp"
%}
%include "kx122.h"
%include "kx122.hpp"
/* END Common SWIG syntax */