mirror of
https://github.com/eclipse/upm.git
synced 2025-03-22 00:17:30 +03:00

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>
38 lines
528 B
OpenEdge ABL
38 lines
528 B
OpenEdge ABL
%module jsupm_bmx055
|
|
%include "../upm.i"
|
|
%include "cpointer.i"
|
|
|
|
/* Send "int *" and "float *" to JavaScript as intp and floatp */
|
|
%pointer_functions(int, intp);
|
|
%pointer_functions(float, floatp);
|
|
|
|
%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"
|
|
%}
|