mirror of
https://github.com/eclipse/upm.git
synced 2025-03-25 17:59:59 +03:00

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>
21 lines
490 B
OpenEdge ABL
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 */
|