mirror of
https://github.com/eclipse/upm.git
synced 2025-07-27 14:11:15 +03:00
Added bindings for iAcceleration sensors
Signed-off-by: Serban Waltter <serban.waltter@rinftech.com> Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:

committed by
Mihai Tudor Panu

parent
f992876461
commit
b6e53f7da8
@ -5,5 +5,6 @@ upm_mixed_module_init (NAME lsm303agr
|
||||
CPP_HDR lsm303agr.hpp
|
||||
CPP_SRC lsm303agr.cxx
|
||||
FTI_SRC lsm303agr_fti.c
|
||||
IFACE_HDR iAcceleration.hpp
|
||||
CPP_WRAPS_C
|
||||
REQUIRES mraa utilities-c)
|
||||
|
@ -1,28 +1,25 @@
|
||||
#ifdef SWIGPYTHON
|
||||
%module (package="upm") lsm303agr
|
||||
#endif
|
||||
|
||||
%import "interfaces/new_interfaces.i"
|
||||
|
||||
%include "../common_top.i"
|
||||
|
||||
/* BEGIN Java syntax ------------------------------------------------------- */
|
||||
#ifdef SWIGJAVA
|
||||
%include "../upm_javastdvector.i"
|
||||
|
||||
%ignore getMagnetometer(float *, float *, float *);
|
||||
%ignore getAccelerometer(float *, float *, float *);
|
||||
%ignore installISR(LSM303AGR_INTERRUPT_PINS_T , int , mraa::Edge , void *, void *);
|
||||
|
||||
%typemap(javaimports) SWIGTYPE %{
|
||||
import upm_new_interfaces.*;
|
||||
|
||||
import java.util.AbstractList;
|
||||
import java.lang.Float;
|
||||
%}
|
||||
|
||||
%typemap(javaout) SWIGTYPE {
|
||||
return new $&javaclassname($jnicall, true);
|
||||
}
|
||||
%typemap(javaout) std::vector<float> {
|
||||
return (AbstractList<Float>)(new $&javaclassname($jnicall, true));
|
||||
}
|
||||
%typemap(jstype) std::vector<float> "AbstractList<Float>"
|
||||
|
||||
%template(floatVector) std::vector<float>;
|
||||
|
||||
%define INTERRUPT LSM303AGR_INTERRUPT_PINS_T
|
||||
%enddef
|
||||
|
||||
|
Reference in New Issue
Block a user