# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# 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 as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _pyupm_lsm303d
else:
    import _pyupm_lsm303d

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


import upm.pyupm_interfaces

def getVersion():
    return _pyupm_lsm303d.getVersion()
class SwigPyIterator(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = _pyupm_lsm303d.delete_SwigPyIterator

    def value(self):
        return _pyupm_lsm303d.SwigPyIterator_value(self)

    def incr(self, n=1):
        return _pyupm_lsm303d.SwigPyIterator_incr(self, n)

    def decr(self, n=1):
        return _pyupm_lsm303d.SwigPyIterator_decr(self, n)

    def distance(self, x):
        return _pyupm_lsm303d.SwigPyIterator_distance(self, x)

    def equal(self, x):
        return _pyupm_lsm303d.SwigPyIterator_equal(self, x)

    def copy(self):
        return _pyupm_lsm303d.SwigPyIterator_copy(self)

    def next(self):
        return _pyupm_lsm303d.SwigPyIterator_next(self)

    def __next__(self):
        return _pyupm_lsm303d.SwigPyIterator___next__(self)

    def previous(self):
        return _pyupm_lsm303d.SwigPyIterator_previous(self)

    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

# Register SwigPyIterator in _pyupm_lsm303d:
_pyupm_lsm303d.SwigPyIterator_swigregister(SwigPyIterator)

class intVector(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    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)

    def pop(self):
        return _pyupm_lsm303d.intVector_pop(self)

    def append(self, x):
        return _pyupm_lsm303d.intVector_append(self, x)

    def empty(self):
        return _pyupm_lsm303d.intVector_empty(self)

    def size(self):
        return _pyupm_lsm303d.intVector_size(self)

    def swap(self, v):
        return _pyupm_lsm303d.intVector_swap(self, v)

    def begin(self):
        return _pyupm_lsm303d.intVector_begin(self)

    def end(self):
        return _pyupm_lsm303d.intVector_end(self)

    def rbegin(self):
        return _pyupm_lsm303d.intVector_rbegin(self)

    def rend(self):
        return _pyupm_lsm303d.intVector_rend(self)

    def clear(self):
        return _pyupm_lsm303d.intVector_clear(self)

    def get_allocator(self):
        return _pyupm_lsm303d.intVector_get_allocator(self)

    def pop_back(self):
        return _pyupm_lsm303d.intVector_pop_back(self)

    def erase(self, *args):
        return _pyupm_lsm303d.intVector_erase(self, *args)

    def __init__(self, *args):
        _pyupm_lsm303d.intVector_swiginit(self, _pyupm_lsm303d.new_intVector(*args))

    def push_back(self, x):
        return _pyupm_lsm303d.intVector_push_back(self, x)

    def front(self):
        return _pyupm_lsm303d.intVector_front(self)

    def back(self):
        return _pyupm_lsm303d.intVector_back(self)

    def assign(self, n, x):
        return _pyupm_lsm303d.intVector_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_lsm303d.intVector_resize(self, *args)

    def insert(self, *args):
        return _pyupm_lsm303d.intVector_insert(self, *args)

    def reserve(self, n):
        return _pyupm_lsm303d.intVector_reserve(self, n)

    def capacity(self):
        return _pyupm_lsm303d.intVector_capacity(self)
    __swig_destroy__ = _pyupm_lsm303d.delete_intVector

# Register intVector in _pyupm_lsm303d:
_pyupm_lsm303d.intVector_swigregister(intVector)

class int16Vector(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    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)

    def pop(self):
        return _pyupm_lsm303d.int16Vector_pop(self)

    def append(self, x):
        return _pyupm_lsm303d.int16Vector_append(self, x)

    def empty(self):
        return _pyupm_lsm303d.int16Vector_empty(self)

    def size(self):
        return _pyupm_lsm303d.int16Vector_size(self)

    def swap(self, v):
        return _pyupm_lsm303d.int16Vector_swap(self, v)

    def begin(self):
        return _pyupm_lsm303d.int16Vector_begin(self)

    def end(self):
        return _pyupm_lsm303d.int16Vector_end(self)

    def rbegin(self):
        return _pyupm_lsm303d.int16Vector_rbegin(self)

    def rend(self):
        return _pyupm_lsm303d.int16Vector_rend(self)

    def clear(self):
        return _pyupm_lsm303d.int16Vector_clear(self)

    def get_allocator(self):
        return _pyupm_lsm303d.int16Vector_get_allocator(self)

    def pop_back(self):
        return _pyupm_lsm303d.int16Vector_pop_back(self)

    def erase(self, *args):
        return _pyupm_lsm303d.int16Vector_erase(self, *args)

    def __init__(self, *args):
        _pyupm_lsm303d.int16Vector_swiginit(self, _pyupm_lsm303d.new_int16Vector(*args))

    def push_back(self, x):
        return _pyupm_lsm303d.int16Vector_push_back(self, x)

    def front(self):
        return _pyupm_lsm303d.int16Vector_front(self)

    def back(self):
        return _pyupm_lsm303d.int16Vector_back(self)

    def assign(self, n, x):
        return _pyupm_lsm303d.int16Vector_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_lsm303d.int16Vector_resize(self, *args)

    def insert(self, *args):
        return _pyupm_lsm303d.int16Vector_insert(self, *args)

    def reserve(self, n):
        return _pyupm_lsm303d.int16Vector_reserve(self, n)

    def capacity(self):
        return _pyupm_lsm303d.int16Vector_capacity(self)
    __swig_destroy__ = _pyupm_lsm303d.delete_int16Vector

# Register int16Vector in _pyupm_lsm303d:
_pyupm_lsm303d.int16Vector_swigregister(int16Vector)

class floatVector(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    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)

    def pop(self):
        return _pyupm_lsm303d.floatVector_pop(self)

    def append(self, x):
        return _pyupm_lsm303d.floatVector_append(self, x)

    def empty(self):
        return _pyupm_lsm303d.floatVector_empty(self)

    def size(self):
        return _pyupm_lsm303d.floatVector_size(self)

    def swap(self, v):
        return _pyupm_lsm303d.floatVector_swap(self, v)

    def begin(self):
        return _pyupm_lsm303d.floatVector_begin(self)

    def end(self):
        return _pyupm_lsm303d.floatVector_end(self)

    def rbegin(self):
        return _pyupm_lsm303d.floatVector_rbegin(self)

    def rend(self):
        return _pyupm_lsm303d.floatVector_rend(self)

    def clear(self):
        return _pyupm_lsm303d.floatVector_clear(self)

    def get_allocator(self):
        return _pyupm_lsm303d.floatVector_get_allocator(self)

    def pop_back(self):
        return _pyupm_lsm303d.floatVector_pop_back(self)

    def erase(self, *args):
        return _pyupm_lsm303d.floatVector_erase(self, *args)

    def __init__(self, *args):
        _pyupm_lsm303d.floatVector_swiginit(self, _pyupm_lsm303d.new_floatVector(*args))

    def push_back(self, x):
        return _pyupm_lsm303d.floatVector_push_back(self, x)

    def front(self):
        return _pyupm_lsm303d.floatVector_front(self)

    def back(self):
        return _pyupm_lsm303d.floatVector_back(self)

    def assign(self, n, x):
        return _pyupm_lsm303d.floatVector_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_lsm303d.floatVector_resize(self, *args)

    def insert(self, *args):
        return _pyupm_lsm303d.floatVector_insert(self, *args)

    def reserve(self, n):
        return _pyupm_lsm303d.floatVector_reserve(self, n)

    def capacity(self):
        return _pyupm_lsm303d.floatVector_capacity(self)
    __swig_destroy__ = _pyupm_lsm303d.delete_floatVector

# Register floatVector in _pyupm_lsm303d:
_pyupm_lsm303d.floatVector_swigregister(floatVector)

class doubleVector(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    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)

    def pop(self):
        return _pyupm_lsm303d.doubleVector_pop(self)

    def append(self, x):
        return _pyupm_lsm303d.doubleVector_append(self, x)

    def empty(self):
        return _pyupm_lsm303d.doubleVector_empty(self)

    def size(self):
        return _pyupm_lsm303d.doubleVector_size(self)

    def swap(self, v):
        return _pyupm_lsm303d.doubleVector_swap(self, v)

    def begin(self):
        return _pyupm_lsm303d.doubleVector_begin(self)

    def end(self):
        return _pyupm_lsm303d.doubleVector_end(self)

    def rbegin(self):
        return _pyupm_lsm303d.doubleVector_rbegin(self)

    def rend(self):
        return _pyupm_lsm303d.doubleVector_rend(self)

    def clear(self):
        return _pyupm_lsm303d.doubleVector_clear(self)

    def get_allocator(self):
        return _pyupm_lsm303d.doubleVector_get_allocator(self)

    def pop_back(self):
        return _pyupm_lsm303d.doubleVector_pop_back(self)

    def erase(self, *args):
        return _pyupm_lsm303d.doubleVector_erase(self, *args)

    def __init__(self, *args):
        _pyupm_lsm303d.doubleVector_swiginit(self, _pyupm_lsm303d.new_doubleVector(*args))

    def push_back(self, x):
        return _pyupm_lsm303d.doubleVector_push_back(self, x)

    def front(self):
        return _pyupm_lsm303d.doubleVector_front(self)

    def back(self):
        return _pyupm_lsm303d.doubleVector_back(self)

    def assign(self, n, x):
        return _pyupm_lsm303d.doubleVector_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_lsm303d.doubleVector_resize(self, *args)

    def insert(self, *args):
        return _pyupm_lsm303d.doubleVector_insert(self, *args)

    def reserve(self, n):
        return _pyupm_lsm303d.doubleVector_reserve(self, n)

    def capacity(self):
        return _pyupm_lsm303d.doubleVector_capacity(self)
    __swig_destroy__ = _pyupm_lsm303d.delete_doubleVector

# Register doubleVector in _pyupm_lsm303d:
_pyupm_lsm303d.doubleVector_swigregister(doubleVector)

class byteVector(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    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)

    def pop(self):
        return _pyupm_lsm303d.byteVector_pop(self)

    def append(self, x):
        return _pyupm_lsm303d.byteVector_append(self, x)

    def empty(self):
        return _pyupm_lsm303d.byteVector_empty(self)

    def size(self):
        return _pyupm_lsm303d.byteVector_size(self)

    def swap(self, v):
        return _pyupm_lsm303d.byteVector_swap(self, v)

    def begin(self):
        return _pyupm_lsm303d.byteVector_begin(self)

    def end(self):
        return _pyupm_lsm303d.byteVector_end(self)

    def rbegin(self):
        return _pyupm_lsm303d.byteVector_rbegin(self)

    def rend(self):
        return _pyupm_lsm303d.byteVector_rend(self)

    def clear(self):
        return _pyupm_lsm303d.byteVector_clear(self)

    def get_allocator(self):
        return _pyupm_lsm303d.byteVector_get_allocator(self)

    def pop_back(self):
        return _pyupm_lsm303d.byteVector_pop_back(self)

    def erase(self, *args):
        return _pyupm_lsm303d.byteVector_erase(self, *args)

    def __init__(self, *args):
        _pyupm_lsm303d.byteVector_swiginit(self, _pyupm_lsm303d.new_byteVector(*args))

    def push_back(self, x):
        return _pyupm_lsm303d.byteVector_push_back(self, x)

    def front(self):
        return _pyupm_lsm303d.byteVector_front(self)

    def back(self):
        return _pyupm_lsm303d.byteVector_back(self)

    def assign(self, n, x):
        return _pyupm_lsm303d.byteVector_assign(self, n, x)

    def resize(self, *args):
        return _pyupm_lsm303d.byteVector_resize(self, *args)

    def insert(self, *args):
        return _pyupm_lsm303d.byteVector_insert(self, *args)

    def reserve(self, n):
        return _pyupm_lsm303d.byteVector_reserve(self, n)

    def capacity(self):
        return _pyupm_lsm303d.byteVector_capacity(self)
    __swig_destroy__ = _pyupm_lsm303d.delete_byteVector

# Register byteVector in _pyupm_lsm303d:
_pyupm_lsm303d.byteVector_swigregister(byteVector)

LSM303D_DEFAULT_I2C_BUS = _pyupm_lsm303d.LSM303D_DEFAULT_I2C_BUS
LSM303D_DEFAULT_I2C_ADDR = _pyupm_lsm303d.LSM303D_DEFAULT_I2C_ADDR
LSM303D_CHIPID = _pyupm_lsm303d.LSM303D_CHIPID
LSM303D_REG_TEMP_OUT_L = _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_L
LSM303D_REG_TEMP_OUT_H = _pyupm_lsm303d.LSM303D_REG_TEMP_OUT_H
LSM303D_REG_STATUS_M = _pyupm_lsm303d.LSM303D_REG_STATUS_M
LSM303D_REG_OUT_X_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_X_L_M
LSM303D_REG_OUT_X_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_X_H_M
LSM303D_REG_OUT_Y_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_M
LSM303D_REG_OUT_Y_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_M
LSM303D_REG_OUT_Z_L_M = _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_M
LSM303D_REG_OUT_Z_H_M = _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_M
LSM303D_REG_WHO_AM_I = _pyupm_lsm303d.LSM303D_REG_WHO_AM_I
LSM303D_REG_INT_CTRL_M = _pyupm_lsm303d.LSM303D_REG_INT_CTRL_M
LSM303D_REG_INT_SRC_M = _pyupm_lsm303d.LSM303D_REG_INT_SRC_M
LSM303D_REG_INT_THS_L_M = _pyupm_lsm303d.LSM303D_REG_INT_THS_L_M
LSM303D_REG_INT_THS_H_M = _pyupm_lsm303d.LSM303D_REG_INT_THS_H_M
LSM303D_REG_OFFSET_X_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_X_L_M
LSM303D_REG_OFFSET_X_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_X_H_M
LSM303D_REG_OFFSET_Y_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_L_M
LSM303D_REG_OFFSET_Y_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Y_H_M
LSM303D_REG_OFFSET_Z_L_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_L_M
LSM303D_REG_OFFSET_Z_H_M = _pyupm_lsm303d.LSM303D_REG_OFFSET_Z_H_M
LSM303D_REG_REFERENCE_X = _pyupm_lsm303d.LSM303D_REG_REFERENCE_X
LSM303D_REG_REFERENCE_Y = _pyupm_lsm303d.LSM303D_REG_REFERENCE_Y
LSM303D_REG_REFERENCE_Z = _pyupm_lsm303d.LSM303D_REG_REFERENCE_Z
LSM303D_REG_CTRL0 = _pyupm_lsm303d.LSM303D_REG_CTRL0
LSM303D_REG_CTRL1 = _pyupm_lsm303d.LSM303D_REG_CTRL1
LSM303D_REG_CTRL2 = _pyupm_lsm303d.LSM303D_REG_CTRL2
LSM303D_REG_CTRL3 = _pyupm_lsm303d.LSM303D_REG_CTRL3
LSM303D_REG_CTRL4 = _pyupm_lsm303d.LSM303D_REG_CTRL4
LSM303D_REG_CTRL5 = _pyupm_lsm303d.LSM303D_REG_CTRL5
LSM303D_REG_CTRL6 = _pyupm_lsm303d.LSM303D_REG_CTRL6
LSM303D_REG_CTRL7 = _pyupm_lsm303d.LSM303D_REG_CTRL7
LSM303D_REG_STATUS_A = _pyupm_lsm303d.LSM303D_REG_STATUS_A
LSM303D_REG_OUT_X_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_X_L_A
LSM303D_REG_OUT_X_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_X_H_A
LSM303D_REG_OUT_Y_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_Y_L_A
LSM303D_REG_OUT_Y_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_Y_H_A
LSM303D_REG_OUT_Z_L_A = _pyupm_lsm303d.LSM303D_REG_OUT_Z_L_A
LSM303D_REG_OUT_Z_H_A = _pyupm_lsm303d.LSM303D_REG_OUT_Z_H_A
LSM303D_REG_FIFO_CTRL = _pyupm_lsm303d.LSM303D_REG_FIFO_CTRL
LSM303D_REG_FIFO_SRC = _pyupm_lsm303d.LSM303D_REG_FIFO_SRC
LSM303D_REG_IG_CFG1 = _pyupm_lsm303d.LSM303D_REG_IG_CFG1
LSM303D_REG_IG_SRC1 = _pyupm_lsm303d.LSM303D_REG_IG_SRC1
LSM303D_REG_IG_THS1 = _pyupm_lsm303d.LSM303D_REG_IG_THS1
LSM303D_REG_IG_DUR1 = _pyupm_lsm303d.LSM303D_REG_IG_DUR1
LSM303D_REG_IG_CFG2 = _pyupm_lsm303d.LSM303D_REG_IG_CFG2
LSM303D_REG_IG_SRC2 = _pyupm_lsm303d.LSM303D_REG_IG_SRC2
LSM303D_REG_IG_THS2 = _pyupm_lsm303d.LSM303D_REG_IG_THS2
LSM303D_REG_IG_DUR2 = _pyupm_lsm303d.LSM303D_REG_IG_DUR2
LSM303D_REG_CLICK_CFG = _pyupm_lsm303d.LSM303D_REG_CLICK_CFG
LSM303D_REG_CLICK_SRC = _pyupm_lsm303d.LSM303D_REG_CLICK_SRC
LSM303D_REG_CLICK_THS = _pyupm_lsm303d.LSM303D_REG_CLICK_THS
LSM303D_REG_TIME_LIMIT = _pyupm_lsm303d.LSM303D_REG_TIME_LIMIT
LSM303D_REG_TIME_LATENCY = _pyupm_lsm303d.LSM303D_REG_TIME_LATENCY
LSM303D_REG_TIME_WINDOW = _pyupm_lsm303d.LSM303D_REG_TIME_WINDOW
LSM303D_REG_ACT_THS = _pyupm_lsm303d.LSM303D_REG_ACT_THS
LSM303D_REG_ACT_DUR = _pyupm_lsm303d.LSM303D_REG_ACT_DUR
LSM303D_CTRL1_AXEN = _pyupm_lsm303d.LSM303D_CTRL1_AXEN
LSM303D_CTRL1_AYEN = _pyupm_lsm303d.LSM303D_CTRL1_AYEN
LSM303D_CTRL1_AZEN = _pyupm_lsm303d.LSM303D_CTRL1_AZEN
LSM303D_CTRL1_BDU = _pyupm_lsm303d.LSM303D_CTRL1_BDU
LSM303D_CTRL1_AODR0 = _pyupm_lsm303d.LSM303D_CTRL1_AODR0
LSM303D_CTRL1_AODR1 = _pyupm_lsm303d.LSM303D_CTRL1_AODR1
LSM303D_CTRL1_AODR2 = _pyupm_lsm303d.LSM303D_CTRL1_AODR2
LSM303D_CTRL1_AODR3 = _pyupm_lsm303d.LSM303D_CTRL1_AODR3
_LSM303D_CTRL1_AODR_MASK = _pyupm_lsm303d._LSM303D_CTRL1_AODR_MASK
_LSM303D_CTRL1_AODR_SHIFT = _pyupm_lsm303d._LSM303D_CTRL1_AODR_SHIFT
LSM303D_AODR_POWER_DOWN = _pyupm_lsm303d.LSM303D_AODR_POWER_DOWN
LSM303D_AODR_3_125HZ = _pyupm_lsm303d.LSM303D_AODR_3_125HZ
LSM303D_AODR_6_25HZ = _pyupm_lsm303d.LSM303D_AODR_6_25HZ
LSM303D_AODR_12_5HZ = _pyupm_lsm303d.LSM303D_AODR_12_5HZ
LSM303D_AODR_25HZ = _pyupm_lsm303d.LSM303D_AODR_25HZ
LSM303D_AODR_50HZ = _pyupm_lsm303d.LSM303D_AODR_50HZ
LSM303D_AODR_100HZ = _pyupm_lsm303d.LSM303D_AODR_100HZ
LSM303D_AODR_200HZ = _pyupm_lsm303d.LSM303D_AODR_200HZ
LSM303D_AODR_400HZ = _pyupm_lsm303d.LSM303D_AODR_400HZ
LSM303D_AODR_800HZ = _pyupm_lsm303d.LSM303D_AODR_800HZ
LSM303D_AODR_1600HZ = _pyupm_lsm303d.LSM303D_AODR_1600HZ
LSM303D_CTRL2_SIM = _pyupm_lsm303d.LSM303D_CTRL2_SIM
LSM303D_CTRL2_AST = _pyupm_lsm303d.LSM303D_CTRL2_AST
LSM303D_CTRL2_AFS0 = _pyupm_lsm303d.LSM303D_CTRL2_AFS0
LSM303D_CTRL2_AFS1 = _pyupm_lsm303d.LSM303D_CTRL2_AFS1
LSM303D_CTRL2_AFS2 = _pyupm_lsm303d.LSM303D_CTRL2_AFS2
_LSM303D_CTRL2_AFS_MASK = _pyupm_lsm303d._LSM303D_CTRL2_AFS_MASK
_LSM303D_CTRL2_AFS_SHIFT = _pyupm_lsm303d._LSM303D_CTRL2_AFS_SHIFT
LSM303D_CTRL2_ABW0 = _pyupm_lsm303d.LSM303D_CTRL2_ABW0
LSM303D_CTRL2_ABW1 = _pyupm_lsm303d.LSM303D_CTRL2_ABW1
_LSM303D_CTRL2_ABW_MASK = _pyupm_lsm303d._LSM303D_CTRL2_ABW_MASK
_LSM303D_CTRL2_ABW_SHIFT = _pyupm_lsm303d._LSM303D_CTRL2_ABW_SHIFT
LSM303D_AFS_2G = _pyupm_lsm303d.LSM303D_AFS_2G
LSM303D_AFS_4G = _pyupm_lsm303d.LSM303D_AFS_4G
LSM303D_AFS_6G = _pyupm_lsm303d.LSM303D_AFS_6G
LSM303D_AFS_8G = _pyupm_lsm303d.LSM303D_AFS_8G
LSM303D_AFS_16G = _pyupm_lsm303d.LSM303D_AFS_16G
LSM303D_CTRL5_LIR1 = _pyupm_lsm303d.LSM303D_CTRL5_LIR1
LSM303D_CTRL5_LIR2 = _pyupm_lsm303d.LSM303D_CTRL5_LIR2
LSM303D_CTRL5_MODR0 = _pyupm_lsm303d.LSM303D_CTRL5_MODR0
LSM303D_CTRL5_MODR1 = _pyupm_lsm303d.LSM303D_CTRL5_MODR1
LSM303D_CTRL5_MODR2 = _pyupm_lsm303d.LSM303D_CTRL5_MODR2
_LSM303D_CTRL5_MODR_MASK = _pyupm_lsm303d._LSM303D_CTRL5_MODR_MASK
_LSM303D_CTRL5_MODR_SHIFT = _pyupm_lsm303d._LSM303D_CTRL5_MODR_SHIFT
LSM303D_CTRL5_M_RES0 = _pyupm_lsm303d.LSM303D_CTRL5_M_RES0
LSM303D_CTRL5_M_RES1 = _pyupm_lsm303d.LSM303D_CTRL5_M_RES1
_LSM303D_CTRL5_MRES_MASK = _pyupm_lsm303d._LSM303D_CTRL5_MRES_MASK
_LSM303D_CTRL5_MRES_SHIFT = _pyupm_lsm303d._LSM303D_CTRL5_MRES_SHIFT
LSM303D_CTRL5_TEMP_EN = _pyupm_lsm303d.LSM303D_CTRL5_TEMP_EN
LSM303D_MODR_3_125HZ = _pyupm_lsm303d.LSM303D_MODR_3_125HZ
LSM303D_MODR_6_25HZ = _pyupm_lsm303d.LSM303D_MODR_6_25HZ
LSM303D_MODR_12_5HZ = _pyupm_lsm303d.LSM303D_MODR_12_5HZ
LSM303D_MODR_25HZ = _pyupm_lsm303d.LSM303D_MODR_25HZ
LSM303D_MODR_50HZ = _pyupm_lsm303d.LSM303D_MODR_50HZ
LSM303D_MODR_100HZ = _pyupm_lsm303d.LSM303D_MODR_100HZ
LSM303D_M_RES_LOW = _pyupm_lsm303d.LSM303D_M_RES_LOW
LSM303D_M_RES_HIGH = _pyupm_lsm303d.LSM303D_M_RES_HIGH
LSM303D_CTRL6_MFS0 = _pyupm_lsm303d.LSM303D_CTRL6_MFS0
LSM303D_CTRL6_MFS1 = _pyupm_lsm303d.LSM303D_CTRL6_MFS1
_LSM303D_CTRL6_MFS_MASK = _pyupm_lsm303d._LSM303D_CTRL6_MFS_MASK
_LSM303D_CTRL6_MFS_SHIFT = _pyupm_lsm303d._LSM303D_CTRL6_MFS_SHIFT
LSM303D_MFS_2 = _pyupm_lsm303d.LSM303D_MFS_2
LSM303D_MFS_4 = _pyupm_lsm303d.LSM303D_MFS_4
LSM303D_MFS_8 = _pyupm_lsm303d.LSM303D_MFS_8
LSM303D_MFS_12 = _pyupm_lsm303d.LSM303D_MFS_12
LSM303D_CTRL7_MD0 = _pyupm_lsm303d.LSM303D_CTRL7_MD0
LSM303D_CTRL7_MD1 = _pyupm_lsm303d.LSM303D_CTRL7_MD1
_LSM303D_CTRL7_MD_MASK = _pyupm_lsm303d._LSM303D_CTRL7_MD_MASK
_LSM303D_CTRL7_MD_SHIFT = _pyupm_lsm303d._LSM303D_CTRL7_MD_SHIFT
LSM303D_CTRL7_MLP = _pyupm_lsm303d.LSM303D_CTRL7_MLP
LSM303D_CTRL7_T_ONLY = _pyupm_lsm303d.LSM303D_CTRL7_T_ONLY
LSM303D_CTRL7_AFDS = _pyupm_lsm303d.LSM303D_CTRL7_AFDS
LSM303D_CTRL7_AHPM0 = _pyupm_lsm303d.LSM303D_CTRL7_AHPM0
LSM303D_CTRL7_AHPM1 = _pyupm_lsm303d.LSM303D_CTRL7_AHPM1
_LSM303D_CTRL7_AHPM_MASK = _pyupm_lsm303d._LSM303D_CTRL7_AHPM_MASK
_LSM303D_CTRL7_AHPM_SHIFT = _pyupm_lsm303d._LSM303D_CTRL7_AHPM_SHIFT
LSM303D_MD_CONTINUOUS = _pyupm_lsm303d.LSM303D_MD_CONTINUOUS
LSM303D_MD_SINGLE = _pyupm_lsm303d.LSM303D_MD_SINGLE
LSM303D_MD_POWER_DOWN = _pyupm_lsm303d.LSM303D_MD_POWER_DOWN
class LSM303D(upm.pyupm_interfaces.iAcceleration):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, bus=0, addr=0x1e):
        _pyupm_lsm303d.LSM303D_swiginit(self, _pyupm_lsm303d.new_LSM303D(bus, addr))
    __swig_destroy__ = _pyupm_lsm303d.delete_LSM303D

    def update(self):
        return _pyupm_lsm303d.LSM303D_update(self)

    def getMagnetometer(self, *args):
        return _pyupm_lsm303d.LSM303D_getMagnetometer(self, *args)

    def getAccelerometer(self, *args):
        return _pyupm_lsm303d.LSM303D_getAccelerometer(self, *args)

    def getAcceleration(self):
        return _pyupm_lsm303d.LSM303D_getAcceleration(self)

    def getTemperature(self):
        return _pyupm_lsm303d.LSM303D_getTemperature(self)

    def init(self, res):
        return _pyupm_lsm303d.LSM303D_init(self, res)

    def setAccelerometerFullScale(self, fs):
        return _pyupm_lsm303d.LSM303D_setAccelerometerFullScale(self, fs)

    def setMagnetometerFullScale(self, fs):
        return _pyupm_lsm303d.LSM303D_setMagnetometerFullScale(self, fs)

    def setAccelerometerODR(self, odr):
        return _pyupm_lsm303d.LSM303D_setAccelerometerODR(self, odr)

    def setMagnetometerODR(self, odr):
        return _pyupm_lsm303d.LSM303D_setMagnetometerODR(self, odr)

# Register LSM303D in _pyupm_lsm303d:
_pyupm_lsm303d.LSM303D_swigregister(LSM303D)



