Source code for pyupm_lis2ds12

# 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_lis2ds12', [dirname(__file__)])
        except ImportError:
            import _pyupm_lis2ds12
            return _pyupm_lis2ds12
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_lis2ds12', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_lis2ds12 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lis2ds12
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_lis2ds12.getVersion()
getVersion = _pyupm_lis2ds12.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_lis2ds12.delete_SwigPyIterator __del__ = lambda self: None
[docs] def value(self): return _pyupm_lis2ds12.SwigPyIterator_value(self)
[docs] def incr(self, n=1): return _pyupm_lis2ds12.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1): return _pyupm_lis2ds12.SwigPyIterator_decr(self, n)
[docs] def distance(self, x): return _pyupm_lis2ds12.SwigPyIterator_distance(self, x)
[docs] def equal(self, x): return _pyupm_lis2ds12.SwigPyIterator_equal(self, x)
[docs] def copy(self): return _pyupm_lis2ds12.SwigPyIterator_copy(self)
[docs] def next(self): return _pyupm_lis2ds12.SwigPyIterator_next(self)
def __next__(self): return _pyupm_lis2ds12.SwigPyIterator___next__(self)
[docs] def previous(self): return _pyupm_lis2ds12.SwigPyIterator_previous(self)
[docs] def advance(self, n): return _pyupm_lis2ds12.SwigPyIterator_advance(self, n)
def __eq__(self, x): return _pyupm_lis2ds12.SwigPyIterator___eq__(self, x) def __ne__(self, x): return _pyupm_lis2ds12.SwigPyIterator___ne__(self, x) def __iadd__(self, n): return _pyupm_lis2ds12.SwigPyIterator___iadd__(self, n) def __isub__(self, n): return _pyupm_lis2ds12.SwigPyIterator___isub__(self, n) def __add__(self, n): return _pyupm_lis2ds12.SwigPyIterator___add__(self, n) def __sub__(self, *args): return _pyupm_lis2ds12.SwigPyIterator___sub__(self, *args) def __iter__(self): return self
SwigPyIterator_swigregister = _pyupm_lis2ds12.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_lis2ds12.intVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lis2ds12.intVector___nonzero__(self) def __bool__(self): return _pyupm_lis2ds12.intVector___bool__(self) def __len__(self): return _pyupm_lis2ds12.intVector___len__(self) def __getslice__(self, i, j): return _pyupm_lis2ds12.intVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lis2ds12.intVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lis2ds12.intVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lis2ds12.intVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lis2ds12.intVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lis2ds12.intVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lis2ds12.intVector_pop(self)
[docs] def append(self, x): return _pyupm_lis2ds12.intVector_append(self, x)
[docs] def empty(self): return _pyupm_lis2ds12.intVector_empty(self)
[docs] def size(self): return _pyupm_lis2ds12.intVector_size(self)
[docs] def swap(self, v): return _pyupm_lis2ds12.intVector_swap(self, v)
[docs] def begin(self): return _pyupm_lis2ds12.intVector_begin(self)
[docs] def end(self): return _pyupm_lis2ds12.intVector_end(self)
[docs] def rbegin(self): return _pyupm_lis2ds12.intVector_rbegin(self)
[docs] def rend(self): return _pyupm_lis2ds12.intVector_rend(self)
[docs] def clear(self): return _pyupm_lis2ds12.intVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lis2ds12.intVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lis2ds12.intVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lis2ds12.intVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lis2ds12.new_intVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lis2ds12.intVector_push_back(self, x)
[docs] def front(self): return _pyupm_lis2ds12.intVector_front(self)
[docs] def back(self): return _pyupm_lis2ds12.intVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lis2ds12.intVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lis2ds12.intVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lis2ds12.intVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lis2ds12.intVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lis2ds12.intVector_capacity(self)
__swig_destroy__ = _pyupm_lis2ds12.delete_intVector __del__ = lambda self: None
intVector_swigregister = _pyupm_lis2ds12.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_lis2ds12.int16Vector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lis2ds12.int16Vector___nonzero__(self) def __bool__(self): return _pyupm_lis2ds12.int16Vector___bool__(self) def __len__(self): return _pyupm_lis2ds12.int16Vector___len__(self) def __getslice__(self, i, j): return _pyupm_lis2ds12.int16Vector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lis2ds12.int16Vector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lis2ds12.int16Vector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lis2ds12.int16Vector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lis2ds12.int16Vector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lis2ds12.int16Vector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lis2ds12.int16Vector_pop(self)
[docs] def append(self, x): return _pyupm_lis2ds12.int16Vector_append(self, x)
[docs] def empty(self): return _pyupm_lis2ds12.int16Vector_empty(self)
[docs] def size(self): return _pyupm_lis2ds12.int16Vector_size(self)
[docs] def swap(self, v): return _pyupm_lis2ds12.int16Vector_swap(self, v)
[docs] def begin(self): return _pyupm_lis2ds12.int16Vector_begin(self)
[docs] def end(self): return _pyupm_lis2ds12.int16Vector_end(self)
[docs] def rbegin(self): return _pyupm_lis2ds12.int16Vector_rbegin(self)
[docs] def rend(self): return _pyupm_lis2ds12.int16Vector_rend(self)
[docs] def clear(self): return _pyupm_lis2ds12.int16Vector_clear(self)
[docs] def get_allocator(self): return _pyupm_lis2ds12.int16Vector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lis2ds12.int16Vector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lis2ds12.int16Vector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lis2ds12.new_int16Vector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lis2ds12.int16Vector_push_back(self, x)
[docs] def front(self): return _pyupm_lis2ds12.int16Vector_front(self)
[docs] def back(self): return _pyupm_lis2ds12.int16Vector_back(self)
[docs] def assign(self, n, x): return _pyupm_lis2ds12.int16Vector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lis2ds12.int16Vector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lis2ds12.int16Vector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lis2ds12.int16Vector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lis2ds12.int16Vector_capacity(self)
__swig_destroy__ = _pyupm_lis2ds12.delete_int16Vector __del__ = lambda self: None
int16Vector_swigregister = _pyupm_lis2ds12.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_lis2ds12.floatVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lis2ds12.floatVector___nonzero__(self) def __bool__(self): return _pyupm_lis2ds12.floatVector___bool__(self) def __len__(self): return _pyupm_lis2ds12.floatVector___len__(self) def __getslice__(self, i, j): return _pyupm_lis2ds12.floatVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lis2ds12.floatVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lis2ds12.floatVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lis2ds12.floatVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lis2ds12.floatVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lis2ds12.floatVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lis2ds12.floatVector_pop(self)
[docs] def append(self, x): return _pyupm_lis2ds12.floatVector_append(self, x)
[docs] def empty(self): return _pyupm_lis2ds12.floatVector_empty(self)
[docs] def size(self): return _pyupm_lis2ds12.floatVector_size(self)
[docs] def swap(self, v): return _pyupm_lis2ds12.floatVector_swap(self, v)
[docs] def begin(self): return _pyupm_lis2ds12.floatVector_begin(self)
[docs] def end(self): return _pyupm_lis2ds12.floatVector_end(self)
[docs] def rbegin(self): return _pyupm_lis2ds12.floatVector_rbegin(self)
[docs] def rend(self): return _pyupm_lis2ds12.floatVector_rend(self)
[docs] def clear(self): return _pyupm_lis2ds12.floatVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lis2ds12.floatVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lis2ds12.floatVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lis2ds12.floatVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lis2ds12.new_floatVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lis2ds12.floatVector_push_back(self, x)
[docs] def front(self): return _pyupm_lis2ds12.floatVector_front(self)
[docs] def back(self): return _pyupm_lis2ds12.floatVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lis2ds12.floatVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lis2ds12.floatVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lis2ds12.floatVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lis2ds12.floatVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lis2ds12.floatVector_capacity(self)
__swig_destroy__ = _pyupm_lis2ds12.delete_floatVector __del__ = lambda self: None
floatVector_swigregister = _pyupm_lis2ds12.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_lis2ds12.doubleVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lis2ds12.doubleVector___nonzero__(self) def __bool__(self): return _pyupm_lis2ds12.doubleVector___bool__(self) def __len__(self): return _pyupm_lis2ds12.doubleVector___len__(self) def __getslice__(self, i, j): return _pyupm_lis2ds12.doubleVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lis2ds12.doubleVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lis2ds12.doubleVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lis2ds12.doubleVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lis2ds12.doubleVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lis2ds12.doubleVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lis2ds12.doubleVector_pop(self)
[docs] def append(self, x): return _pyupm_lis2ds12.doubleVector_append(self, x)
[docs] def empty(self): return _pyupm_lis2ds12.doubleVector_empty(self)
[docs] def size(self): return _pyupm_lis2ds12.doubleVector_size(self)
[docs] def swap(self, v): return _pyupm_lis2ds12.doubleVector_swap(self, v)
[docs] def begin(self): return _pyupm_lis2ds12.doubleVector_begin(self)
[docs] def end(self): return _pyupm_lis2ds12.doubleVector_end(self)
[docs] def rbegin(self): return _pyupm_lis2ds12.doubleVector_rbegin(self)
[docs] def rend(self): return _pyupm_lis2ds12.doubleVector_rend(self)
[docs] def clear(self): return _pyupm_lis2ds12.doubleVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lis2ds12.doubleVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lis2ds12.doubleVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lis2ds12.doubleVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lis2ds12.new_doubleVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lis2ds12.doubleVector_push_back(self, x)
[docs] def front(self): return _pyupm_lis2ds12.doubleVector_front(self)
[docs] def back(self): return _pyupm_lis2ds12.doubleVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lis2ds12.doubleVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lis2ds12.doubleVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lis2ds12.doubleVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lis2ds12.doubleVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lis2ds12.doubleVector_capacity(self)
__swig_destroy__ = _pyupm_lis2ds12.delete_doubleVector __del__ = lambda self: None
doubleVector_swigregister = _pyupm_lis2ds12.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_lis2ds12.byteVector_iterator(self)
def __iter__(self): return self.iterator() def __nonzero__(self): return _pyupm_lis2ds12.byteVector___nonzero__(self) def __bool__(self): return _pyupm_lis2ds12.byteVector___bool__(self) def __len__(self): return _pyupm_lis2ds12.byteVector___len__(self) def __getslice__(self, i, j): return _pyupm_lis2ds12.byteVector___getslice__(self, i, j) def __setslice__(self, *args): return _pyupm_lis2ds12.byteVector___setslice__(self, *args) def __delslice__(self, i, j): return _pyupm_lis2ds12.byteVector___delslice__(self, i, j) def __delitem__(self, *args): return _pyupm_lis2ds12.byteVector___delitem__(self, *args) def __getitem__(self, *args): return _pyupm_lis2ds12.byteVector___getitem__(self, *args) def __setitem__(self, *args): return _pyupm_lis2ds12.byteVector___setitem__(self, *args)
[docs] def pop(self): return _pyupm_lis2ds12.byteVector_pop(self)
[docs] def append(self, x): return _pyupm_lis2ds12.byteVector_append(self, x)
[docs] def empty(self): return _pyupm_lis2ds12.byteVector_empty(self)
[docs] def size(self): return _pyupm_lis2ds12.byteVector_size(self)
[docs] def swap(self, v): return _pyupm_lis2ds12.byteVector_swap(self, v)
[docs] def begin(self): return _pyupm_lis2ds12.byteVector_begin(self)
[docs] def end(self): return _pyupm_lis2ds12.byteVector_end(self)
[docs] def rbegin(self): return _pyupm_lis2ds12.byteVector_rbegin(self)
[docs] def rend(self): return _pyupm_lis2ds12.byteVector_rend(self)
[docs] def clear(self): return _pyupm_lis2ds12.byteVector_clear(self)
[docs] def get_allocator(self): return _pyupm_lis2ds12.byteVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_lis2ds12.byteVector_pop_back(self)
[docs] def erase(self, *args): return _pyupm_lis2ds12.byteVector_erase(self, *args)
def __init__(self, *args): this = _pyupm_lis2ds12.new_byteVector(*args) try: self.this.append(this) except Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_lis2ds12.byteVector_push_back(self, x)
[docs] def front(self): return _pyupm_lis2ds12.byteVector_front(self)
[docs] def back(self): return _pyupm_lis2ds12.byteVector_back(self)
[docs] def assign(self, n, x): return _pyupm_lis2ds12.byteVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_lis2ds12.byteVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_lis2ds12.byteVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_lis2ds12.byteVector_reserve(self, n)
[docs] def capacity(self): return _pyupm_lis2ds12.byteVector_capacity(self)
__swig_destroy__ = _pyupm_lis2ds12.delete_byteVector __del__ = lambda self: None
byteVector_swigregister = _pyupm_lis2ds12.byteVector_swigregister byteVector_swigregister(byteVector) _pyupm_lis2ds12.LIS2DS12_DEFAULT_I2C_BUS_swigconstant(_pyupm_lis2ds12) LIS2DS12_DEFAULT_I2C_BUS = _pyupm_lis2ds12.LIS2DS12_DEFAULT_I2C_BUS _pyupm_lis2ds12.LIS2DS12_DEFAULT_SPI_BUS_swigconstant(_pyupm_lis2ds12) LIS2DS12_DEFAULT_SPI_BUS = _pyupm_lis2ds12.LIS2DS12_DEFAULT_SPI_BUS _pyupm_lis2ds12.LIS2DS12_DEFAULT_I2C_ADDR_swigconstant(_pyupm_lis2ds12) LIS2DS12_DEFAULT_I2C_ADDR = _pyupm_lis2ds12.LIS2DS12_DEFAULT_I2C_ADDR _pyupm_lis2ds12.LIS2DS12_CHIPID_swigconstant(_pyupm_lis2ds12) LIS2DS12_CHIPID = _pyupm_lis2ds12.LIS2DS12_CHIPID _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB1_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB1_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB1_REG _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB2_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB2_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB2_REG _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB3_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB3_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB3_REG _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB4_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB4_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB4_REG _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB5_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB5_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB5_REG _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB6_REG_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_SENSORHUB6_REG = _pyupm_lis2ds12.LIS2DS12_REG_SENSORHUB6_REG _pyupm_lis2ds12.LIS2DS12_REG_MODULE_8BIT_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_MODULE_8BIT = _pyupm_lis2ds12.LIS2DS12_REG_MODULE_8BIT _pyupm_lis2ds12.LIS2DS12_REG_WHO_AM_I_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_WHO_AM_I = _pyupm_lis2ds12.LIS2DS12_REG_WHO_AM_I _pyupm_lis2ds12.LIS2DS12_REG_CTRL1_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_CTRL1 = _pyupm_lis2ds12.LIS2DS12_REG_CTRL1 _pyupm_lis2ds12.LIS2DS12_REG_CTRL2_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_CTRL2 = _pyupm_lis2ds12.LIS2DS12_REG_CTRL2 _pyupm_lis2ds12.LIS2DS12_REG_CTRL3_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_CTRL3 = _pyupm_lis2ds12.LIS2DS12_REG_CTRL3 _pyupm_lis2ds12.LIS2DS12_REG_CTRL4_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_CTRL4 = _pyupm_lis2ds12.LIS2DS12_REG_CTRL4 _pyupm_lis2ds12.LIS2DS12_REG_CTRL5_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_CTRL5 = _pyupm_lis2ds12.LIS2DS12_REG_CTRL5 _pyupm_lis2ds12.LIS2DS12_REG_FIFO_CTRL_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FIFO_CTRL = _pyupm_lis2ds12.LIS2DS12_REG_FIFO_CTRL _pyupm_lis2ds12.LIS2DS12_REG_OUT_T_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_T = _pyupm_lis2ds12.LIS2DS12_REG_OUT_T _pyupm_lis2ds12.LIS2DS12_REG_STATUS_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_STATUS = _pyupm_lis2ds12.LIS2DS12_REG_STATUS _pyupm_lis2ds12.LIS2DS12_REG_OUT_X_L_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_X_L = _pyupm_lis2ds12.LIS2DS12_REG_OUT_X_L _pyupm_lis2ds12.LIS2DS12_REG_OUT_X_H_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_X_H = _pyupm_lis2ds12.LIS2DS12_REG_OUT_X_H _pyupm_lis2ds12.LIS2DS12_REG_OUT_Y_L_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_Y_L = _pyupm_lis2ds12.LIS2DS12_REG_OUT_Y_L _pyupm_lis2ds12.LIS2DS12_REG_OUT_Y_H_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_Y_H = _pyupm_lis2ds12.LIS2DS12_REG_OUT_Y_H _pyupm_lis2ds12.LIS2DS12_REG_OUT_Z_L_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_Z_L = _pyupm_lis2ds12.LIS2DS12_REG_OUT_Z_L _pyupm_lis2ds12.LIS2DS12_REG_OUT_Z_H_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_OUT_Z_H = _pyupm_lis2ds12.LIS2DS12_REG_OUT_Z_H _pyupm_lis2ds12.LIS2DS12_REG_FIFO_THS_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FIFO_THS = _pyupm_lis2ds12.LIS2DS12_REG_FIFO_THS _pyupm_lis2ds12.LIS2DS12_REG_FIFO_SRC_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FIFO_SRC = _pyupm_lis2ds12.LIS2DS12_REG_FIFO_SRC _pyupm_lis2ds12.LIS2DS12_REG_FIFO_SAMPLES_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FIFO_SAMPLES = _pyupm_lis2ds12.LIS2DS12_REG_FIFO_SAMPLES _pyupm_lis2ds12.LIS2DS12_REG_TAP_6D_THS_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_TAP_6D_THS = _pyupm_lis2ds12.LIS2DS12_REG_TAP_6D_THS _pyupm_lis2ds12.LIS2DS12_REG_INT_DUR_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_INT_DUR = _pyupm_lis2ds12.LIS2DS12_REG_INT_DUR _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_THS_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_WAKE_UP_THS = _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_THS _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_DUR_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_WAKE_UP_DUR = _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_DUR _pyupm_lis2ds12.LIS2DS12_REG_FREE_FALL_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FREE_FALL = _pyupm_lis2ds12.LIS2DS12_REG_FREE_FALL _pyupm_lis2ds12.LIS2DS12_REG_STATUS_DUP_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_STATUS_DUP = _pyupm_lis2ds12.LIS2DS12_REG_STATUS_DUP _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_SRC_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_WAKE_UP_SRC = _pyupm_lis2ds12.LIS2DS12_REG_WAKE_UP_SRC _pyupm_lis2ds12.LIS2DS12_REG_TAP_SRC_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_TAP_SRC = _pyupm_lis2ds12.LIS2DS12_REG_TAP_SRC _pyupm_lis2ds12.LIS2DS12_REG_6D_SRC_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_6D_SRC = _pyupm_lis2ds12.LIS2DS12_REG_6D_SRC _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_MINTHS_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_STEP_COUNTER_MINTHS = _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_MINTHS _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_L_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_STEP_COUNTER_L = _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_L _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_H_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_STEP_COUNTER_H = _pyupm_lis2ds12.LIS2DS12_REG_STEP_COUNTER_H _pyupm_lis2ds12.LIS2DS12_REG_FUNC_CK_GATE_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FUNC_CK_GATE = _pyupm_lis2ds12.LIS2DS12_REG_FUNC_CK_GATE _pyupm_lis2ds12.LIS2DS12_REG_FUNC_SRC_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FUNC_SRC = _pyupm_lis2ds12.LIS2DS12_REG_FUNC_SRC _pyupm_lis2ds12.LIS2DS12_REG_FUNC_CTRL_swigconstant(_pyupm_lis2ds12) LIS2DS12_REG_FUNC_CTRL = _pyupm_lis2ds12.LIS2DS12_REG_FUNC_CTRL _pyupm_lis2ds12.LIS2DS12_CTRL1_BDU_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_BDU = _pyupm_lis2ds12.LIS2DS12_CTRL1_BDU _pyupm_lis2ds12.LIS2DS12_CTRL1_HF_ODR_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_HF_ODR = _pyupm_lis2ds12.LIS2DS12_CTRL1_HF_ODR _pyupm_lis2ds12.LIS2DS12_CTRL1_FS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_FS0 = _pyupm_lis2ds12.LIS2DS12_CTRL1_FS0 _pyupm_lis2ds12.LIS2DS12_CTRL1_FS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_FS1 = _pyupm_lis2ds12.LIS2DS12_CTRL1_FS1 _pyupm_lis2ds12._LIS2DS12_CTRL1_FS_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL1_FS_MASK = _pyupm_lis2ds12._LIS2DS12_CTRL1_FS_MASK _pyupm_lis2ds12._LIS2DS12_CTRL1_FS_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL1_FS_SHIFT = _pyupm_lis2ds12._LIS2DS12_CTRL1_FS_SHIFT _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR0_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_ODR0 = _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR0 _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR1_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_ODR1 = _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR1 _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR2_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_ODR2 = _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR2 _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR3_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL1_ODR3 = _pyupm_lis2ds12.LIS2DS12_CTRL1_ODR3 _pyupm_lis2ds12._LIS2DS12_CTRL1_ODR_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL1_ODR_MASK = _pyupm_lis2ds12._LIS2DS12_CTRL1_ODR_MASK _pyupm_lis2ds12._LIS2DS12_CTRL1_ODR_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL1_ODR_SHIFT = _pyupm_lis2ds12._LIS2DS12_CTRL1_ODR_SHIFT _pyupm_lis2ds12.LIS2DS12_FS_2G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_2G = _pyupm_lis2ds12.LIS2DS12_FS_2G _pyupm_lis2ds12.LIS2DS12_FS_16G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_16G = _pyupm_lis2ds12.LIS2DS12_FS_16G _pyupm_lis2ds12.LIS2DS12_FS_4G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_4G = _pyupm_lis2ds12.LIS2DS12_FS_4G _pyupm_lis2ds12.LIS2DS12_FS_8G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_8G = _pyupm_lis2ds12.LIS2DS12_FS_8G _pyupm_lis2ds12.LIS2DS12_ODR_POWER_DOWN_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_POWER_DOWN = _pyupm_lis2ds12.LIS2DS12_ODR_POWER_DOWN _pyupm_lis2ds12.LIS2DS12_ODR_12_5HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_12_5HZ = _pyupm_lis2ds12.LIS2DS12_ODR_12_5HZ _pyupm_lis2ds12.LIS2DS12_ODR_25HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_25HZ = _pyupm_lis2ds12.LIS2DS12_ODR_25HZ _pyupm_lis2ds12.LIS2DS12_ODR_50HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_50HZ = _pyupm_lis2ds12.LIS2DS12_ODR_50HZ _pyupm_lis2ds12.LIS2DS12_ODR_100HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_100HZ = _pyupm_lis2ds12.LIS2DS12_ODR_100HZ _pyupm_lis2ds12.LIS2DS12_ODR_200HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_200HZ = _pyupm_lis2ds12.LIS2DS12_ODR_200HZ _pyupm_lis2ds12.LIS2DS12_ODR_400HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_400HZ = _pyupm_lis2ds12.LIS2DS12_ODR_400HZ _pyupm_lis2ds12.LIS2DS12_ODR_800HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_800HZ = _pyupm_lis2ds12.LIS2DS12_ODR_800HZ _pyupm_lis2ds12.LIS2DS12_ODR_1600HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_1600HZ = _pyupm_lis2ds12.LIS2DS12_ODR_1600HZ _pyupm_lis2ds12.LIS2DS12_ODR_3200HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_3200HZ = _pyupm_lis2ds12.LIS2DS12_ODR_3200HZ _pyupm_lis2ds12.LIS2DS12_ODR_6400HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_6400HZ = _pyupm_lis2ds12.LIS2DS12_ODR_6400HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_1HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_1HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_1HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_12_5HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_12_5HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_12_5HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_25HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_25HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_25HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_50HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_50HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_50HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_100HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_100HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_100HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_200HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_200HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_200HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_400HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_400HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_400HZ _pyupm_lis2ds12.LIS2DS12_ODR_LP_800HZ_swigconstant(_pyupm_lis2ds12) LIS2DS12_ODR_LP_800HZ = _pyupm_lis2ds12.LIS2DS12_ODR_LP_800HZ _pyupm_lis2ds12.LIS2DS12_CTRL2_SIM_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_SIM = _pyupm_lis2ds12.LIS2DS12_CTRL2_SIM _pyupm_lis2ds12.LIS2DS12_CTRL2_I2C_DISABLE_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_I2C_DISABLE = _pyupm_lis2ds12.LIS2DS12_CTRL2_I2C_DISABLE _pyupm_lis2ds12.LIS2DS12_CTRL2_IF_ADD_INC_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_IF_ADD_INC = _pyupm_lis2ds12.LIS2DS12_CTRL2_IF_ADD_INC _pyupm_lis2ds12.LIS2DS12_CTRL2_FDS_SLOPE_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_FDS_SLOPE = _pyupm_lis2ds12.LIS2DS12_CTRL2_FDS_SLOPE _pyupm_lis2ds12.LIS2DS12_CTRL2_FUNC_CFG_ENABLE_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_FUNC_CFG_ENABLE = _pyupm_lis2ds12.LIS2DS12_CTRL2_FUNC_CFG_ENABLE _pyupm_lis2ds12.LIS2DS12_CTRL2_SOFT_RESET_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_SOFT_RESET = _pyupm_lis2ds12.LIS2DS12_CTRL2_SOFT_RESET _pyupm_lis2ds12.LIS2DS12_CTRL2_BOOT_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL2_BOOT = _pyupm_lis2ds12.LIS2DS12_CTRL2_BOOT _pyupm_lis2ds12.LIS2DS12_CTRL3_PP_OD_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_PP_OD = _pyupm_lis2ds12.LIS2DS12_CTRL3_PP_OD _pyupm_lis2ds12.LIS2DS12_CTRL3_H_LACTIVE_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_H_LACTIVE = _pyupm_lis2ds12.LIS2DS12_CTRL3_H_LACTIVE _pyupm_lis2ds12.LIS2DS12_CTRL3_LIR_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_LIR = _pyupm_lis2ds12.LIS2DS12_CTRL3_LIR _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_Z_EN_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_TAP_Z_EN = _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_Z_EN _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_Y_EN_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_TAP_Y_EN = _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_Y_EN _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_X_EN_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_TAP_X_EN = _pyupm_lis2ds12.LIS2DS12_CTRL3_TAP_X_EN _pyupm_lis2ds12.LIS2DS12_CTRL3_ST0_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_ST0 = _pyupm_lis2ds12.LIS2DS12_CTRL3_ST0 _pyupm_lis2ds12.LIS2DS12_CTRL3_ST1_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL3_ST1 = _pyupm_lis2ds12.LIS2DS12_CTRL3_ST1 _pyupm_lis2ds12._LIS2DS12_CTRL3_ST_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL3_ST_MASK = _pyupm_lis2ds12._LIS2DS12_CTRL3_ST_MASK _pyupm_lis2ds12._LIS2DS12_CTRL3_ST_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_CTRL3_ST_SHIFT = _pyupm_lis2ds12._LIS2DS12_CTRL3_ST_SHIFT _pyupm_lis2ds12.LIS2DS12_ST_NORMAL_swigconstant(_pyupm_lis2ds12) LIS2DS12_ST_NORMAL = _pyupm_lis2ds12.LIS2DS12_ST_NORMAL _pyupm_lis2ds12.LIS2DS12_ST_POS_SIGN_swigconstant(_pyupm_lis2ds12) LIS2DS12_ST_POS_SIGN = _pyupm_lis2ds12.LIS2DS12_ST_POS_SIGN _pyupm_lis2ds12.LIS2DS12_ST_NEG_SIGN_swigconstant(_pyupm_lis2ds12) LIS2DS12_ST_NEG_SIGN = _pyupm_lis2ds12.LIS2DS12_ST_NEG_SIGN _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_DRDY_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_DRDY = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_DRDY _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_FTH_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_FTH = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_FTH _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_6D_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_6D = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_6D _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_TAP = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_TAP _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_FF_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_FF = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_FF _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_WU_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_WU = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_WU _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_S_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_S_TAP = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_S_TAP _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_MASTER_DRDY_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL4_INT1_MASTER_DRDY = _pyupm_lis2ds12.LIS2DS12_CTRL4_INT1_MASTER_DRDY _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_DRDY_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_DRDY = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_DRDY _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_FTH_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_FTH = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_FTH _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_STEP_DET_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_STEP_DET = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_STEP_DET _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_SIG_MOT_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_SIG_MOT = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_SIG_MOT _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_TILT_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_TILT = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_TILT _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_ON_INT1_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_ON_INT1 = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_ON_INT1 _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_BOOT_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_BOOT = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_BOOT _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_DRDY_PULSED_swigconstant(_pyupm_lis2ds12) LIS2DS12_CTRL5_INT2_DRDY_PULSED = _pyupm_lis2ds12.LIS2DS12_CTRL5_INT2_DRDY_PULSED _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_IF_CS_PU_DIS_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_IF_CS_PU_DIS = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_IF_CS_PU_DIS _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_MODULE_TO_FIFO_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_MODULE_TO_FIFO = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_MODULE_TO_FIFO _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_INT2_STEP_COUNT_OV_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_INT2_STEP_COUNT_OV = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_INT2_STEP_COUNT_OV _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE0_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_FMODE0 = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE0 _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE1_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_FMODE1 = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE1 _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE2_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_CTRL_FMODE2 = _pyupm_lis2ds12.LIS2DS12_FIFO_CTRL_FMODE2 _pyupm_lis2ds12._LIS2DS12_FIFO_CTRL_FMODE_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FIFO_CTRL_FMODE_MASK = _pyupm_lis2ds12._LIS2DS12_FIFO_CTRL_FMODE_MASK _pyupm_lis2ds12._LIS2DS12_FIFO_CTRL_FMODE_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FIFO_CTRL_FMODE_SHIFT = _pyupm_lis2ds12._LIS2DS12_FIFO_CTRL_FMODE_SHIFT _pyupm_lis2ds12.LIS2DS12_FMODE_BYPASS_swigconstant(_pyupm_lis2ds12) LIS2DS12_FMODE_BYPASS = _pyupm_lis2ds12.LIS2DS12_FMODE_BYPASS _pyupm_lis2ds12.LIS2DS12_FMODE_FIFO_swigconstant(_pyupm_lis2ds12) LIS2DS12_FMODE_FIFO = _pyupm_lis2ds12.LIS2DS12_FMODE_FIFO _pyupm_lis2ds12.LIS2DS12_FMODE_CONT_TO_FIFO_swigconstant(_pyupm_lis2ds12) LIS2DS12_FMODE_CONT_TO_FIFO = _pyupm_lis2ds12.LIS2DS12_FMODE_CONT_TO_FIFO _pyupm_lis2ds12.LIS2DS12_FMODE_BYPASS_TO_CONT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FMODE_BYPASS_TO_CONT = _pyupm_lis2ds12.LIS2DS12_FMODE_BYPASS_TO_CONT _pyupm_lis2ds12.LIS2DS12_FMODE_CONT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FMODE_CONT = _pyupm_lis2ds12.LIS2DS12_FMODE_CONT _pyupm_lis2ds12.LIS2DS12_STATUS_DRDY_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DRDY = _pyupm_lis2ds12.LIS2DS12_STATUS_DRDY _pyupm_lis2ds12.LIS2DS12_STATUS_FF_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_FF_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_FF_IA _pyupm_lis2ds12.LIS2DS12_STATUS_6D_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_6D_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_6D_IA _pyupm_lis2ds12.LIS2DS12_STATUS_SINGLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_SINGLE_TAP = _pyupm_lis2ds12.LIS2DS12_STATUS_SINGLE_TAP _pyupm_lis2ds12.LIS2DS12_STATUS_DOUBLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DOUBLE_TAP = _pyupm_lis2ds12.LIS2DS12_STATUS_DOUBLE_TAP _pyupm_lis2ds12.LIS2DS12_STATUS_SLEEP_STATE_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_SLEEP_STATE = _pyupm_lis2ds12.LIS2DS12_STATUS_SLEEP_STATE _pyupm_lis2ds12.LIS2DS12_STATUS_WU_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_WU_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_WU_IA _pyupm_lis2ds12.LIS2DS12_STATUS_FIFO_THS_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_FIFO_THS = _pyupm_lis2ds12.LIS2DS12_STATUS_FIFO_THS _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_DIFF8_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_SRC_DIFF8 = _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_DIFF8 _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_FIFO_OVR_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_SRC_FIFO_OVR = _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_FIFO_OVR _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_FTH_swigconstant(_pyupm_lis2ds12) LIS2DS12_FIFO_SRC_FTH = _pyupm_lis2ds12.LIS2DS12_FIFO_SRC_FTH _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_TAP_THS0 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS0 _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_TAP_THS1 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS1 _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS2_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_TAP_THS2 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS2 _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS3_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_TAP_THS3 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS3 _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS4_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_TAP_THS4 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_TAP_THS4 _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_TAP_THS_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_TAP_6D_THS_TAP_THS_MASK = _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_TAP_THS_MASK _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_TAP_THS_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_TAP_6D_THS_TAP_THS_SHIFT = _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_TAP_THS_SHIFT _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_THS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_6D_THS0 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_THS0 _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_THS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_6D_THS1 = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_THS1 _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_6D_THS_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_TAP_6D_THS_6D_THS_MASK = _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_6D_THS_MASK _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_6D_THS_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_TAP_6D_THS_6D_THS_SHIFT = _pyupm_lis2ds12._LIS2DS12_TAP_6D_THS_6D_THS_SHIFT _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_4D_EN_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_6D_THS_6D_4D_EN = _pyupm_lis2ds12.LIS2DS12_TAP_6D_THS_6D_4D_EN _pyupm_lis2ds12.LIS2DS12_6D_THS_6_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_THS_6 = _pyupm_lis2ds12.LIS2DS12_6D_THS_6 _pyupm_lis2ds12.LIS2DS12_6D_THS_11_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_THS_11 = _pyupm_lis2ds12.LIS2DS12_6D_THS_11 _pyupm_lis2ds12.LIS2DS12_6D_THS_16_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_THS_16 = _pyupm_lis2ds12.LIS2DS12_6D_THS_16 _pyupm_lis2ds12.LIS2DS12_6D_THS_21_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_THS_21 = _pyupm_lis2ds12.LIS2DS12_6D_THS_21 _pyupm_lis2ds12.LIS2DS12_INT_DUR_SHOCK0_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_SHOCK0 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_SHOCK0 _pyupm_lis2ds12.LIS2DS12_INT_DUR_SHOCK1_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_SHOCK1 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_SHOCK1 _pyupm_lis2ds12._LIS2DS12_INT_DUR_SHOCK_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_SHOCK_MASK = _pyupm_lis2ds12._LIS2DS12_INT_DUR_SHOCK_MASK _pyupm_lis2ds12._LIS2DS12_INT_DUR_SHOCK_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_SHOCK_SHIFT = _pyupm_lis2ds12._LIS2DS12_INT_DUR_SHOCK_SHIFT _pyupm_lis2ds12.LIS2DS12_INT_DUR_QUIET0_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_QUIET0 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_QUIET0 _pyupm_lis2ds12.LIS2DS12_INT_DUR_QUIET1_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_QUIET1 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_QUIET1 _pyupm_lis2ds12._LIS2DS12_INT_DUR_QUIET_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_QUIET_MASK = _pyupm_lis2ds12._LIS2DS12_INT_DUR_QUIET_MASK _pyupm_lis2ds12._LIS2DS12_INT_DUR_QUIET_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_QUIET_SHIFT = _pyupm_lis2ds12._LIS2DS12_INT_DUR_QUIET_SHIFT _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT0_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_LAT0 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT0 _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT1_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_LAT1 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT1 _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT2_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_LAT2 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT2 _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT3_swigconstant(_pyupm_lis2ds12) LIS2DS12_INT_DUR_LAT3 = _pyupm_lis2ds12.LIS2DS12_INT_DUR_LAT3 _pyupm_lis2ds12._LIS2DS12_INT_DUR_LAT_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_LAT_MASK = _pyupm_lis2ds12._LIS2DS12_INT_DUR_LAT_MASK _pyupm_lis2ds12._LIS2DS12_INT_DUR_LAT_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_INT_DUR_LAT_SHIFT = _pyupm_lis2ds12._LIS2DS12_INT_DUR_LAT_SHIFT _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS0 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS0 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS1 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS1 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS2_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS2 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS2 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS3_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS3 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS3 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS4_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS4 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS4 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS5_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_WU_THS5 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_WU_THS5 _pyupm_lis2ds12._LIS2DS12_WAKE_UP_THS_WU_THS_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_THS_WU_THS_MASK = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_THS_WU_THS_MASK _pyupm_lis2ds12._LIS2DS12_WAKE_UP_THS_WU_THS_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_THS_WU_THS_SHIFT = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_THS_WU_THS_SHIFT _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_SLEEP_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_SLEEP_ON = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_SLEEP_ON _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_SINGLE_DOUBLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_THS_SINGLE_DOUBLE_TAP = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_THS_SINGLE_DOUBLE_TAP _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR0_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_SLEEP_DUR0 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR0 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR1_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_SLEEP_DUR1 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR1 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR2_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_SLEEP_DUR2 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR2 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR3_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_SLEEP_DUR3 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_SLEEP_DUR3 _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_MASK = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_MASK _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_SHIFT = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_SLEEP_DUR_SHIFT _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_INT1_FSS7_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_INT1_FSS7 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_INT1_FSS7 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_WU_DUR0_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_WU_DUR0 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_WU_DUR0 _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_WU_DUR1_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_WU_DUR1 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_WU_DUR1 _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_WU_DUR_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_DUR_WU_DUR_MASK = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_WU_DUR_MASK _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_WU_DUR_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_WAKE_UP_DUR_WU_DUR_SHIFT = _pyupm_lis2ds12._LIS2DS12_WAKE_UP_DUR_WU_DUR_SHIFT _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_FF_DUR5_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_DUR_FF_DUR5 = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_DUR_FF_DUR5 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_THS0 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS0 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_THS1 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS1 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS2_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_THS2 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_THS2 _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_THS_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FREE_FALL_FF_THS_MASK = _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_THS_MASK _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_THS_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FREE_FALL_FF_THS_SHIFT = _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_THS_SHIFT _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR0_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_DUR0 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR0 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR1_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_DUR1 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR1 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR2_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_DUR2 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR2 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR3_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_DUR3 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR3 _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR4_swigconstant(_pyupm_lis2ds12) LIS2DS12_FREE_FALL_FF_DUR4 = _pyupm_lis2ds12.LIS2DS12_FREE_FALL_FF_DUR4 _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FREE_FALL_FF_MASK = _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_MASK _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FREE_FALL_FF_SHIFT = _pyupm_lis2ds12._LIS2DS12_FREE_FALL_FF_SHIFT _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_DRDY_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_DRDY = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_DRDY _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_FF_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_FF_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_FF_IA _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_6D_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_6D_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_6D_IA _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_SINGLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_SINGLE_TAP = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_SINGLE_TAP _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_DOUBLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_DOUBLE_TAP = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_DOUBLE_TAP _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_SLEEP_STATE_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_SLEEP_STATE = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_SLEEP_STATE _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_WU_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_WU_IA = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_WU_IA _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_OVR_swigconstant(_pyupm_lis2ds12) LIS2DS12_STATUS_DUP_OVR = _pyupm_lis2ds12.LIS2DS12_STATUS_DUP_OVR _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_Z_WU_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_Z_WU = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_Z_WU _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_Y_WU_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_Y_WU = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_Y_WU _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_X_WU_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_X_WU = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_X_WU _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_WU_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_WU_IA = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_WU_IA _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_SLEEP_STATE_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_SLEEP_STATE_IA = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_SLEEP_STATE_IA _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_FF_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_WAKE_UP_SRC_FF_IA = _pyupm_lis2ds12.LIS2DS12_WAKE_UP_SRC_FF_IA _pyupm_lis2ds12.LIS2DS12_TAP_SRC_Z_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_Z_TAP = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_Z_TAP _pyupm_lis2ds12.LIS2DS12_TAP_SRC_Y_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_Y_TAP = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_Y_TAP _pyupm_lis2ds12.LIS2DS12_TAP_SRC_X_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_X_TAP = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_X_TAP _pyupm_lis2ds12.LIS2DS12_TAP_SRC_TAP_SIGN_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_TAP_SIGN = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_TAP_SIGN _pyupm_lis2ds12.LIS2DS12_TAP_SRC_DOUBLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_DOUBLE_TAP = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_DOUBLE_TAP _pyupm_lis2ds12.LIS2DS12_TAP_SRC_SINGLE_TAP_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_SINGLE_TAP = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_SINGLE_TAP _pyupm_lis2ds12.LIS2DS12_TAP_SRC_TAP_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_TAP_SRC_TAP_IA = _pyupm_lis2ds12.LIS2DS12_TAP_SRC_TAP_IA _pyupm_lis2ds12.LIS2DS12_6D_SRC_XL_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_XL = _pyupm_lis2ds12.LIS2DS12_6D_SRC_XL _pyupm_lis2ds12.LIS2DS12_6D_SRC_XH_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_XH = _pyupm_lis2ds12.LIS2DS12_6D_SRC_XH _pyupm_lis2ds12.LIS2DS12_6D_SRC_YL_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_YL = _pyupm_lis2ds12.LIS2DS12_6D_SRC_YL _pyupm_lis2ds12.LIS2DS12_6D_SRC_YH_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_YH = _pyupm_lis2ds12.LIS2DS12_6D_SRC_YH _pyupm_lis2ds12.LIS2DS12_6D_SRC_ZL_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_ZL = _pyupm_lis2ds12.LIS2DS12_6D_SRC_ZL _pyupm_lis2ds12.LIS2DS12_6D_SRC_ZH_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_SRC_ZH = _pyupm_lis2ds12.LIS2DS12_6D_SRC_ZH _pyupm_lis2ds12.LIS2DS12_6D_IA_swigconstant(_pyupm_lis2ds12) LIS2DS12_6D_IA = _pyupm_lis2ds12.LIS2DS12_6D_IA _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS0_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS0 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS0 _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS1_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS1 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS1 _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS2_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS2 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS2 _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS3_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS3 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS3 _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS4_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS4 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS4 _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5 = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5 _pyupm_lis2ds12._LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_MASK = _pyupm_lis2ds12._LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_MASK _pyupm_lis2ds12._LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_SHIFT = _pyupm_lis2ds12._LIS2DS12_STEP_COUNTER_MINTHS_SC_MTHS5_SHIFT _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_PEDO4G_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_PEDO4G = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_PEDO4G _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_RST_NSTEP_swigconstant(_pyupm_lis2ds12) LIS2DS12_STEP_COUNTER_MINTHS_RST_NSTEP = _pyupm_lis2ds12.LIS2DS12_STEP_COUNTER_MINTHS_RST_NSTEP _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_CK_GATE_FUNC_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_CK_GATE_FUNC = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_CK_GATE_FUNC _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_STEP_DETECT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_STEP_DETECT = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_STEP_DETECT _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_RST_PEDO_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_RST_PEDO = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_RST_PEDO _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_RST_SIGN_MOT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_RST_SIGN_MOT = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_RST_SIGN_MOT _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_SIG_MOT_DETECT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_SIG_MOT_DETECT = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_SIG_MOT_DETECT _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_FS_SRC0_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_FS_SRC0 = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_FS_SRC0 _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_FS_SRC1_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_FS_SRC1 = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_FS_SRC1 _pyupm_lis2ds12._LIS2DS12_FUNC_CK_GATE_FS_SRC_MASK_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FUNC_CK_GATE_FS_SRC_MASK = _pyupm_lis2ds12._LIS2DS12_FUNC_CK_GATE_FS_SRC_MASK _pyupm_lis2ds12._LIS2DS12_FUNC_CK_GATE_FS_SRC_SHIFT_swigconstant(_pyupm_lis2ds12) _LIS2DS12_FUNC_CK_GATE_FS_SRC_SHIFT = _pyupm_lis2ds12._LIS2DS12_FUNC_CK_GATE_FS_SRC_SHIFT _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_TILT_INT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CK_GATE_TILT_INT = _pyupm_lis2ds12.LIS2DS12_FUNC_CK_GATE_TILT_INT _pyupm_lis2ds12.LIS2DS12_FS_SRC_NO_SCALE_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_SRC_NO_SCALE = _pyupm_lis2ds12.LIS2DS12_FS_SRC_NO_SCALE _pyupm_lis2ds12.LIS2DS12_FS_SRC_2G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_SRC_2G = _pyupm_lis2ds12.LIS2DS12_FS_SRC_2G _pyupm_lis2ds12.LIS2DS12_FS_SRC_4G_swigconstant(_pyupm_lis2ds12) LIS2DS12_FS_SRC_4G = _pyupm_lis2ds12.LIS2DS12_FS_SRC_4G _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_SENSORHUB_END_OP_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_SRC_SENSORHUB_END_OP = _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_SENSORHUB_END_OP _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_MODULE_READY_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_SRC_MODULE_READY = _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_MODULE_READY _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_RST_TILT_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_SRC_RST_TILT = _pyupm_lis2ds12.LIS2DS12_FUNC_SRC_RST_TILT _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_STEP_CNT_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_STEP_CNT_ON = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_STEP_CNT_ON _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_SIGN_MOT_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_SIGN_MOT_ON = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_SIGN_MOT_ON _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_MASTER_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_MASTER_ON = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_MASTER_ON _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_TUD_EN_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_TUD_EN = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_TUD_EN _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_TILT_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_TILT_ON = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_TILT_ON _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_MODULE_ON_swigconstant(_pyupm_lis2ds12) LIS2DS12_FUNC_CTRL_MODULE_ON = _pyupm_lis2ds12.LIS2DS12_FUNC_CTRL_MODULE_ON _pyupm_lis2ds12.LIS2DS12_INTERRUPT_INT1_swigconstant(_pyupm_lis2ds12) LIS2DS12_INTERRUPT_INT1 = _pyupm_lis2ds12.LIS2DS12_INTERRUPT_INT1 _pyupm_lis2ds12.LIS2DS12_INTERRUPT_INT2_swigconstant(_pyupm_lis2ds12) LIS2DS12_INTERRUPT_INT2 = _pyupm_lis2ds12.LIS2DS12_INTERRUPT_INT2
[docs]class LIS2DS12(_object): """ API for the LIS2DS12 3-axis Accelerometer. ID: lis2ds12 Name: Digital 3-axis Accelerometer Category: accelerometer Manufacturer: stmicro Connection: i2c spi gpio Link:http://www.st.com/en/mems-and-sensors/lis2ds12.html The LIS2DS12 is an ultra-low-power high performance three-axis linear accelerometer belonging to the "pico" family which leverages on the robust and mature manufacturing processes already used for the production of micromachined accelerometers. The LIS2DS12 has user-selectable full scales of 2g/4g/8g/16g and is capable of measuring accelerations with output data rates from 1 Hz to 6400 Hz. 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 both I2C (default) and SPI operation. This device requires 1.8v operation. C++ includes: lis2ds12.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, LIS2DS12, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, LIS2DS12, name) __repr__ = _swig_repr def __init__(self, bus=0, addr=0x1e, cs=-1): """ LIS2DS12(int bus=LIS2DS12_DEFAULT_I2C_BUS, int addr=LIS2DS12_DEFAULT_I2C_ADDR, int cs=-1) LIS2DS12 constructor. This device can support both I2C and SPI. For SPI, set the addr to -1, and specify a positive integer representing the Chip Select (CS) pin for the cs argument. If you are using a hardware CS pin (like edison with arduino breakout), then you can connect the proper pin to the hardware CS pin on your MCU and supply -1 for cs. The default operating mode is I2C. Parameters: ----------- bus: I2C or SPI bus to use addr: The address for this device. -1 for SPI cs: The gpio pin to use for the SPI Chip Select. -1 for I2C or for SPI with a hardware controlled pin. Exceptions: ----------- std::runtime_error: on initialization failure """ this = _pyupm_lis2ds12.new_LIS2DS12(bus, addr, cs) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_lis2ds12.delete_LIS2DS12 __del__ = lambda self: None
[docs] def update(self): """ void update() Update the internal stored values from sensor data Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_update(self)
[docs] def getChipID(self): """ uint8_t getChipID() Return the chip ID The chip ID """ return _pyupm_lis2ds12.LIS2DS12_getChipID(self)
[docs] def getAccelerometer(self, *args): """ std::vector< float > getAccelerometer() Return accelerometer 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_lis2ds12.LIS2DS12_getAccelerometer(self, *args)
[docs] def getTemperature(self, fahrenheit=False): """ float getTemperature(bool fahrenheit=false) Return the current measured temperature. Note, this is not ambient temperature. update() must have been called prior to calling this method. Parameters: ----------- fahrenheit: true to return data in Fahrenheit, false for Celicus. Celsius is the default. The temperature in degrees Celsius or Fahrenheit """ return _pyupm_lis2ds12.LIS2DS12_getTemperature(self, fahrenheit)
[docs] def init(self, odr=LIS2DS12_ODR_100HZ, fs=LIS2DS12_FS_2G): """ void init(LIS2DS12_ODR_T odr=LIS2DS12_ODR_100HZ, LIS2DS12_FS_T fs=LIS2DS12_FS_2G) Initialize the device and start operation. This function is called from the constructor so will not typically need to be called by a user unless the device is reset. Parameters: ----------- odr: One of the LIS2DS12_ODR_T values. The default is LIS2DS12_ODR_100HZ fs: One of the LIS2DS12_FS_T values. The default is LIS2DS12_FS_2G Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_init(self, odr, fs)
[docs] def reset(self): """ void reset() Reset the device as if during a power on reset. All configured values are lost when this happens. You should call init() afterwards, or at least perform the same initialization init() does before continuing. Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_reset(self)
[docs] def setODR(self, odr): """ void setODR(LIS2DS12_ODR_T odr) Set the output data rate (ODR) of the device Parameters: ----------- odr: One of the LIS2DS12_ODR_T values Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setODR(self, odr)
[docs] def setFullScale(self, fs): """ void setFullScale(LIS2DS12_FS_T fs) Set the full scale (FS) of the device. This device supports a full scale of 2, 4, 8, and 16G. Parameters: ----------- fs: One of the LIS2DS12_FS_T values Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setFullScale(self, fs)
[docs] def enableHPFiltering(self, filter): """ void enableHPFiltering(bool filter) Enable high pass filtering of the accelerometer axis data. init() disables this by default. See the datasheet for details. Parameters: ----------- filter: true to enable filtering, false to disable Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_enableHPFiltering(self, filter)
[docs] def enableInterruptLatching(self, latch): """ void enableInterruptLatching(bool latch) Enable or disable interrupt latching. If latching is disabled, pulsed is enabled. See the datasheet for details. Parameters: ----------- latch: true to enable latching, false to disable Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_enableInterruptLatching(self, latch)
[docs] def setInterruptActiveHigh(self, high): """ void setInterruptActiveHigh(bool high) Indicate whether the interrupt should be active high (default) or active low. See the datasheet for details. Parameters: ----------- high: true for active high, false for active low Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setInterruptActiveHigh(self, high)
[docs] def setInterruptPushPull(self, pp): """ void setInterruptPushPull(bool pp) Indicate whether interrupts are push-pull (default) or open drain. See the datasheet for details. Parameters: ----------- pp: true for push-pull, false for open-drain Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setInterruptPushPull(self, pp)
[docs] def setInt1Config(self, cfg): """ void setInt1Config(uint8_t cfg) Set interrupt 1 configuration. See the datasheet for details. Parameters: ----------- cfg: A bitmask of values from LIS2DS12_CTRL4_BITS_T Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setInt1Config(self, cfg)
[docs] def setInt2Config(self, cfg): """ void setInt2Config(uint8_t cfg) Set interrupt 2 configuration. See the datasheet for details. Parameters: ----------- cfg: A bitmask of values from LIS2DS12_CTRL5_BITS_T Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_setInt2Config(self, cfg)
[docs] def getStatus(self): """ uint8_t getStatus() Return the contents of the status register A bitmask of values from LIS2DS12_STATUS_BITS_T """ return _pyupm_lis2ds12.LIS2DS12_getStatus(self)
[docs] def installISR(self, intr, gpio, level, isr, arg): """ void installISR(LIS2DS12_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg) install an interrupt handler Parameters: ----------- intr: One of the LIS2DS12_INTERRUPT_PINS_T values specifying which interrupt pin you are installing gpio: GPIO pin to use as interrupt pin level: The interrupt trigger level (one of mraa::Edge values). Make sure that you have configured the interrupt pin properly for whatever level you choose. isr: The interrupt handler, accepting a void * argument arg: The argument to pass the the interrupt handler Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_installISR(self, intr, gpio, level, isr, arg)
[docs] def uninstallISR(self, intr): """ void uninstallISR(LIS2DS12_INTERRUPT_PINS_T intr) uninstall a previously installed interrupt handler Parameters: ----------- intr: One of the LIS2DS12_INTERRUPT_PINS_T values specifying which interrupt pin you are removing """ return _pyupm_lis2ds12.LIS2DS12_uninstallISR(self, intr)
[docs] def readReg(self, reg): """ uint8_t readReg(uint8_t reg) Read a register Parameters: ----------- reg: The register to read The value of the register """ return _pyupm_lis2ds12.LIS2DS12_readReg(self, reg)
[docs] def readRegs(self, reg, buffer, len): """ int readRegs(uint8_t reg, uint8_t *buffer, int len) Read contiguous registers into a buffer Parameters: ----------- reg: The register to start the read from buffer: The buffer to store the results len: The number of registers to read The number of bytes read Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_readRegs(self, reg, buffer, len)
[docs] def writeReg(self, reg, val): """ void writeReg(uint8_t reg, uint8_t val) Write to a register Parameters: ----------- reg: The register to write to val: The value to write Exceptions: ----------- std::runtime_error: on failure """ return _pyupm_lis2ds12.LIS2DS12_writeReg(self, reg, val)
LIS2DS12_swigregister = _pyupm_lis2ds12.LIS2DS12_swigregister LIS2DS12_swigregister(LIS2DS12) # This file is compatible with both classic and new-style classes.