Added bindings for iHallEffect sensors.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
Serban Waltter 2018-06-21 16:39:05 +03:00
parent 7353449b2b
commit d6bbe8ec24
2 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,7 @@ upm_mixed_module_init (NAME a110x
C_SRC a110x.c C_SRC a110x.c
CPP_HDR a110x.hpp CPP_HDR a110x.hpp
CPP_SRC a110x.cxx CPP_SRC a110x.cxx
IFACE_HDR iHallEffect.hpp
FTI_SRC a110x_fti.c FTI_SRC a110x_fti.c
CPP_WRAPS_C CPP_WRAPS_C
REQUIRES mraa) REQUIRES mraa)

View File

@ -1,7 +1,17 @@
#ifdef SWIGPYTHON
%module (package="pyupm_new_interfaces") a110x
#endif
%import "interfaces/new_interfaces.i"
%include "../common_top.i" %include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */ /* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA #ifdef SWIGJAVA
%typemap(javaimports) SWIGTYPE %{
import upm_new_interfaces.*;
%}
/* Macro for loading javaupm_a110x */ /* Macro for loading javaupm_a110x */
JAVA_JNI_LOADLIBRARY(javaupm_a110x) JAVA_JNI_LOADLIBRARY(javaupm_a110x)