mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
java: solved SWIGTYPE_p_int and SWIGTYPE_p_float
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:
parent
8eed56fda0
commit
78a159594b
@ -1,9 +1,10 @@
|
||||
%module javaupm_adxl335
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%pointer_functions(int, intPointer);
|
||||
%pointer_functions(float, floatPointer);
|
||||
%apply int *OUTPUT { int *xVal, int *yVal, int *zVal };
|
||||
%apply float *OUTPUT { float *xAccel, float *yAccel, float *zAccel };
|
||||
|
||||
%{
|
||||
#include "adxl335.h"
|
||||
|
@ -1,10 +1,11 @@
|
||||
%module javaupm_h3lis331dl
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%apply int *OUTPUT { int *x, int *y, int*z };
|
||||
%apply float *OUTPUT { float *aX, float *aY, float *aZ };
|
||||
|
||||
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
||||
%pointer_functions(int, intp);
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%{
|
||||
#include "h3lis331dl.h"
|
||||
|
@ -1,8 +1,9 @@
|
||||
%module javaupm_lsm9ds0
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%pointer_functions(float, floatp);
|
||||
%apply float *INOUT { float *x, float *y, float *z };
|
||||
|
||||
%include "lsm9ds0.h"
|
||||
%{
|
||||
|
@ -1,9 +1,11 @@
|
||||
%module javaupm_mhz16
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
/* Send "int *" to JavaScript as intp */
|
||||
%pointer_functions(int, intp);
|
||||
%apply int *OUTPUT { int *gas, int *temp };
|
||||
|
||||
%{
|
||||
#include "mhz16.h"
|
||||
speed_t int_B9600 = B9600;
|
||||
|
@ -1,10 +1,11 @@
|
||||
%module javaupm_mma7660
|
||||
%include "../upm.i"
|
||||
%include "cpointer.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%apply int *OUTPUT { int *x, int *y, int *z };
|
||||
%apply float *OUTPUT { float *ax, float *ay, float *az };
|
||||
|
||||
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
||||
%pointer_functions(int, intp);
|
||||
%pointer_functions(float, floatp);
|
||||
|
||||
%{
|
||||
#include "mma7660.h"
|
||||
|
@ -1,5 +1,8 @@
|
||||
%module javaupm_mpu9150
|
||||
%include "../upm.i"
|
||||
%include "typemaps.i"
|
||||
|
||||
%apply float *INOUT { float *x, float *y, float *z };
|
||||
|
||||
%{
|
||||
#include "mpu9150.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user