Added bindings for iDistance sensors.

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
This commit is contained in:
Serban Waltter
2018-06-21 16:36:12 +03:00
parent 2ac7778d2d
commit 852065f718
13 changed files with 158 additions and 0 deletions

View File

@ -4,6 +4,7 @@ upm_mixed_module_init (NAME urm37
C_SRC urm37.c
CPP_HDR urm37.hpp
CPP_SRC urm37.cxx
IFACE_HDR iDistance.hpp
FTI_SRC urm37_fti.c
CPP_WRAPS_C
REQUIRES mraa utilities-c)

View File

@ -1,7 +1,16 @@
#ifdef SWIGPYTHON
%module (package="pyupm_new_interfaces") urm37
#endif
%import "interfaces/new_interfaces.i"
%include "../common_top.i"
/* BEGIN Java syntax ------------------------------------------------------- */
#ifdef SWIGJAVA
%typemap(javaimports) SWIGTYPE %{
import upm_new_interfaces.*;
%}
JAVA_JNI_LOADLIBRARY(javaupm_urm37)
#endif
/* END Java syntax */