lsm303: rename to lsm303dlh
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>
This commit is contained in:
15
src/lsm303dlh/jsupm_lsm303dlh.i
Normal file
15
src/lsm303dlh/jsupm_lsm303dlh.i
Normal file
@@ -0,0 +1,15 @@
|
||||
%module jsupm_lsm303dlh
|
||||
%include "../upm.i"
|
||||
%include "../carrays_int16_t.i"
|
||||
|
||||
// Adding this typemap because SWIG is converting int16 into a short by default
|
||||
// This forces SWIG to convert it correctly
|
||||
%typemap(out) int16_t* {
|
||||
jsresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_int16Array, 0 | 0 );
|
||||
}
|
||||
|
||||
%{
|
||||
#include "lsm303dlh.hpp"
|
||||
%}
|
||||
|
||||
%include "lsm303dlh.hpp"
|
||||
Reference in New Issue
Block a user