Source code for pyupm_lsm303d

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_pyupm_lsm303d', [dirname(__file__)])
        except ImportError:
            import _pyupm_lsm303d
            return _pyupm_lsm303d
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_lsm303d', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_lsm303d = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lsm303d
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0



def getVersion():
    return _pyupm_lsm303d.getVersion()
getVersion = _pyupm_lsm303d.getVersion
[docs]class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _pyupm_lsm303d.delete_SwigPyIterator __del__ = lambda self: None
[docs] def value(self): return _pyupm_lsm303d.SwigPyIterator_value(self)
[docs] def incr(self, n=1): return _pyupm_lsm303d.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1): return _pyupm_lsm303d.SwigPyIterator_decr(self, n)
[docs] def distance(self, x): return _pyupm_lsm303d.SwigPyIterator_distance(self, x)
[docs] def equal(self, x): return _pyupm_lsm303d.SwigPyIterator_equal(self, x)
[docs] def copy(self): return _pyupm_lsm303d.SwigPyIterator_copy(self)
[docs] def next(self): return _pyupm_lsm303d.SwigPyIterator_next(self)
def __next__(self): return _pyupm_lsm303d.SwigPyIterator___next__(self)
[docs] def previous(self): return _pyupm_lsm303d.SwigPyIterator_previous(self)
[docs] def advance(self, n): return _pyupm_lsm303d.SwigPyIterator_advance(self, n)
def __eq__(self, x): return _pyupm_lsm303d.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _pyupm_lsm303d.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _pyupm_lsm303d.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _pyupm_lsm303d.SwigPyIterator___isub__(self, n) def __add__(self, n): return _pyupm_lsm303d.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _pyupm_lsm303d.SwigPyIterator___sub__(self, *args) def __iter__(self): return self
SwigPyIterator_swigregister = _pyupm_lsm303d.SwigPyIterator_swigregister SwigPyIterator_swigregister(SwigPyIterator)
[docs]class intVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, intVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_lsm303d.intVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lsm303d.intVector___nonzero__(self) def __bool__(self): return _pyupm_lsm303d.intVector___bool__(self) def __len__(self): return _pyupm_lsm303d.intVector___len__(self) def __getslice__(self, i, j): return _pyupm_lsm303d.intVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lsm303d.intVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lsm303d.intVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lsm303d.intVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lsm303d.intVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lsm303d.intVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lsm303d.intVector_pop(self)
[docs] def append(self, x): return _pyupm_lsm303d.intVector_append(self, x)
[docs] def empty(self): return _pyupm_lsm303d.intVector_empty(self)
[docs] def size(self): return _pyupm_lsm303d.intVector_size(self)
[docs] def swap(self, v): return _pyupm_lsm303d.intVector_swap(self, v)
[docs] def begin(self): return _pyupm_lsm303d.intVector_begin(self)
[docs] def end(self): return _pyupm_lsm303d.intVector_end(self)
[docs] def rbegin(self): return _pyupm_lsm303d.intVector_rbegin(self)
[docs] def rend(self): return _pyupm_lsm303d.intVector_rend(self)
[docs] def clear(self): return _pyupm_lsm303d.intVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lsm303d.intVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lsm303d.intVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lsm303d.intVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lsm303d.new_intVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lsm303d.intVector_push_back(self, x)
[docs] def front(self): return _pyupm_lsm303d.intVector_front(self)
[docs] def back(self): return _pyupm_lsm303d.intVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lsm303d.intVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lsm303d.intVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lsm303d.intVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lsm303d.intVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lsm303d.intVector_capacity(self)
__swig_destroy__ = _pyupm_lsm303d.delete_intVector __del__ = lambda self: None
intVector_swigregister = _pyupm_lsm303d.intVector_swigregister intVector_swigregister(intVector)
[docs]class int16Vector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, int16Vector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, int16Vector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_lsm303d.int16Vector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lsm303d.int16Vector___nonzero__(self) def __bool__(self): return _pyupm_lsm303d.int16Vector___bool__(self) def __len__(self): return _pyupm_lsm303d.int16Vector___len__(self) def __getslice__(self, i, j): return _pyupm_lsm303d.int16Vector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lsm303d.int16Vector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lsm303d.int16Vector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lsm303d.int16Vector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lsm303d.int16Vector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lsm303d.int16Vector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lsm303d.int16Vector_pop(self)
[docs] def append(self, x): return _pyupm_lsm303d.int16Vector_append(self, x)
[docs] def empty(self): return _pyupm_lsm303d.int16Vector_empty(self)
[docs] def size(self): return _pyupm_lsm303d.int16Vector_size(self)
[docs] def swap(self, v): return _pyupm_lsm303d.int16Vector_swap(self, v)
[docs] def begin(self): return _pyupm_lsm303d.int16Vector_begin(self)
[docs] def end(self): return _pyupm_lsm303d.int16Vector_end(self)
[docs] def rbegin(self): return _pyupm_lsm303d.int16Vector_rbegin(self)
[docs] def rend(self): return _pyupm_lsm303d.int16Vector_rend(self)
[docs] def clear(self): return _pyupm_lsm303d.int16Vector_clear(self)
[docs] def get_allocator(self): return _pyupm_lsm303d.int16Vector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lsm303d.int16Vector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lsm303d.int16Vector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lsm303d.new_int16Vector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lsm303d.int16Vector_push_back(self, x)
[docs] def front(self): return _pyupm_lsm303d.int16Vector_front(self)
[docs] def back(self): return _pyupm_lsm303d.int16Vector_back(self)
[docs] def assign(self, n, x): return _pyupm_lsm303d.int16Vector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lsm303d.int16Vector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lsm303d.int16Vector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lsm303d.int16Vector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lsm303d.int16Vector_capacity(self)
__swig_destroy__ = _pyupm_lsm303d.delete_int16Vector __del__ = lambda self: None
int16Vector_swigregister = _pyupm_lsm303d.int16Vector_swigregister int16Vector_swigregister(int16Vector)
[docs]class floatVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floatVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floatVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_lsm303d.floatVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lsm303d.floatVector___nonzero__(self) def __bool__(self): return _pyupm_lsm303d.floatVector___bool__(self) def __len__(self): return _pyupm_lsm303d.floatVector___len__(self) def __getslice__(self, i, j): return _pyupm_lsm303d.floatVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lsm303d.floatVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lsm303d.floatVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lsm303d.floatVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lsm303d.floatVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lsm303d.floatVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lsm303d.floatVector_pop(self)
[docs] def append(self, x): return _pyupm_lsm303d.floatVector_append(self, x)
[docs] def empty(self): return _pyupm_lsm303d.floatVector_empty(self)
[docs] def size(self): return _pyupm_lsm303d.floatVector_size(self)
[docs] def swap(self, v): return _pyupm_lsm303d.floatVector_swap(self, v)
[docs] def begin(self): return _pyupm_lsm303d.floatVector_begin(self)
[docs] def end(self): return _pyupm_lsm303d.floatVector_end(self)
[docs] def rbegin(self): return _pyupm_lsm303d.floatVector_rbegin(self)
[docs] def rend(self): return _pyupm_lsm303d.floatVector_rend(self)
[docs] def clear(self): return _pyupm_lsm303d.floatVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lsm303d.floatVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lsm303d.floatVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lsm303d.floatVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lsm303d.new_floatVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lsm303d.floatVector_push_back(self, x)
[docs] def front(self): return _pyupm_lsm303d.floatVector_front(self)
[docs] def back(self): return _pyupm_lsm303d.floatVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lsm303d.floatVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lsm303d.floatVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lsm303d.floatVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lsm303d.floatVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lsm303d.floatVector_capacity(self)
__swig_destroy__ = _pyupm_lsm303d.delete_floatVector __del__ = lambda self: None
floatVector_swigregister = _pyupm_lsm303d.floatVector_swigregister floatVector_swigregister(floatVector)
[docs]class doubleVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doubleVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doubleVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_lsm303d.doubleVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lsm303d.doubleVector___nonzero__(self) def __bool__(self): return _pyupm_lsm303d.doubleVector___bool__(self) def __len__(self): return _pyupm_lsm303d.doubleVector___len__(self) def __getslice__(self, i, j): return _pyupm_lsm303d.doubleVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lsm303d.doubleVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lsm303d.doubleVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lsm303d.doubleVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lsm303d.doubleVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lsm303d.doubleVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lsm303d.doubleVector_pop(self)
[docs] def append(self, x): return _pyupm_lsm303d.doubleVector_append(self, x)
[docs] def empty(self): return _pyupm_lsm303d.doubleVector_empty(self)
[docs] def size(self): return _pyupm_lsm303d.doubleVector_size(self)
[docs] def swap(self, v): return _pyupm_lsm303d.doubleVector_swap(self, v)
[docs] def begin(self): return _pyupm_lsm303d.doubleVector_begin(self)
[docs] def end(self): return _pyupm_lsm303d.doubleVector_end(self)
[docs] def rbegin(self): return _pyupm_lsm303d.doubleVector_rbegin(self)
[docs] def rend(self): return _pyupm_lsm303d.doubleVector_rend(self)
[docs] def clear(self): return _pyupm_lsm303d.doubleVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lsm303d.doubleVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lsm303d.doubleVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lsm303d.doubleVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lsm303d.new_doubleVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lsm303d.doubleVector_push_back(self, x)
[docs] def front(self): return _pyupm_lsm303d.doubleVector_front(self)
[docs] def back(self): return _pyupm_lsm303d.doubleVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lsm303d.doubleVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lsm303d.doubleVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lsm303d.doubleVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lsm303d.doubleVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lsm303d.doubleVector_capacity(self)
__swig_destroy__ = _pyupm_lsm303d.delete_doubleVector __del__ = lambda self: None
doubleVector_swigregister = _pyupm_lsm303d.doubleVector_swigregister doubleVector_swigregister(doubleVector)
[docs]class byteVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, byteVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, byteVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_lsm303d.byteVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lsm303d.byteVector___nonzero__(self) def __bool__(self): return _pyupm_lsm303d.byteVector___bool__(self) def __len__(self): return _pyupm_lsm303d.byteVector___len__(self) def __getslice__(self, i, j): return _pyupm_lsm303d.byteVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lsm303d.byteVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lsm303d.byteVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lsm303d.byteVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lsm303d.byteVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lsm303d.byteVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lsm303d.byteVector_pop(self)
[docs] def append(self, x): return _pyupm_lsm303d.byteVector_append(self, x)
[docs] def empty(self): return _pyupm_lsm303d.byteVector_empty(self)
[docs] def size(self): return _pyupm_lsm303d.byteVector_size(self)
[docs] def swap(self, v): return _pyupm_lsm303d.byteVector_swap(self, v)
[docs] def begin(self): return _pyupm_lsm303d.byteVector_begin(self)
[docs] def end(self): return _pyupm_lsm303d.byteVector_end(self)
[docs] def rbegin(self): return _pyupm_lsm303d.byteVector_rbegin(self)
[docs] def rend(self): return _pyupm_lsm303d.byteVector_rend(self)
[docs] def clear(self): return _pyupm_lsm303d.byteVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lsm303d.byteVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lsm303d.byteVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lsm303d.byteVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lsm303d.new_byteVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lsm303d.byteVector_push_back(self, x)
[docs] def front(self): return _pyupm_lsm303d.byteVector_front(self)
[docs] def back(self): return _pyupm_lsm303d.byteVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lsm303d.byteVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lsm303d.byteVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lsm303d.byteVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lsm303d.byteVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lsm303d.byteVector_capacity(self)
__swig_destroy__ = _pyupm_lsm303d.delete_byteVector __del__ = lambda self: None
byteVector_swigregister = _pyupm_lsm303d.byteVector_swigregister byteVector_swigregister(byteVector) _pyupm_lsm303d.LSM303D_DEFAULT_I2C_BUS_swigconstant(_pyupm_lsm303d) LSM303D_DEFAULT_I2C_BUS = _pyupm_lsm303d.LSM303D_DEFAULT_I2C_BUS _pyupm_lsm303d.LSM303D_DEFAULT_I2C_ADDR_swigconstant(_pyupm_lsm303d) LSM303D_DEFAULT_I2C_ADDR = _pyupm_lsm303d.LSM303D_DEFAULT_I2C_ADDR _pyupm_lsm303d.LSM303D_CHIPID_swigconstant(_pyupm_lsm303d) LSM303D_CHIPID = _pyupm_lsm303d.LSM303D_CHIPID _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_L_swigconstant(_pyupm_lsm303d) LSM303D_REG_TEMP_OUT_L = _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_L _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_H_swigconstant(_pyupm_lsm303d) LSM303D_REG_TEMP_OUT_H = _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_H _pyupm_lsm303d.LSM303D_REG_STATUS_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_STATUS_M = _pyupm_lsm303d.LSM303D_REG_STATUS_M _pyupm_lsm303d.LSM303D_REG_OUT_X_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_X_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_X_L_M _pyupm_lsm303d.LSM303D_REG_OUT_X_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_X_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_X_H_M _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Y_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_M _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Y_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_M _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Z_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_M _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Z_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_M _pyupm_lsm303d.LSM303D_REG_WHO_AM_I_swigconstant(_pyupm_lsm303d) LSM303D_REG_WHO_AM_I = _pyupm_lsm303d.LSM303D_REG_WHO_AM_I _pyupm_lsm303d.LSM303D_REG_INT_CTRL_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_INT_CTRL_M = _pyupm_lsm303d.LSM303D_REG_INT_CTRL_M _pyupm_lsm303d.LSM303D_REG_INT_SRC_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_INT_SRC_M = _pyupm_lsm303d.LSM303D_REG_INT_SRC_M _pyupm_lsm303d.LSM303D_REG_INT_THS_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_INT_THS_L_M = _pyupm_lsm303d.LSM303D_REG_INT_THS_L_M _pyupm_lsm303d.LSM303D_REG_INT_THS_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_INT_THS_H_M = _pyupm_lsm303d.LSM303D_REG_INT_THS_H_M _pyupm_lsm303d.LSM303D_REG_OFFSET_X_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_X_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_X_L_M _pyupm_lsm303d.LSM303D_REG_OFFSET_X_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_X_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_X_H_M _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_Y_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_L_M _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_Y_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_H_M _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_L_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_Z_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_L_M _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_H_M_swigconstant(_pyupm_lsm303d) LSM303D_REG_OFFSET_Z_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_H_M _pyupm_lsm303d.LSM303D_REG_REFERENCE_X_swigconstant(_pyupm_lsm303d) LSM303D_REG_REFERENCE_X = _pyupm_lsm303d.LSM303D_REG_REFERENCE_X _pyupm_lsm303d.LSM303D_REG_REFERENCE_Y_swigconstant(_pyupm_lsm303d) LSM303D_REG_REFERENCE_Y = _pyupm_lsm303d.LSM303D_REG_REFERENCE_Y _pyupm_lsm303d.LSM303D_REG_REFERENCE_Z_swigconstant(_pyupm_lsm303d) LSM303D_REG_REFERENCE_Z = _pyupm_lsm303d.LSM303D_REG_REFERENCE_Z _pyupm_lsm303d.LSM303D_REG_CTRL0_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL0 = _pyupm_lsm303d.LSM303D_REG_CTRL0 _pyupm_lsm303d.LSM303D_REG_CTRL1_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL1 = _pyupm_lsm303d.LSM303D_REG_CTRL1 _pyupm_lsm303d.LSM303D_REG_CTRL2_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL2 = _pyupm_lsm303d.LSM303D_REG_CTRL2 _pyupm_lsm303d.LSM303D_REG_CTRL3_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL3 = _pyupm_lsm303d.LSM303D_REG_CTRL3 _pyupm_lsm303d.LSM303D_REG_CTRL4_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL4 = _pyupm_lsm303d.LSM303D_REG_CTRL4 _pyupm_lsm303d.LSM303D_REG_CTRL5_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL5 = _pyupm_lsm303d.LSM303D_REG_CTRL5 _pyupm_lsm303d.LSM303D_REG_CTRL6_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL6 = _pyupm_lsm303d.LSM303D_REG_CTRL6 _pyupm_lsm303d.LSM303D_REG_CTRL7_swigconstant(_pyupm_lsm303d) LSM303D_REG_CTRL7 = _pyupm_lsm303d.LSM303D_REG_CTRL7 _pyupm_lsm303d.LSM303D_REG_STATUS_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_STATUS_A = _pyupm_lsm303d.LSM303D_REG_STATUS_A _pyupm_lsm303d.LSM303D_REG_OUT_X_L_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_X_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_X_L_A _pyupm_lsm303d.LSM303D_REG_OUT_X_H_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_X_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_X_H_A _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Y_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_A _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Y_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_A _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Z_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_A _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_A_swigconstant(_pyupm_lsm303d) LSM303D_REG_OUT_Z_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_A _pyupm_lsm303d.LSM303D_REG_FIFO_CTRL_swigconstant(_pyupm_lsm303d) LSM303D_REG_FIFO_CTRL = _pyupm_lsm303d.LSM303D_REG_FIFO_CTRL _pyupm_lsm303d.LSM303D_REG_FIFO_SRC_swigconstant(_pyupm_lsm303d) LSM303D_REG_FIFO_SRC = _pyupm_lsm303d.LSM303D_REG_FIFO_SRC _pyupm_lsm303d.LSM303D_REG_IG_CFG1_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_CFG1 = _pyupm_lsm303d.LSM303D_REG_IG_CFG1 _pyupm_lsm303d.LSM303D_REG_IG_SRC1_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_SRC1 = _pyupm_lsm303d.LSM303D_REG_IG_SRC1 _pyupm_lsm303d.LSM303D_REG_IG_THS1_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_THS1 = _pyupm_lsm303d.LSM303D_REG_IG_THS1 _pyupm_lsm303d.LSM303D_REG_IG_DUR1_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_DUR1 = _pyupm_lsm303d.LSM303D_REG_IG_DUR1 _pyupm_lsm303d.LSM303D_REG_IG_CFG2_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_CFG2 = _pyupm_lsm303d.LSM303D_REG_IG_CFG2 _pyupm_lsm303d.LSM303D_REG_IG_SRC2_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_SRC2 = _pyupm_lsm303d.LSM303D_REG_IG_SRC2 _pyupm_lsm303d.LSM303D_REG_IG_THS2_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_THS2 = _pyupm_lsm303d.LSM303D_REG_IG_THS2 _pyupm_lsm303d.LSM303D_REG_IG_DUR2_swigconstant(_pyupm_lsm303d) LSM303D_REG_IG_DUR2 = _pyupm_lsm303d.LSM303D_REG_IG_DUR2 _pyupm_lsm303d.LSM303D_REG_CLICK_CFG_swigconstant(_pyupm_lsm303d) LSM303D_REG_CLICK_CFG = _pyupm_lsm303d.LSM303D_REG_CLICK_CFG _pyupm_lsm303d.LSM303D_REG_CLICK_SRC_swigconstant(_pyupm_lsm303d) LSM303D_REG_CLICK_SRC = _pyupm_lsm303d.LSM303D_REG_CLICK_SRC _pyupm_lsm303d.LSM303D_REG_CLICK_THS_swigconstant(_pyupm_lsm303d) LSM303D_REG_CLICK_THS = _pyupm_lsm303d.LSM303D_REG_CLICK_THS _pyupm_lsm303d.LSM303D_REG_TIME_LIMIT_swigconstant(_pyupm_lsm303d) LSM303D_REG_TIME_LIMIT = _pyupm_lsm303d.LSM303D_REG_TIME_LIMIT _pyupm_lsm303d.LSM303D_REG_TIME_LATENCY_swigconstant(_pyupm_lsm303d) LSM303D_REG_TIME_LATENCY = _pyupm_lsm303d.LSM303D_REG_TIME_LATENCY _pyupm_lsm303d.LSM303D_REG_TIME_WINDOW_swigconstant(_pyupm_lsm303d) LSM303D_REG_TIME_WINDOW = _pyupm_lsm303d.LSM303D_REG_TIME_WINDOW _pyupm_lsm303d.LSM303D_REG_ACT_THS_swigconstant(_pyupm_lsm303d) LSM303D_REG_ACT_THS = _pyupm_lsm303d.LSM303D_REG_ACT_THS _pyupm_lsm303d.LSM303D_REG_ACT_DUR_swigconstant(_pyupm_lsm303d) LSM303D_REG_ACT_DUR = _pyupm_lsm303d.LSM303D_REG_ACT_DUR _pyupm_lsm303d.LSM303D_CTRL1_AXEN_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AXEN = _pyupm_lsm303d.LSM303D_CTRL1_AXEN _pyupm_lsm303d.LSM303D_CTRL1_AYEN_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AYEN = _pyupm_lsm303d.LSM303D_CTRL1_AYEN _pyupm_lsm303d.LSM303D_CTRL1_AZEN_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AZEN = _pyupm_lsm303d.LSM303D_CTRL1_AZEN _pyupm_lsm303d.LSM303D_CTRL1_BDU_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_BDU = _pyupm_lsm303d.LSM303D_CTRL1_BDU _pyupm_lsm303d.LSM303D_CTRL1_AODR0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AODR0 = _pyupm_lsm303d.LSM303D_CTRL1_AODR0 _pyupm_lsm303d.LSM303D_CTRL1_AODR1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AODR1 = _pyupm_lsm303d.LSM303D_CTRL1_AODR1 _pyupm_lsm303d.LSM303D_CTRL1_AODR2_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AODR2 = _pyupm_lsm303d.LSM303D_CTRL1_AODR2 _pyupm_lsm303d.LSM303D_CTRL1_AODR3_swigconstant(_pyupm_lsm303d) LSM303D_CTRL1_AODR3 = _pyupm_lsm303d.LSM303D_CTRL1_AODR3 _pyupm_lsm303d._LSM303D_CTRL1_AODR_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL1_AODR_MASK = _pyupm_lsm303d._LSM303D_CTRL1_AODR_MASK _pyupm_lsm303d._LSM303D_CTRL1_AODR_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL1_AODR_SHIFT = _pyupm_lsm303d._LSM303D_CTRL1_AODR_SHIFT _pyupm_lsm303d.LSM303D_AODR_POWER_DOWN_swigconstant(_pyupm_lsm303d) LSM303D_AODR_POWER_DOWN = _pyupm_lsm303d.LSM303D_AODR_POWER_DOWN _pyupm_lsm303d.LSM303D_AODR_3_125HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_3_125HZ = _pyupm_lsm303d.LSM303D_AODR_3_125HZ _pyupm_lsm303d.LSM303D_AODR_6_25HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_6_25HZ = _pyupm_lsm303d.LSM303D_AODR_6_25HZ _pyupm_lsm303d.LSM303D_AODR_12_5HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_12_5HZ = _pyupm_lsm303d.LSM303D_AODR_12_5HZ _pyupm_lsm303d.LSM303D_AODR_25HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_25HZ = _pyupm_lsm303d.LSM303D_AODR_25HZ _pyupm_lsm303d.LSM303D_AODR_50HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_50HZ = _pyupm_lsm303d.LSM303D_AODR_50HZ _pyupm_lsm303d.LSM303D_AODR_100HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_100HZ = _pyupm_lsm303d.LSM303D_AODR_100HZ _pyupm_lsm303d.LSM303D_AODR_200HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_200HZ = _pyupm_lsm303d.LSM303D_AODR_200HZ _pyupm_lsm303d.LSM303D_AODR_400HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_400HZ = _pyupm_lsm303d.LSM303D_AODR_400HZ _pyupm_lsm303d.LSM303D_AODR_800HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_800HZ = _pyupm_lsm303d.LSM303D_AODR_800HZ _pyupm_lsm303d.LSM303D_AODR_1600HZ_swigconstant(_pyupm_lsm303d) LSM303D_AODR_1600HZ = _pyupm_lsm303d.LSM303D_AODR_1600HZ _pyupm_lsm303d.LSM303D_CTRL2_SIM_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_SIM = _pyupm_lsm303d.LSM303D_CTRL2_SIM _pyupm_lsm303d.LSM303D_CTRL2_AST_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_AST = _pyupm_lsm303d.LSM303D_CTRL2_AST _pyupm_lsm303d.LSM303D_CTRL2_AFS0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_AFS0 = _pyupm_lsm303d.LSM303D_CTRL2_AFS0 _pyupm_lsm303d.LSM303D_CTRL2_AFS1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_AFS1 = _pyupm_lsm303d.LSM303D_CTRL2_AFS1 _pyupm_lsm303d.LSM303D_CTRL2_AFS2_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_AFS2 = _pyupm_lsm303d.LSM303D_CTRL2_AFS2 _pyupm_lsm303d._LSM303D_CTRL2_AFS_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL2_AFS_MASK = _pyupm_lsm303d._LSM303D_CTRL2_AFS_MASK _pyupm_lsm303d._LSM303D_CTRL2_AFS_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL2_AFS_SHIFT = _pyupm_lsm303d._LSM303D_CTRL2_AFS_SHIFT _pyupm_lsm303d.LSM303D_CTRL2_ABW0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_ABW0 = _pyupm_lsm303d.LSM303D_CTRL2_ABW0 _pyupm_lsm303d.LSM303D_CTRL2_ABW1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL2_ABW1 = _pyupm_lsm303d.LSM303D_CTRL2_ABW1 _pyupm_lsm303d._LSM303D_CTRL2_ABW_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL2_ABW_MASK = _pyupm_lsm303d._LSM303D_CTRL2_ABW_MASK _pyupm_lsm303d._LSM303D_CTRL2_ABW_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL2_ABW_SHIFT = _pyupm_lsm303d._LSM303D_CTRL2_ABW_SHIFT _pyupm_lsm303d.LSM303D_AFS_2G_swigconstant(_pyupm_lsm303d) LSM303D_AFS_2G = _pyupm_lsm303d.LSM303D_AFS_2G _pyupm_lsm303d.LSM303D_AFS_4G_swigconstant(_pyupm_lsm303d) LSM303D_AFS_4G = _pyupm_lsm303d.LSM303D_AFS_4G _pyupm_lsm303d.LSM303D_AFS_6G_swigconstant(_pyupm_lsm303d) LSM303D_AFS_6G = _pyupm_lsm303d.LSM303D_AFS_6G _pyupm_lsm303d.LSM303D_AFS_8G_swigconstant(_pyupm_lsm303d) LSM303D_AFS_8G = _pyupm_lsm303d.LSM303D_AFS_8G _pyupm_lsm303d.LSM303D_AFS_16G_swigconstant(_pyupm_lsm303d) LSM303D_AFS_16G = _pyupm_lsm303d.LSM303D_AFS_16G _pyupm_lsm303d.LSM303D_CTRL5_LIR1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_LIR1 = _pyupm_lsm303d.LSM303D_CTRL5_LIR1 _pyupm_lsm303d.LSM303D_CTRL5_LIR2_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_LIR2 = _pyupm_lsm303d.LSM303D_CTRL5_LIR2 _pyupm_lsm303d.LSM303D_CTRL5_MODR0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_MODR0 = _pyupm_lsm303d.LSM303D_CTRL5_MODR0 _pyupm_lsm303d.LSM303D_CTRL5_MODR1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_MODR1 = _pyupm_lsm303d.LSM303D_CTRL5_MODR1 _pyupm_lsm303d.LSM303D_CTRL5_MODR2_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_MODR2 = _pyupm_lsm303d.LSM303D_CTRL5_MODR2 _pyupm_lsm303d._LSM303D_CTRL5_MODR_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL5_MODR_MASK = _pyupm_lsm303d._LSM303D_CTRL5_MODR_MASK _pyupm_lsm303d._LSM303D_CTRL5_MODR_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL5_MODR_SHIFT = _pyupm_lsm303d._LSM303D_CTRL5_MODR_SHIFT _pyupm_lsm303d.LSM303D_CTRL5_M_RES0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_M_RES0 = _pyupm_lsm303d.LSM303D_CTRL5_M_RES0 _pyupm_lsm303d.LSM303D_CTRL5_M_RES1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_M_RES1 = _pyupm_lsm303d.LSM303D_CTRL5_M_RES1 _pyupm_lsm303d._LSM303D_CTRL5_MRES_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL5_MRES_MASK = _pyupm_lsm303d._LSM303D_CTRL5_MRES_MASK _pyupm_lsm303d._LSM303D_CTRL5_MRES_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL5_MRES_SHIFT = _pyupm_lsm303d._LSM303D_CTRL5_MRES_SHIFT _pyupm_lsm303d.LSM303D_CTRL5_TEMP_EN_swigconstant(_pyupm_lsm303d) LSM303D_CTRL5_TEMP_EN = _pyupm_lsm303d.LSM303D_CTRL5_TEMP_EN _pyupm_lsm303d.LSM303D_MODR_3_125HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_3_125HZ = _pyupm_lsm303d.LSM303D_MODR_3_125HZ _pyupm_lsm303d.LSM303D_MODR_6_25HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_6_25HZ = _pyupm_lsm303d.LSM303D_MODR_6_25HZ _pyupm_lsm303d.LSM303D_MODR_12_5HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_12_5HZ = _pyupm_lsm303d.LSM303D_MODR_12_5HZ _pyupm_lsm303d.LSM303D_MODR_25HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_25HZ = _pyupm_lsm303d.LSM303D_MODR_25HZ _pyupm_lsm303d.LSM303D_MODR_50HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_50HZ = _pyupm_lsm303d.LSM303D_MODR_50HZ _pyupm_lsm303d.LSM303D_MODR_100HZ_swigconstant(_pyupm_lsm303d) LSM303D_MODR_100HZ = _pyupm_lsm303d.LSM303D_MODR_100HZ _pyupm_lsm303d.LSM303D_M_RES_LOW_swigconstant(_pyupm_lsm303d) LSM303D_M_RES_LOW = _pyupm_lsm303d.LSM303D_M_RES_LOW _pyupm_lsm303d.LSM303D_M_RES_HIGH_swigconstant(_pyupm_lsm303d) LSM303D_M_RES_HIGH = _pyupm_lsm303d.LSM303D_M_RES_HIGH _pyupm_lsm303d.LSM303D_CTRL6_MFS0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL6_MFS0 = _pyupm_lsm303d.LSM303D_CTRL6_MFS0 _pyupm_lsm303d.LSM303D_CTRL6_MFS1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL6_MFS1 = _pyupm_lsm303d.LSM303D_CTRL6_MFS1 _pyupm_lsm303d._LSM303D_CTRL6_MFS_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL6_MFS_MASK = _pyupm_lsm303d._LSM303D_CTRL6_MFS_MASK _pyupm_lsm303d._LSM303D_CTRL6_MFS_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL6_MFS_SHIFT = _pyupm_lsm303d._LSM303D_CTRL6_MFS_SHIFT _pyupm_lsm303d.LSM303D_MFS_2_swigconstant(_pyupm_lsm303d) LSM303D_MFS_2 = _pyupm_lsm303d.LSM303D_MFS_2 _pyupm_lsm303d.LSM303D_MFS_4_swigconstant(_pyupm_lsm303d) LSM303D_MFS_4 = _pyupm_lsm303d.LSM303D_MFS_4 _pyupm_lsm303d.LSM303D_MFS_8_swigconstant(_pyupm_lsm303d) LSM303D_MFS_8 = _pyupm_lsm303d.LSM303D_MFS_8 _pyupm_lsm303d.LSM303D_MFS_12_swigconstant(_pyupm_lsm303d) LSM303D_MFS_12 = _pyupm_lsm303d.LSM303D_MFS_12 _pyupm_lsm303d.LSM303D_CTRL7_MD0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_MD0 = _pyupm_lsm303d.LSM303D_CTRL7_MD0 _pyupm_lsm303d.LSM303D_CTRL7_MD1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_MD1 = _pyupm_lsm303d.LSM303D_CTRL7_MD1 _pyupm_lsm303d._LSM303D_CTRL7_MD_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL7_MD_MASK = _pyupm_lsm303d._LSM303D_CTRL7_MD_MASK _pyupm_lsm303d._LSM303D_CTRL7_MD_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL7_MD_SHIFT = _pyupm_lsm303d._LSM303D_CTRL7_MD_SHIFT _pyupm_lsm303d.LSM303D_CTRL7_MLP_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_MLP = _pyupm_lsm303d.LSM303D_CTRL7_MLP _pyupm_lsm303d.LSM303D_CTRL7_T_ONLY_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_T_ONLY = _pyupm_lsm303d.LSM303D_CTRL7_T_ONLY _pyupm_lsm303d.LSM303D_CTRL7_AFDS_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_AFDS = _pyupm_lsm303d.LSM303D_CTRL7_AFDS _pyupm_lsm303d.LSM303D_CTRL7_AHPM0_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_AHPM0 = _pyupm_lsm303d.LSM303D_CTRL7_AHPM0 _pyupm_lsm303d.LSM303D_CTRL7_AHPM1_swigconstant(_pyupm_lsm303d) LSM303D_CTRL7_AHPM1 = _pyupm_lsm303d.LSM303D_CTRL7_AHPM1 _pyupm_lsm303d._LSM303D_CTRL7_AHPM_MASK_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL7_AHPM_MASK = _pyupm_lsm303d._LSM303D_CTRL7_AHPM_MASK _pyupm_lsm303d._LSM303D_CTRL7_AHPM_SHIFT_swigconstant(_pyupm_lsm303d) _LSM303D_CTRL7_AHPM_SHIFT = _pyupm_lsm303d._LSM303D_CTRL7_AHPM_SHIFT _pyupm_lsm303d.LSM303D_MD_CONTINUOUS_swigconstant(_pyupm_lsm303d) LSM303D_MD_CONTINUOUS = _pyupm_lsm303d.LSM303D_MD_CONTINUOUS _pyupm_lsm303d.LSM303D_MD_SINGLE_swigconstant(_pyupm_lsm303d) LSM303D_MD_SINGLE = _pyupm_lsm303d.LSM303D_MD_SINGLE _pyupm_lsm303d.LSM303D_MD_POWER_DOWN_swigconstant(_pyupm_lsm303d) LSM303D_MD_POWER_DOWN = _pyupm_lsm303d.LSM303D_MD_POWER_DOWN
[docs]class LSM303D(_object): """ API for the LSM303D 3-Axis Geomagnetic Sensor. ID: lsm303d Name: Ultra-compact high-performance eCompass module Category: compass Manufacturer: stmicro Connection: i2c gpio Link:http://www.st.com/en/mems-and-sensors/lsm303d.html The LSM303D is an ultra-low-power high-performance system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital magnetic sensor. The LSM303D has linear acceleration full scales of 2g/4g/8g/16g and a magnetic field dynamic range of 50 Gauss. Not all functionality of this chip has been implemented in this driver, however all the pieces are present to add any desired functionality. This driver supports only I2C operation. This device requires 3.3v operation. C++ includes: lsm303d.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, LSM303D, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, LSM303D, name) __repr__ = _swig_repr def __init__(self, bus=0, addr=0x1e): """ LSM303D(int bus=LSM303D_DEFAULT_I2C_BUS, int addr=LSM303D_DEFAULT_I2C_ADDR) LSM303D constructor This driver only supports I2C. Due to the fact that this chip is currently obsolete, we only support minimum functionality. Parameters: ----------- bus: I2C bus to use addr: The I2C address of the device The device context, or NULL if an error occurred Exceptions: ----------- std::runtime_error: on failure. """ this = _pyupm_lsm303d.new_LSM303D(bus, addr) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_lsm303d.delete_LSM303D __del__ = lambda self: None
[docs] def update(self): """ void update() Update the internal stored values from sensor data. This method must be called before querying the acceleration, magnetometer, or temperature. Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_update(self)
[docs] def getMagnetometer(self, *args): """ std::vector< float > getMagnetometer() Return magnetometer data in micro-Teslas (uT) in the form of a floating point vector. update() must have been called prior to calling this method. A floating point vector containing x, y, and z in that order """ return _pyupm_lsm303d.LSM303D_getMagnetometer(self, *args)
[docs] def getAccelerometer(self, *args): """ std::vector< float > getAccelerometer() Return acceleration data in gravities in the form of a floating point vector. update() must have been called prior to calling this method. A floating point vector containing x, y, and z in that order """ return _pyupm_lsm303d.LSM303D_getAccelerometer(self, *args)
[docs] def getTemperature(self): """ float getTemperature() Return temperature data in degrees Celsius. NOTE: This is not the ambient room temperature. update() must have been called prior to calling this method. Temperature in degrees Celsius """ return _pyupm_lsm303d.LSM303D_getTemperature(self)
[docs] def init(self, res): """ void init(LSM303D_M_RES_T res) Initialize the device and start operation. This function is called from the constructor so it will not typically need to be called by a user unless the device is reset. It will initialize the accelerometer and magnetometer (if enabled) to certain default running modes. Parameters: ----------- res: One of the LSM303D_M_RES_T values. This value sets the resolution of the magnetometer. At init time, this value is set to LSM303D_M_RES_HIGH. Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_init(self, res)
[docs] def setAccelerometerFullScale(self, fs): """ void setAccelerometerFullScale(LSM303D_AFS_T fs) Set the full scale (sensitivity) value for the accelerometer. This device supports 2G, 4G, 6G, 8G, and 16G full scale modes. Parameters: ----------- fs: One of the LSM303D_AFS_T values Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_setAccelerometerFullScale(self, fs)
[docs] def setMagnetometerFullScale(self, fs): """ void setMagnetometerFullScale(LSM303D_MFS_T fs) Set the full scale (sensitivity) value for the magnetometer. This device supports 2, 4, 8, and 16 Gauss full scale modes. Parameters: ----------- fs: One of the LSM303D_MFS_T values Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_setMagnetometerFullScale(self, fs)
[docs] def setAccelerometerODR(self, odr): """ void setAccelerometerODR(LSM303D_AODR_T odr) Set the accelerometer output data rate (ODR) Parameters: ----------- odr: One of the LSM303D_AODR_T values. The default set at initialization time is LSM303D_AODR_100HZ. Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_setAccelerometerODR(self, odr)
[docs] def setMagnetometerODR(self, odr): """ void setMagnetometerODR(LSM303D_MODR_T odr) Set the magnetometer output data rate (ODR) Parameters: ----------- odr: One of the LSM303D_MODR_T values. The default set at initialization time is LSM303D_MODR_12_5HZ. Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lsm303d.LSM303D_setMagnetometerODR(self, odr)
LSM303D_swigregister = _pyupm_lsm303d.LSM303D_swigregister LSM303D_swigregister(LSM303D) # This file is compatible with both classic and new-style classes.