mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00
21 lines
416 B
OpenEdge ABL
21 lines
416 B
OpenEdge ABL
![]() |
%module jsupm_adxl345
|
||
|
%include "../upm.i"
|
||
|
%include "../carrays_int16_t.i"
|
||
|
%include "../carrays_float.i"
|
||
|
|
||
|
%{
|
||
|
#include "adxl345.h"
|
||
|
%}
|
||
|
|
||
|
%typemap(out) int16_t * {
|
||
|
$result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
||
|
}
|
||
|
|
||
|
%typemap(out) float * {
|
||
|
$result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_floatArray, 0 | 0 );
|
||
|
}
|
||
|
|
||
|
%include "adxl345.h"
|
||
|
|
||
|
%include <carrays.i>
|