# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# 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):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '_pyupm_lsm303d')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_lsm303d')
    _pyupm_lsm303d = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_pyupm_lsm303d', [dirname(__file__)])
        except ImportError:
            import _pyupm_lsm303d
            return _pyupm_lsm303d
        try:
            _mod = imp.load_module('_pyupm_lsm303d', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_lsm303d = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lsm303d
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


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,)

try:
    _object = object
    _newclass = 1
except __builtin__.Exception:
    class _object:
        pass
    _newclass = 0

import upm.pyupm_interfaces

def getVersion():
    return _pyupm_lsm303d.getVersion()
getVersion = _pyupm_lsm303d.getVersion
class SwigPyIterator(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name)

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

    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
SwigPyIterator_swigregister = _pyupm_lsm303d.SwigPyIterator_swigregister
SwigPyIterator_swigregister(SwigPyIterator)

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

    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):
        this = _pyupm_lsm303d.new_intVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    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
    __del__ = lambda self: None
intVector_swigregister = _pyupm_lsm303d.intVector_swigregister
intVector_swigregister(intVector)

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

    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):
        this = _pyupm_lsm303d.new_int16Vector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    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
    __del__ = lambda self: None
int16Vector_swigregister = _pyupm_lsm303d.int16Vector_swigregister
int16Vector_swigregister(int16Vector)

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

    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):
        this = _pyupm_lsm303d.new_floatVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    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
    __del__ = lambda self: None
floatVector_swigregister = _pyupm_lsm303d.floatVector_swigregister
floatVector_swigregister(floatVector)

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

    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):
        this = _pyupm_lsm303d.new_doubleVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    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
    __del__ = lambda self: None
doubleVector_swigregister = _pyupm_lsm303d.doubleVector_swigregister
doubleVector_swigregister(doubleVector)

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

    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):
        this = _pyupm_lsm303d.new_byteVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    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
    __del__ = lambda self: None
byteVector_swigregister = _pyupm_lsm303d.byteVector_swigregister
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):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LSM303D, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, LSM303D, name)
    __repr__ = _swig_repr

    def __init__(self, bus=0, addr=0x1e):
        this = _pyupm_lsm303d.new_LSM303D(bus, addr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_lsm303d.delete_LSM303D
    __del__ = lambda self: None

    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)
LSM303D_swigregister = _pyupm_lsm303d.LSM303D_swigregister
LSM303D_swigregister(LSM303D)

# This file is compatible with both classic and new-style classes.


