bmg160: C port, FTI, C++ wraps C

Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
Jon Trulson
2017-03-21 17:01:14 -06:00
parent 33f3c882b8
commit 8dcd22794b
17 changed files with 3157 additions and 26 deletions

22
src/bmg160/pyupm_bmg160.i Normal file
View File

@@ -0,0 +1,22 @@
// Include doxygen-generated documentation
%include "pyupm_doxy2swig.i"
%module pyupm_bmg160
%include "../upm.i"
%include "cpointer.i"
%include "../upm_vectortypes.i"
/* Send "int *" and "float *" to python as intp and floatp */
%pointer_functions(int, intp);
%pointer_functions(float, floatp);
%feature("autodoc", "3");
#ifdef DOXYGEN
%include "bmg160_doc.i"
#endif
%include "bmg160_defs.h"
%include "bmg160.hpp"
%{
#include "bmg160.hpp"
%}