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

There are a variety of LSM303 devices out there with various incompatibilities and differing capabilities. The current lsm303 driver in UPM only supports the LSM303DLH variant, so it has been renamed to lsm303dlh to avoid confusion and to make it clear which variant is actually supported. All examples and source files have been renamed, including header files. In addition, the class name, LSM303, has been renamed to LSM303DLH. No other functionality or behavior has been changed. Signed-off-by: Jon Trulson <jtrulson@ics.com>
19 lines
478 B
OpenEdge ABL
19 lines
478 B
OpenEdge ABL
// Include doxygen-generated documentation
|
|
%include "pyupm_doxy2swig.i"
|
|
%module pyupm_lsm303dlh
|
|
%include "../upm.i"
|
|
%include "../carrays_int16_t.i"
|
|
|
|
%feature("autodoc", "3");
|
|
|
|
// Adding this typemap because SWIG is converting int16 into a short by default
|
|
// This forces SWIG to convert it correctly
|
|
%typemap(out) int16_t* {
|
|
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
|
}
|
|
|
|
%include "lsm303dlh.hpp"
|
|
%{
|
|
#include "lsm303dlh.hpp"
|
|
%}
|