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-05-06 17:56:51 -06:00
|
|
|
%module jsupm_bmx055
|
|
|
|
%include "../upm.i"
|
|
|
|
%include "cpointer.i"
|
2017-03-27 13:31:39 -06:00
|
|
|
%include "../upm_vectortypes.i"
|
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-05-06 17:56:51 -06:00
|
|
|
|
|
|
|
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
|
|
|
%pointer_functions(int, intp);
|
|
|
|
%pointer_functions(float, floatp);
|
|
|
|
|
2017-03-27 13:31:39 -06:00
|
|
|
%include "bmg160_defs.h"
|
|
|
|
%include "bma250e_defs.h"
|
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-05-06 17:56:51 -06:00
|
|
|
|
|
|
|
%include "bmm150.hpp"
|
|
|
|
%{
|
|
|
|
#include "bmm150.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "bmx055.hpp"
|
|
|
|
%{
|
|
|
|
#include "bmx055.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "bmc150.hpp"
|
|
|
|
%{
|
|
|
|
#include "bmc150.hpp"
|
|
|
|
%}
|
|
|
|
|
|
|
|
%include "bmi055.hpp"
|
|
|
|
%{
|
|
|
|
#include "bmi055.hpp"
|
|
|
|
%}
|