mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 09:20:39 +03:00

Signed-off-by: Zion Orent <zorent@ics.com> Signed-off-by: Jon Trulson <jtrulson@ics.com> Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
15 lines
371 B
OpenEdge ABL
15 lines
371 B
OpenEdge ABL
%module jsupm_hmc5883l
|
|
%include "../upm.i"
|
|
%include "../carrays_int16_t.i"
|
|
%{
|
|
#include "hmc5883l.h"
|
|
%}
|
|
|
|
// Adding this typemap because SWIG is converting int16 into a short by default
|
|
// This forces SWIG to convert it correctly
|
|
%typemap(out) int16_t* {
|
|
$result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
|
}
|
|
|
|
%include "hmc5883l.h"
|