summaryrefslogtreecommitdiff
path: root/peripheral/libupm/src/bno055/pyupm_bno055.i
diff options
context:
space:
mode:
Diffstat (limited to 'peripheral/libupm/src/bno055/pyupm_bno055.i')
-rw-r--r--peripheral/libupm/src/bno055/pyupm_bno055.i22
1 files changed, 22 insertions, 0 deletions
diff --git a/peripheral/libupm/src/bno055/pyupm_bno055.i b/peripheral/libupm/src/bno055/pyupm_bno055.i
new file mode 100644
index 0000000..23eead2
--- /dev/null
+++ b/peripheral/libupm/src/bno055/pyupm_bno055.i
@@ -0,0 +1,22 @@
+// Include doxygen-generated documentation
+%include "pyupm_doxy2swig.i"
+%module pyupm_bno055
+%include "../upm.i"
+%include "cpointer.i"
+
+%include "stdint.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 "bno055_doc.i"
+#endif
+
+%include "bno055.hpp"
+%{
+ #include "bno055.hpp"
+%}