mirror of
https://github.com/eclipse/upm.git
synced 2025-06-08 14:20:38 +03:00
hmc5883l: modified py interface to support arrays
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
parent
a4e590ae3a
commit
de342a5502
@ -1,5 +1,6 @@
|
||||
%module pyupm_hmc5883l
|
||||
%include "../upm.i"
|
||||
%include "../carrays_int16_t.i"
|
||||
|
||||
%feature("autodoc", "3");
|
||||
|
||||
@ -7,6 +8,10 @@
|
||||
%include "hmc5883l_doc.i"
|
||||
#endif
|
||||
|
||||
%typemap(out) int16_t* {
|
||||
$result = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
||||
}
|
||||
|
||||
%include "hmc5883l.h"
|
||||
%{
|
||||
#include "hmc5883l.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user