upm/src/bmx055/pyupm_bmx055.i
Jon Trulson 8fb7907a4e bmx055, bmi055, bmc160, bma250e, bmg150, bmm150: Initial implementation
This module (bmx055) implements support for the following core Bosch
chipsets:

bma250e - accelerometer, 3 variants (chip id's 0x03, 0xf9, and 0xfa)
bmm150 - magnetometer
bmg160 - gyroscope

The other 3 devices are combinations of the above:

bmx055 - accel/gyro/mag
bmc160 - accel/mag
bmi055 - accel/gyro

...for 6 devices total.

For the combination devices, all of the sub-devices appear as
individual independent devices on the I2C/SPI bus.

The combination drivers provide basic configuration and data output.
For more detailed control as well as interrupt support, you should use
the core device drivers (accel/gyro/mag) directly.

These devices support both I2C and SPI communications.  They must be
powered at 3.3vdc.

Signed-off-by: Jon Trulson <jtrulson@ics.com>
2016-06-14 16:40:21 -06:00

48 lines
691 B
OpenEdge ABL

// Include doxygen-generated documentation
%include "pyupm_doxy2swig.i"
%module pyupm_bmx055
%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 "bmx055_doc.i"
#endif
%include "bma250e.hpp"
%{
#include "bma250e.hpp"
%}
%include "bmg160.hpp"
%{
#include "bmg160.hpp"
%}
%include "bmm150.hpp"
%{
#include "bmm150.hpp"
%}
%include "bmx055.hpp"
%{
#include "bmx055.hpp"
%}
%include "bmc150.hpp"
%{
#include "bmc150.hpp"
%}
%include "bmi055.hpp"
%{
#include "bmi055.hpp"
%}