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>
This commit is contained in:
47
src/bmx055/pyupm_bmx055.i
Normal file
47
src/bmx055/pyupm_bmx055.i
Normal file
@@ -0,0 +1,47 @@
|
||||
// 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"
|
||||
%}
|
||||
Reference in New Issue
Block a user