# 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_mpu9150')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_mpu9150')
    _pyupm_mpu9150 = 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_mpu9150', [dirname(__file__)])
        except ImportError:
            import _pyupm_mpu9150
            return _pyupm_mpu9150
        try:
            _mod = imp.load_module('_pyupm_mpu9150', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_mpu9150 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_mpu9150
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_mpu9150.getVersion()
getVersion = _pyupm_mpu9150.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_mpu9150.delete_SwigPyIterator
    __del__ = lambda self: None

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

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

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

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

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

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

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

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

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

    def advance(self, n):
        return _pyupm_mpu9150.SwigPyIterator_advance(self, n)

    def __eq__(self, x):
        return _pyupm_mpu9150.SwigPyIterator___eq__(self, x)

    def __ne__(self, x):
        return _pyupm_mpu9150.SwigPyIterator___ne__(self, x)

    def __iadd__(self, n):
        return _pyupm_mpu9150.SwigPyIterator___iadd__(self, n)

    def __isub__(self, n):
        return _pyupm_mpu9150.SwigPyIterator___isub__(self, n)

    def __add__(self, n):
        return _pyupm_mpu9150.SwigPyIterator___add__(self, n)

    def __sub__(self, *args):
        return _pyupm_mpu9150.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self
SwigPyIterator_swigregister = _pyupm_mpu9150.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_mpu9150.intVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_mpu9150.intVector___nonzero__(self)

    def __bool__(self):
        return _pyupm_mpu9150.intVector___bool__(self)

    def __len__(self):
        return _pyupm_mpu9150.intVector___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_mpu9150.intVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_mpu9150.intVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_mpu9150.intVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_mpu9150.intVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_mpu9150.intVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_mpu9150.intVector___setitem__(self, *args)

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __init__(self, *args):
        this = _pyupm_mpu9150.new_intVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

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

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

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

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

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

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

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

    def capacity(self):
        return _pyupm_mpu9150.intVector_capacity(self)
    __swig_destroy__ = _pyupm_mpu9150.delete_intVector
    __del__ = lambda self: None
intVector_swigregister = _pyupm_mpu9150.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_mpu9150.int16Vector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_mpu9150.int16Vector___nonzero__(self)

    def __bool__(self):
        return _pyupm_mpu9150.int16Vector___bool__(self)

    def __len__(self):
        return _pyupm_mpu9150.int16Vector___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_mpu9150.int16Vector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_mpu9150.int16Vector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_mpu9150.int16Vector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_mpu9150.int16Vector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_mpu9150.int16Vector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_mpu9150.int16Vector___setitem__(self, *args)

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __init__(self, *args):
        this = _pyupm_mpu9150.new_int16Vector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

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

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

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

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

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

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

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

    def capacity(self):
        return _pyupm_mpu9150.int16Vector_capacity(self)
    __swig_destroy__ = _pyupm_mpu9150.delete_int16Vector
    __del__ = lambda self: None
int16Vector_swigregister = _pyupm_mpu9150.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_mpu9150.floatVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_mpu9150.floatVector___nonzero__(self)

    def __bool__(self):
        return _pyupm_mpu9150.floatVector___bool__(self)

    def __len__(self):
        return _pyupm_mpu9150.floatVector___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_mpu9150.floatVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_mpu9150.floatVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_mpu9150.floatVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_mpu9150.floatVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_mpu9150.floatVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_mpu9150.floatVector___setitem__(self, *args)

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __init__(self, *args):
        this = _pyupm_mpu9150.new_floatVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

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

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

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

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

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

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

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

    def capacity(self):
        return _pyupm_mpu9150.floatVector_capacity(self)
    __swig_destroy__ = _pyupm_mpu9150.delete_floatVector
    __del__ = lambda self: None
floatVector_swigregister = _pyupm_mpu9150.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_mpu9150.doubleVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_mpu9150.doubleVector___nonzero__(self)

    def __bool__(self):
        return _pyupm_mpu9150.doubleVector___bool__(self)

    def __len__(self):
        return _pyupm_mpu9150.doubleVector___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_mpu9150.doubleVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_mpu9150.doubleVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_mpu9150.doubleVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_mpu9150.doubleVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_mpu9150.doubleVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_mpu9150.doubleVector___setitem__(self, *args)

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __init__(self, *args):
        this = _pyupm_mpu9150.new_doubleVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

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

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

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

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

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

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

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

    def capacity(self):
        return _pyupm_mpu9150.doubleVector_capacity(self)
    __swig_destroy__ = _pyupm_mpu9150.delete_doubleVector
    __del__ = lambda self: None
doubleVector_swigregister = _pyupm_mpu9150.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_mpu9150.byteVector_iterator(self)
    def __iter__(self):
        return self.iterator()

    def __nonzero__(self):
        return _pyupm_mpu9150.byteVector___nonzero__(self)

    def __bool__(self):
        return _pyupm_mpu9150.byteVector___bool__(self)

    def __len__(self):
        return _pyupm_mpu9150.byteVector___len__(self)

    def __getslice__(self, i, j):
        return _pyupm_mpu9150.byteVector___getslice__(self, i, j)

    def __setslice__(self, *args):
        return _pyupm_mpu9150.byteVector___setslice__(self, *args)

    def __delslice__(self, i, j):
        return _pyupm_mpu9150.byteVector___delslice__(self, i, j)

    def __delitem__(self, *args):
        return _pyupm_mpu9150.byteVector___delitem__(self, *args)

    def __getitem__(self, *args):
        return _pyupm_mpu9150.byteVector___getitem__(self, *args)

    def __setitem__(self, *args):
        return _pyupm_mpu9150.byteVector___setitem__(self, *args)

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __init__(self, *args):
        this = _pyupm_mpu9150.new_byteVector(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

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

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

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

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

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

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

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

    def capacity(self):
        return _pyupm_mpu9150.byteVector_capacity(self)
    __swig_destroy__ = _pyupm_mpu9150.delete_byteVector
    __del__ = lambda self: None
byteVector_swigregister = _pyupm_mpu9150.byteVector_swigregister
byteVector_swigregister(byteVector)


def new_floatp():
    return _pyupm_mpu9150.new_floatp()
new_floatp = _pyupm_mpu9150.new_floatp

def copy_floatp(value):
    return _pyupm_mpu9150.copy_floatp(value)
copy_floatp = _pyupm_mpu9150.copy_floatp

def delete_floatp(obj):
    return _pyupm_mpu9150.delete_floatp(obj)
delete_floatp = _pyupm_mpu9150.delete_floatp

def floatp_assign(obj, value):
    return _pyupm_mpu9150.floatp_assign(obj, value)
floatp_assign = _pyupm_mpu9150.floatp_assign

def floatp_value(obj):
    return _pyupm_mpu9150.floatp_value(obj)
floatp_value = _pyupm_mpu9150.floatp_value
AK8975_I2C_BUS = _pyupm_mpu9150.AK8975_I2C_BUS
AK8975_DEFAULT_I2C_ADDR = _pyupm_mpu9150.AK8975_DEFAULT_I2C_ADDR
class AK8975(upm.pyupm_interfaces.iMagnetometer):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iMagnetometer]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, AK8975, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iMagnetometer]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, AK8975, name)
    __repr__ = _swig_repr
    REG_WIA = _pyupm_mpu9150.AK8975_REG_WIA
    REG_INFO = _pyupm_mpu9150.AK8975_REG_INFO
    REG_ST1 = _pyupm_mpu9150.AK8975_REG_ST1
    REG_HXL = _pyupm_mpu9150.AK8975_REG_HXL
    REG_HXH = _pyupm_mpu9150.AK8975_REG_HXH
    REG_HYL = _pyupm_mpu9150.AK8975_REG_HYL
    REG_HYH = _pyupm_mpu9150.AK8975_REG_HYH
    REG_HZL = _pyupm_mpu9150.AK8975_REG_HZL
    REG_HZH = _pyupm_mpu9150.AK8975_REG_HZH
    REG_ST2 = _pyupm_mpu9150.AK8975_REG_ST2
    REG_CNTL = _pyupm_mpu9150.AK8975_REG_CNTL
    REG_ASTC = _pyupm_mpu9150.AK8975_REG_ASTC
    REG_ASAX = _pyupm_mpu9150.AK8975_REG_ASAX
    REG_ASAY = _pyupm_mpu9150.AK8975_REG_ASAY
    REG_ASAZ = _pyupm_mpu9150.AK8975_REG_ASAZ
    ST1_DRDY = _pyupm_mpu9150.AK8975_ST1_DRDY
    ST2_DERR = _pyupm_mpu9150.AK8975_ST2_DERR
    ST2_HOFL = _pyupm_mpu9150.AK8975_ST2_HOFL
    CNTL_PWRDWN = _pyupm_mpu9150.AK8975_CNTL_PWRDWN
    CNTL_MEASURE = _pyupm_mpu9150.AK8975_CNTL_MEASURE
    CNTL_SELFTEST = _pyupm_mpu9150.AK8975_CNTL_SELFTEST
    CNTL_FUSE_ACCESS = _pyupm_mpu9150.AK8975_CNTL_FUSE_ACCESS
    ASTC_SELF = _pyupm_mpu9150.AK8975_ASTC_SELF

    def __init__(self, bus=0, address=0x0c):
        this = _pyupm_mpu9150.new_AK8975(bus, address)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mpu9150.delete_AK8975
    __del__ = lambda self: None

    def init(self):
        return _pyupm_mpu9150.AK8975_init(self)

    def setMode(self, mode):
        return _pyupm_mpu9150.AK8975_setMode(self, mode)

    def isReady(self):
        return _pyupm_mpu9150.AK8975_isReady(self)

    def waitforDeviceReady(self):
        return _pyupm_mpu9150.AK8975_waitforDeviceReady(self)

    def update(self, selfTest=False):
        return _pyupm_mpu9150.AK8975_update(self, selfTest)

    def selfTest(self):
        return _pyupm_mpu9150.AK8975_selfTest(self)

    def getMagnetometer(self, *args):
        return _pyupm_mpu9150.AK8975_getMagnetometer(self, *args)
AK8975_swigregister = _pyupm_mpu9150.AK8975_swigregister
AK8975_swigregister(AK8975)

MPU60X0_I2C_BUS = _pyupm_mpu9150.MPU60X0_I2C_BUS
MPU60X0_DEFAULT_I2C_ADDR = _pyupm_mpu9150.MPU60X0_DEFAULT_I2C_ADDR
class MPU60X0(upm.pyupm_interfaces.iAcceleration, upm.pyupm_interfaces.iGyroscope):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration, upm.pyupm_interfaces.iGyroscope]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MPU60X0, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration, upm.pyupm_interfaces.iGyroscope]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, MPU60X0, name)
    __repr__ = _swig_repr
    REG_SELF_TEST_X = _pyupm_mpu9150.MPU60X0_REG_SELF_TEST_X
    REG_SELF_TEST_Y = _pyupm_mpu9150.MPU60X0_REG_SELF_TEST_Y
    REG_SELF_TEST_Z = _pyupm_mpu9150.MPU60X0_REG_SELF_TEST_Z
    REG_SELF_TEST_A = _pyupm_mpu9150.MPU60X0_REG_SELF_TEST_A
    REG_SMPLRT_DIV = _pyupm_mpu9150.MPU60X0_REG_SMPLRT_DIV
    REG_CONFIG = _pyupm_mpu9150.MPU60X0_REG_CONFIG
    REG_GYRO_CONFIG = _pyupm_mpu9150.MPU60X0_REG_GYRO_CONFIG
    REG_ACCEL_CONFIG = _pyupm_mpu9150.MPU60X0_REG_ACCEL_CONFIG
    REG_FF_THR = _pyupm_mpu9150.MPU60X0_REG_FF_THR
    REG_FF_DUR = _pyupm_mpu9150.MPU60X0_REG_FF_DUR
    REG_MOT_THR = _pyupm_mpu9150.MPU60X0_REG_MOT_THR
    REG_MOT_DUR = _pyupm_mpu9150.MPU60X0_REG_MOT_DUR
    REG_ZRMOT_THR = _pyupm_mpu9150.MPU60X0_REG_ZRMOT_THR
    REG_ZRMOT_DUR = _pyupm_mpu9150.MPU60X0_REG_ZRMOT_DUR
    REG_FIFO_EN = _pyupm_mpu9150.MPU60X0_REG_FIFO_EN
    REG_I2C_MST_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_MST_CTRL
    REG_I2C_SLV0_ADDR = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV0_ADDR
    REG_I2C_SLV0_REG = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV0_REG
    REG_I2C_SLV0_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV0_CTRL
    REG_I2C_SLV1_ADDR = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV1_ADDR
    REG_I2C_SLV1_REG = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV1_REG
    REG_I2C_SLV1_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV1_CTRL
    REG_I2C_SLV2_ADDR = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV2_ADDR
    REG_I2C_SLV2_REG = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV2_REG
    REG_I2C_SLV2_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV2_CTRL
    REG_I2C_SLV3_ADDR = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV3_ADDR
    REG_I2C_SLV3_REG = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV3_REG
    REG_I2C_SLV3_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV3_CTRL
    REG_I2C_SLV4_ADDR = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV4_ADDR
    REG_I2C_SLV4_REG = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV4_REG
    REG_I2C_SLV4_DO = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV4_DO
    REG_I2C_SLV4_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV4_CTRL
    REG_I2C_SLV4_DI = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV4_DI
    REG_I2C_MST_STATUS = _pyupm_mpu9150.MPU60X0_REG_I2C_MST_STATUS
    REG_INT_PIN_CFG = _pyupm_mpu9150.MPU60X0_REG_INT_PIN_CFG
    REG_INT_ENABLE = _pyupm_mpu9150.MPU60X0_REG_INT_ENABLE
    REG_INT_STATUS = _pyupm_mpu9150.MPU60X0_REG_INT_STATUS
    REG_ACCEL_XOUT_H = _pyupm_mpu9150.MPU60X0_REG_ACCEL_XOUT_H
    REG_ACCEL_XOUT_L = _pyupm_mpu9150.MPU60X0_REG_ACCEL_XOUT_L
    REG_ACCEL_YOUT_H = _pyupm_mpu9150.MPU60X0_REG_ACCEL_YOUT_H
    REG_ACCEL_YOUT_L = _pyupm_mpu9150.MPU60X0_REG_ACCEL_YOUT_L
    REG_ACCEL_ZOUT_H = _pyupm_mpu9150.MPU60X0_REG_ACCEL_ZOUT_H
    REG_ACCEL_ZOUT_L = _pyupm_mpu9150.MPU60X0_REG_ACCEL_ZOUT_L
    REG_TEMP_OUT_H = _pyupm_mpu9150.MPU60X0_REG_TEMP_OUT_H
    REG_TEMP_OUT_L = _pyupm_mpu9150.MPU60X0_REG_TEMP_OUT_L
    REG_GYRO_XOUT_H = _pyupm_mpu9150.MPU60X0_REG_GYRO_XOUT_H
    REG_GYRO_XOUT_L = _pyupm_mpu9150.MPU60X0_REG_GYRO_XOUT_L
    REG_GYRO_YOUT_H = _pyupm_mpu9150.MPU60X0_REG_GYRO_YOUT_H
    REG_GYRO_YOUT_L = _pyupm_mpu9150.MPU60X0_REG_GYRO_YOUT_L
    REG_GYRO_ZOUT_H = _pyupm_mpu9150.MPU60X0_REG_GYRO_ZOUT_H
    REG_GYRO_ZOUT_L = _pyupm_mpu9150.MPU60X0_REG_GYRO_ZOUT_L
    REG_EXT_SENS_DATA_00 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_00
    REG_EXT_SENS_DATA_01 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_01
    REG_EXT_SENS_DATA_02 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_02
    REG_EXT_SENS_DATA_03 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_03
    REG_EXT_SENS_DATA_04 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_04
    REG_EXT_SENS_DATA_05 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_05
    REG_EXT_SENS_DATA_06 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_06
    REG_EXT_SENS_DATA_07 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_07
    REG_EXT_SENS_DATA_08 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_08
    REG_EXT_SENS_DATA_09 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_09
    REG_EXT_SENS_DATA_10 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_10
    REG_EXT_SENS_DATA_11 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_11
    REG_EXT_SENS_DATA_12 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_12
    REG_EXT_SENS_DATA_13 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_13
    REG_EXT_SENS_DATA_14 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_14
    REG_EXT_SENS_DATA_15 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_15
    REG_EXT_SENS_DATA_16 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_16
    REG_EXT_SENS_DATA_17 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_17
    REG_EXT_SENS_DATA_18 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_18
    REG_EXT_SENS_DATA_19 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_19
    REG_EXT_SENS_DATA_20 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_20
    REG_EXT_SENS_DATA_21 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_21
    REG_EXT_SENS_DATA_22 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_22
    REG_EXT_SENS_DATA_23 = _pyupm_mpu9150.MPU60X0_REG_EXT_SENS_DATA_23
    REG_MOT_DETECT_STATUS = _pyupm_mpu9150.MPU60X0_REG_MOT_DETECT_STATUS
    REG_I2C_SLV0_DO = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV0_DO
    REG_I2C_SLV1_DO = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV1_DO
    REG_I2C_SLV2_DO = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV2_DO
    REG_I2C_SLV3_DO = _pyupm_mpu9150.MPU60X0_REG_I2C_SLV3_DO
    REG_I2C_MST_DELAY_CTRL = _pyupm_mpu9150.MPU60X0_REG_I2C_MST_DELAY_CTRL
    REG_SIGNAL_PATH_RESET = _pyupm_mpu9150.MPU60X0_REG_SIGNAL_PATH_RESET
    REG_MOT_DETECT_CTRL = _pyupm_mpu9150.MPU60X0_REG_MOT_DETECT_CTRL
    REG_USER_CTRL = _pyupm_mpu9150.MPU60X0_REG_USER_CTRL
    REG_PWR_MGMT_1 = _pyupm_mpu9150.MPU60X0_REG_PWR_MGMT_1
    REG_PWR_MGMT_2 = _pyupm_mpu9150.MPU60X0_REG_PWR_MGMT_2
    REG_FIFO_COUNTH = _pyupm_mpu9150.MPU60X0_REG_FIFO_COUNTH
    REG_FIFO_COUNTL = _pyupm_mpu9150.MPU60X0_REG_FIFO_COUNTL
    REG_FIFO_R_W = _pyupm_mpu9150.MPU60X0_REG_FIFO_R_W
    REG_WHO_AM_I = _pyupm_mpu9150.MPU60X0_REG_WHO_AM_I
    CONFIG_DLPF_CFG0 = _pyupm_mpu9150.MPU60X0_CONFIG_DLPF_CFG0
    CONFIG_DLPF_CFG1 = _pyupm_mpu9150.MPU60X0_CONFIG_DLPF_CFG1
    CONFIG_DLPF_CFG2 = _pyupm_mpu9150.MPU60X0_CONFIG_DLPF_CFG2
    _CONFIG_DLPF_SHIFT = _pyupm_mpu9150.MPU60X0__CONFIG_DLPF_SHIFT
    _CONFIG_DLPF_MASK = _pyupm_mpu9150.MPU60X0__CONFIG_DLPF_MASK
    CONFIG_EXT_SYNC_SET0 = _pyupm_mpu9150.MPU60X0_CONFIG_EXT_SYNC_SET0
    CONFIG_EXT_SYNC_SET1 = _pyupm_mpu9150.MPU60X0_CONFIG_EXT_SYNC_SET1
    CONFIG_EXT_SYNC_SET2 = _pyupm_mpu9150.MPU60X0_CONFIG_EXT_SYNC_SET2
    _CONFIG_EXT_SYNC_SET_SHIFT = _pyupm_mpu9150.MPU60X0__CONFIG_EXT_SYNC_SET_SHIFT
    _CONFIG_EXT_SYNC_SET_MASK = _pyupm_mpu9150.MPU60X0__CONFIG_EXT_SYNC_SET_MASK
    DLPF_260_256 = _pyupm_mpu9150.MPU60X0_DLPF_260_256
    DLPF_184_188 = _pyupm_mpu9150.MPU60X0_DLPF_184_188
    DLPF_94_98 = _pyupm_mpu9150.MPU60X0_DLPF_94_98
    DLPF_44_42 = _pyupm_mpu9150.MPU60X0_DLPF_44_42
    DLPF_21_20 = _pyupm_mpu9150.MPU60X0_DLPF_21_20
    DLPF_10_10 = _pyupm_mpu9150.MPU60X0_DLPF_10_10
    DLPF_5_5 = _pyupm_mpu9150.MPU60X0_DLPF_5_5
    DLPF_RESERVED = _pyupm_mpu9150.MPU60X0_DLPF_RESERVED
    EXT_SYNC_DISABLED = _pyupm_mpu9150.MPU60X0_EXT_SYNC_DISABLED
    EXT_SYNC_TEMP_OUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_TEMP_OUT
    EXT_SYNC_GYRO_XOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_GYRO_XOUT
    EXT_SYNC_GYRO_YOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_GYRO_YOUT
    EXT_SYNC_GYRO_ZOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_GYRO_ZOUT
    EXT_SYNC_ACCEL_XOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_ACCEL_XOUT
    EXT_SYNC_ACCEL_YOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_ACCEL_YOUT
    EXT_SYNC_ACCEL_ZOUT = _pyupm_mpu9150.MPU60X0_EXT_SYNC_ACCEL_ZOUT
    FS_SEL0 = _pyupm_mpu9150.MPU60X0_FS_SEL0
    FS_SEL1 = _pyupm_mpu9150.MPU60X0_FS_SEL1
    _FS_SEL_SHIFT = _pyupm_mpu9150.MPU60X0__FS_SEL_SHIFT
    _FS_SEL_MASK = _pyupm_mpu9150.MPU60X0__FS_SEL_MASK
    ZG_ST = _pyupm_mpu9150.MPU60X0_ZG_ST
    YG_ST = _pyupm_mpu9150.MPU60X0_YG_ST
    XG_ST = _pyupm_mpu9150.MPU60X0_XG_ST
    FS_250 = _pyupm_mpu9150.MPU60X0_FS_250
    FS_500 = _pyupm_mpu9150.MPU60X0_FS_500
    FS_1000 = _pyupm_mpu9150.MPU60X0_FS_1000
    FS_2000 = _pyupm_mpu9150.MPU60X0_FS_2000
    AFS_SEL0 = _pyupm_mpu9150.MPU60X0_AFS_SEL0
    AFS_SEL1 = _pyupm_mpu9150.MPU60X0_AFS_SEL1
    _AFS_SEL_SHIFT = _pyupm_mpu9150.MPU60X0__AFS_SEL_SHIFT
    _AFS_SEL_MASK = _pyupm_mpu9150.MPU60X0__AFS_SEL_MASK
    ZA_ST = _pyupm_mpu9150.MPU60X0_ZA_ST
    YA_ST = _pyupm_mpu9150.MPU60X0_YA_ST
    XA_ST = _pyupm_mpu9150.MPU60X0_XA_ST
    AFS_2 = _pyupm_mpu9150.MPU60X0_AFS_2
    AFS_4 = _pyupm_mpu9150.MPU60X0_AFS_4
    AFS_8 = _pyupm_mpu9150.MPU60X0_AFS_8
    AFS_16 = _pyupm_mpu9150.MPU60X0_AFS_16
    SLV0_FIFO_EN = _pyupm_mpu9150.MPU60X0_SLV0_FIFO_EN
    SLV1_FIFO_EN = _pyupm_mpu9150.MPU60X0_SLV1_FIFO_EN
    SLV2_FIFO_EN = _pyupm_mpu9150.MPU60X0_SLV2_FIFO_EN
    ACCEL_FIFO_EN = _pyupm_mpu9150.MPU60X0_ACCEL_FIFO_EN
    ZG_FIFO_EN = _pyupm_mpu9150.MPU60X0_ZG_FIFO_EN
    YG_FIFO_EN = _pyupm_mpu9150.MPU60X0_YG_FIFO_EN
    XG_FIFO_EN = _pyupm_mpu9150.MPU60X0_XG_FIFO_EN
    TEMP_FIFO_EN = _pyupm_mpu9150.MPU60X0_TEMP_FIFO_EN
    I2C_MST_CLK0 = _pyupm_mpu9150.MPU60X0_I2C_MST_CLK0
    I2C_MST_CLK1 = _pyupm_mpu9150.MPU60X0_I2C_MST_CLK1
    I2C_MST_CLK2 = _pyupm_mpu9150.MPU60X0_I2C_MST_CLK2
    I2C_MST_CLK3 = _pyupm_mpu9150.MPU60X0_I2C_MST_CLK3
    _I2C_MST_CLK_SHIFT = _pyupm_mpu9150.MPU60X0__I2C_MST_CLK_SHIFT
    _I2C_MST_CLK_MASK = _pyupm_mpu9150.MPU60X0__I2C_MST_CLK_MASK
    I2C_MST_P_NSR = _pyupm_mpu9150.MPU60X0_I2C_MST_P_NSR
    SLV_3_FIFO_EN = _pyupm_mpu9150.MPU60X0_SLV_3_FIFO_EN
    WAIT_FOR_ES = _pyupm_mpu9150.MPU60X0_WAIT_FOR_ES
    MULT_MST_EN = _pyupm_mpu9150.MPU60X0_MULT_MST_EN
    MST_CLK_348 = _pyupm_mpu9150.MPU60X0_MST_CLK_348
    MST_CLK_333 = _pyupm_mpu9150.MPU60X0_MST_CLK_333
    MST_CLK_320 = _pyupm_mpu9150.MPU60X0_MST_CLK_320
    MST_CLK_308 = _pyupm_mpu9150.MPU60X0_MST_CLK_308
    MST_CLK_296 = _pyupm_mpu9150.MPU60X0_MST_CLK_296
    MST_CLK_286 = _pyupm_mpu9150.MPU60X0_MST_CLK_286
    MST_CLK_276 = _pyupm_mpu9150.MPU60X0_MST_CLK_276
    MST_CLK_267 = _pyupm_mpu9150.MPU60X0_MST_CLK_267
    MST_CLK_258 = _pyupm_mpu9150.MPU60X0_MST_CLK_258
    MST_CLK_500 = _pyupm_mpu9150.MPU60X0_MST_CLK_500
    MST_CLK_471 = _pyupm_mpu9150.MPU60X0_MST_CLK_471
    MST_CLK_444 = _pyupm_mpu9150.MPU60X0_MST_CLK_444
    MST_CLK_421 = _pyupm_mpu9150.MPU60X0_MST_CLK_421
    MST_CLK_400 = _pyupm_mpu9150.MPU60X0_MST_CLK_400
    MST_CLK_381 = _pyupm_mpu9150.MPU60X0_MST_CLK_381
    MST_CLK_364 = _pyupm_mpu9150.MPU60X0_MST_CLK_364
    I2C_SLV_ADDR0 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR0
    I2C_SLV_ADDR1 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR1
    I2C_SLV_ADDR2 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR2
    I2C_SLV_ADDR3 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR3
    I2C_SLV_ADDR4 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR4
    I2C_SLV_ADDR5 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR5
    I2C_SLV_ADDR6 = _pyupm_mpu9150.MPU60X0_I2C_SLV_ADDR6
    _I2C_SLV_ADDR_SHIFT = _pyupm_mpu9150.MPU60X0__I2C_SLV_ADDR_SHIFT
    _I2C_SLV_ADDR_MASK = _pyupm_mpu9150.MPU60X0__I2C_SLV_ADDR_MASK
    I2C_SLV_RW = _pyupm_mpu9150.MPU60X0_I2C_SLV_RW
    I2C_SLV_LEN0 = _pyupm_mpu9150.MPU60X0_I2C_SLV_LEN0
    I2C_SLV_LEN1 = _pyupm_mpu9150.MPU60X0_I2C_SLV_LEN1
    I2C_SLV_LEN2 = _pyupm_mpu9150.MPU60X0_I2C_SLV_LEN2
    I2C_SLV_LEN3 = _pyupm_mpu9150.MPU60X0_I2C_SLV_LEN3
    _I2C_SLV_LEN_SHIFT = _pyupm_mpu9150.MPU60X0__I2C_SLV_LEN_SHIFT
    _I2C_SLV_LEN_MASK = _pyupm_mpu9150.MPU60X0__I2C_SLV_LEN_MASK
    I2C_SLV_GRP = _pyupm_mpu9150.MPU60X0_I2C_SLV_GRP
    I2C_SLV_REG_DIS = _pyupm_mpu9150.MPU60X0_I2C_SLV_REG_DIS
    I2C_SLV_BYTE_SW = _pyupm_mpu9150.MPU60X0_I2C_SLV_BYTE_SW
    I2C_SLV_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV_EN
    I2C_MST_DLY0 = _pyupm_mpu9150.MPU60X0_I2C_MST_DLY0
    I2C_MST_DLY1 = _pyupm_mpu9150.MPU60X0_I2C_MST_DLY1
    I2C_MST_DLY2 = _pyupm_mpu9150.MPU60X0_I2C_MST_DLY2
    I2C_MST_DLY3 = _pyupm_mpu9150.MPU60X0_I2C_MST_DLY3
    I2C_MST_DLY4 = _pyupm_mpu9150.MPU60X0_I2C_MST_DLY4
    _I2C_MST_DLY_SHIFT = _pyupm_mpu9150.MPU60X0__I2C_MST_DLY_SHIFT
    _I2C_MST_DLY_MASK = _pyupm_mpu9150.MPU60X0__I2C_MST_DLY_MASK
    I2C_SLV4_REG_DIS = _pyupm_mpu9150.MPU60X0_I2C_SLV4_REG_DIS
    I2C_SLV4_INT_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV4_INT_EN
    I2C_SLV4_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV4_EN
    I2C_SLV0_NACK = _pyupm_mpu9150.MPU60X0_I2C_SLV0_NACK
    I2C_SLV1_NACK = _pyupm_mpu9150.MPU60X0_I2C_SLV1_NACK
    I2C_SLV2_NACK = _pyupm_mpu9150.MPU60X0_I2C_SLV2_NACK
    I2C_SLV3_NACK = _pyupm_mpu9150.MPU60X0_I2C_SLV3_NACK
    I2C_SLV4_NACK = _pyupm_mpu9150.MPU60X0_I2C_SLV4_NACK
    I2C_LOST_ARB = _pyupm_mpu9150.MPU60X0_I2C_LOST_ARB
    I2C_SLV4_DONE = _pyupm_mpu9150.MPU60X0_I2C_SLV4_DONE
    PASS_THROUGH = _pyupm_mpu9150.MPU60X0_PASS_THROUGH
    CLKOUT_EN = _pyupm_mpu9150.MPU60X0_CLKOUT_EN
    I2C_BYPASS_ENABLE = _pyupm_mpu9150.MPU60X0_I2C_BYPASS_ENABLE
    FSYNC_INT_EN = _pyupm_mpu9150.MPU60X0_FSYNC_INT_EN
    FSYNC_INT_LEVEL = _pyupm_mpu9150.MPU60X0_FSYNC_INT_LEVEL
    INT_RD_CLEAR = _pyupm_mpu9150.MPU60X0_INT_RD_CLEAR
    LATCH_INT_EN = _pyupm_mpu9150.MPU60X0_LATCH_INT_EN
    INT_OPEN = _pyupm_mpu9150.MPU60X0_INT_OPEN
    INT_LEVEL = _pyupm_mpu9150.MPU60X0_INT_LEVEL
    DATA_RDY_EN = _pyupm_mpu9150.MPU60X0_DATA_RDY_EN
    I2C_MST_INT_EN = _pyupm_mpu9150.MPU60X0_I2C_MST_INT_EN
    FIFO_OFLOW_EN = _pyupm_mpu9150.MPU60X0_FIFO_OFLOW_EN
    ZMOT_EN = _pyupm_mpu9150.MPU60X0_ZMOT_EN
    MOT_EN = _pyupm_mpu9150.MPU60X0_MOT_EN
    FF_EN = _pyupm_mpu9150.MPU60X0_FF_EN
    DATA_RDY_INT = _pyupm_mpu9150.MPU60X0_DATA_RDY_INT
    I2C_MST_INT = _pyupm_mpu9150.MPU60X0_I2C_MST_INT
    FIFO_OFLOW_INT = _pyupm_mpu9150.MPU60X0_FIFO_OFLOW_INT
    ZMOT_INT = _pyupm_mpu9150.MPU60X0_ZMOT_INT
    MOT_INT = _pyupm_mpu9150.MPU60X0_MOT_INT
    FF_INT = _pyupm_mpu9150.MPU60X0_FF_INT
    MOT_ZRMOT = _pyupm_mpu9150.MPU60X0_MOT_ZRMOT
    MOT_ZPOS = _pyupm_mpu9150.MPU60X0_MOT_ZPOS
    MOT_ZNEG = _pyupm_mpu9150.MPU60X0_MOT_ZNEG
    MOT_YPOS = _pyupm_mpu9150.MPU60X0_MOT_YPOS
    MOT_YNEG = _pyupm_mpu9150.MPU60X0_MOT_YNEG
    MOT_XPOS = _pyupm_mpu9150.MPU60X0_MOT_XPOS
    MOT_XNEG = _pyupm_mpu9150.MPU60X0_MOT_XNEG
    I2C_SLV0_DLY_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV0_DLY_EN
    I2C_SLV1_DLY_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV1_DLY_EN
    I2C_SLV2_DLY_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV2_DLY_EN
    I2C_SLV3_DLY_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV3_DLY_EN
    I2C_SLV4_DLY_EN = _pyupm_mpu9150.MPU60X0_I2C_SLV4_DLY_EN
    DELAY_ES_SHADOW = _pyupm_mpu9150.MPU60X0_DELAY_ES_SHADOW
    TEMP_RESET = _pyupm_mpu9150.MPU60X0_TEMP_RESET
    ACCEL_RESET = _pyupm_mpu9150.MPU60X0_ACCEL_RESET
    GYRO_RESET = _pyupm_mpu9150.MPU60X0_GYRO_RESET
    MOT_COUNT0 = _pyupm_mpu9150.MPU60X0_MOT_COUNT0
    MOT_COUNT1 = _pyupm_mpu9150.MPU60X0_MOT_COUNT1
    _MOT_COUNT_SHIFT = _pyupm_mpu9150.MPU60X0__MOT_COUNT_SHIFT
    _MOT_COUNT_MASK = _pyupm_mpu9150.MPU60X0__MOT_COUNT_MASK
    FF_COUNT0 = _pyupm_mpu9150.MPU60X0_FF_COUNT0
    FF_COUNT1 = _pyupm_mpu9150.MPU60X0_FF_COUNT1
    _FF_COUNT_SHIFT = _pyupm_mpu9150.MPU60X0__FF_COUNT_SHIFT
    _FF_COUNT_MASK = _pyupm_mpu9150.MPU60X0__FF_COUNT_MASK
    ACCEL_ON_DELAY0 = _pyupm_mpu9150.MPU60X0_ACCEL_ON_DELAY0
    ACCEL_ON_DELAY1 = _pyupm_mpu9150.MPU60X0_ACCEL_ON_DELAY1
    _ACCEL_ON_DELAY_SHIFT = _pyupm_mpu9150.MPU60X0__ACCEL_ON_DELAY_SHIFT
    _ACCEL_ON_DELAY_MASK = _pyupm_mpu9150.MPU60X0__ACCEL_ON_DELAY_MASK
    COUNT_0 = _pyupm_mpu9150.MPU60X0_COUNT_0
    COUNT_1 = _pyupm_mpu9150.MPU60X0_COUNT_1
    COUNT_2 = _pyupm_mpu9150.MPU60X0_COUNT_2
    COUNT_4 = _pyupm_mpu9150.MPU60X0_COUNT_4
    ON_DELAY_0 = _pyupm_mpu9150.MPU60X0_ON_DELAY_0
    ON_DELAY_1 = _pyupm_mpu9150.MPU60X0_ON_DELAY_1
    ON_DELAY_2 = _pyupm_mpu9150.MPU60X0_ON_DELAY_2
    ON_DELAY_3 = _pyupm_mpu9150.MPU60X0_ON_DELAY_3
    SIG_COND_RESET = _pyupm_mpu9150.MPU60X0_SIG_COND_RESET
    I2C_MST_RESET = _pyupm_mpu9150.MPU60X0_I2C_MST_RESET
    FIFO_RESET = _pyupm_mpu9150.MPU60X0_FIFO_RESET
    I2C_IF_DIS = _pyupm_mpu9150.MPU60X0_I2C_IF_DIS
    I2C_MST_EN = _pyupm_mpu9150.MPU60X0_I2C_MST_EN
    FIFO_EN = _pyupm_mpu9150.MPU60X0_FIFO_EN
    CLKSEL0 = _pyupm_mpu9150.MPU60X0_CLKSEL0
    CLKSEL1 = _pyupm_mpu9150.MPU60X0_CLKSEL1
    CLKSEL2 = _pyupm_mpu9150.MPU60X0_CLKSEL2
    _CLKSEL_SHIFT = _pyupm_mpu9150.MPU60X0__CLKSEL_SHIFT
    _CLKSEL_MASK = _pyupm_mpu9150.MPU60X0__CLKSEL_MASK
    TEMP_DIS = _pyupm_mpu9150.MPU60X0_TEMP_DIS
    PWR_CYCLE = _pyupm_mpu9150.MPU60X0_PWR_CYCLE
    PWR_SLEEP = _pyupm_mpu9150.MPU60X0_PWR_SLEEP
    DEVICE_RESET = _pyupm_mpu9150.MPU60X0_DEVICE_RESET
    INT_8MHZ = _pyupm_mpu9150.MPU60X0_INT_8MHZ
    PLL_XG = _pyupm_mpu9150.MPU60X0_PLL_XG
    PLL_YG = _pyupm_mpu9150.MPU60X0_PLL_YG
    PLL_ZG = _pyupm_mpu9150.MPU60X0_PLL_ZG
    PLL_EXT_32KHZ = _pyupm_mpu9150.MPU60X0_PLL_EXT_32KHZ
    PLL_EXT_19MHZ = _pyupm_mpu9150.MPU60X0_PLL_EXT_19MHZ
    CLK_STOP = _pyupm_mpu9150.MPU60X0_CLK_STOP
    STBY_ZG = _pyupm_mpu9150.MPU60X0_STBY_ZG
    STBY_YG = _pyupm_mpu9150.MPU60X0_STBY_YG
    STBY_XG = _pyupm_mpu9150.MPU60X0_STBY_XG
    STBY_ZA = _pyupm_mpu9150.MPU60X0_STBY_ZA
    STBY_YA = _pyupm_mpu9150.MPU60X0_STBY_YA
    STBY_XA = _pyupm_mpu9150.MPU60X0_STBY_XA
    LP_WAKE_CTRL0 = _pyupm_mpu9150.MPU60X0_LP_WAKE_CTRL0
    LP_WAKE_CTRL1 = _pyupm_mpu9150.MPU60X0_LP_WAKE_CTRL1
    _LP_WAKE_CTRL_SHIFT = _pyupm_mpu9150.MPU60X0__LP_WAKE_CTRL_SHIFT
    _LP_WAKE_CTRL_MASK = _pyupm_mpu9150.MPU60X0__LP_WAKE_CTRL_MASK
    LP_WAKE_1_25 = _pyupm_mpu9150.MPU60X0_LP_WAKE_1_25
    LP_WAKE_5 = _pyupm_mpu9150.MPU60X0_LP_WAKE_5
    LP_WAKE_20 = _pyupm_mpu9150.MPU60X0_LP_WAKE_20
    LP_WAKE_40 = _pyupm_mpu9150.MPU60X0_LP_WAKE_40

    def __init__(self, bus=0, address=0x68):
        this = _pyupm_mpu9150.new_MPU60X0(bus, address)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mpu9150.delete_MPU60X0
    __del__ = lambda self: None

    def init(self):
        return _pyupm_mpu9150.MPU60X0_init(self)

    def update(self):
        return _pyupm_mpu9150.MPU60X0_update(self)

    def readReg(self, reg):
        return _pyupm_mpu9150.MPU60X0_readReg(self, reg)

    def readRegs(self, reg, buffer, len):
        return _pyupm_mpu9150.MPU60X0_readRegs(self, reg, buffer, len)

    def writeReg(self, reg, val):
        return _pyupm_mpu9150.MPU60X0_writeReg(self, reg, val)

    def setSleep(self, enable):
        return _pyupm_mpu9150.MPU60X0_setSleep(self, enable)

    def setClockSource(self, clk):
        return _pyupm_mpu9150.MPU60X0_setClockSource(self, clk)

    def setGyroscopeScale(self, scale):
        return _pyupm_mpu9150.MPU60X0_setGyroscopeScale(self, scale)

    def setAccelerometerScale(self, scale):
        return _pyupm_mpu9150.MPU60X0_setAccelerometerScale(self, scale)

    def setDigitalLowPassFilter(self, dlp):
        return _pyupm_mpu9150.MPU60X0_setDigitalLowPassFilter(self, dlp)

    def setSampleRateDivider(self, div):
        return _pyupm_mpu9150.MPU60X0_setSampleRateDivider(self, div)

    def getSampleRateDivider(self):
        return _pyupm_mpu9150.MPU60X0_getSampleRateDivider(self)

    def getAccelerometer(self, x, y, z):
        return _pyupm_mpu9150.MPU60X0_getAccelerometer(self, x, y, z)

    def getAcceleration(self):
        return _pyupm_mpu9150.MPU60X0_getAcceleration(self)

    def getGyroscope(self, *args):
        return _pyupm_mpu9150.MPU60X0_getGyroscope(self, *args)

    def getTemperature(self):
        return _pyupm_mpu9150.MPU60X0_getTemperature(self)

    def enableTemperatureSensor(self, enable):
        return _pyupm_mpu9150.MPU60X0_enableTemperatureSensor(self, enable)

    def setExternalSync(self, val):
        return _pyupm_mpu9150.MPU60X0_setExternalSync(self, val)

    def enableI2CBypass(self, enable):
        return _pyupm_mpu9150.MPU60X0_enableI2CBypass(self, enable)

    def setMotionDetectionThreshold(self, thr):
        return _pyupm_mpu9150.MPU60X0_setMotionDetectionThreshold(self, thr)

    def getInterruptStatus(self):
        return _pyupm_mpu9150.MPU60X0_getInterruptStatus(self)

    def setInterruptEnables(self, enables):
        return _pyupm_mpu9150.MPU60X0_setInterruptEnables(self, enables)

    def getInterruptEnables(self):
        return _pyupm_mpu9150.MPU60X0_getInterruptEnables(self)

    def setInterruptPinConfig(self, cfg):
        return _pyupm_mpu9150.MPU60X0_setInterruptPinConfig(self, cfg)

    def getInterruptPinConfig(self):
        return _pyupm_mpu9150.MPU60X0_getInterruptPinConfig(self)

    def installISR(self, gpio, level, isr, arg):
        return _pyupm_mpu9150.MPU60X0_installISR(self, gpio, level, isr, arg)

    def uninstallISR(self):
        return _pyupm_mpu9150.MPU60X0_uninstallISR(self)

    def get_gpioIRQ(self):
        return _pyupm_mpu9150.MPU60X0_get_gpioIRQ(self)
MPU60X0_swigregister = _pyupm_mpu9150.MPU60X0_swigregister
MPU60X0_swigregister(MPU60X0)

MPU9150_I2C_BUS = _pyupm_mpu9150.MPU9150_I2C_BUS
MPU9150_DEFAULT_I2C_ADDR = _pyupm_mpu9150.MPU9150_DEFAULT_I2C_ADDR
class MPU9150(MPU60X0, upm.pyupm_interfaces.iMagnetometer):
    __swig_setmethods__ = {}
    for _s in [MPU60X0, upm.pyupm_interfaces.iMagnetometer]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MPU9150, name, value)
    __swig_getmethods__ = {}
    for _s in [MPU60X0, upm.pyupm_interfaces.iMagnetometer]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, MPU9150, name)
    __repr__ = _swig_repr

    def __init__(self, bus=0, address=0x68, magAddress=0x0c, enableAk8975=True):
        this = _pyupm_mpu9150.new_MPU9150(bus, address, magAddress, enableAk8975)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mpu9150.delete_MPU9150
    __del__ = lambda self: None

    def init(self):
        return _pyupm_mpu9150.MPU9150_init(self)

    def update(self):
        return _pyupm_mpu9150.MPU9150_update(self)

    def getMagnetometer(self, *args):
        return _pyupm_mpu9150.MPU9150_getMagnetometer(self, *args)
MPU9150_swigregister = _pyupm_mpu9150.MPU9150_swigregister
MPU9150_swigregister(MPU9150)

MPU9250_I2C_BUS = _pyupm_mpu9150.MPU9250_I2C_BUS
MPU9250_DEFAULT_I2C_ADDR = _pyupm_mpu9150.MPU9250_DEFAULT_I2C_ADDR
class MPU9250(MPU9150):
    __swig_setmethods__ = {}
    for _s in [MPU9150]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MPU9250, name, value)
    __swig_getmethods__ = {}
    for _s in [MPU9150]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, MPU9250, name)
    __repr__ = _swig_repr

    def __init__(self, bus=0, address=0x68, magAddress=0x0c, enableAk8975=True):
        this = _pyupm_mpu9150.new_MPU9250(bus, address, magAddress, enableAk8975)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mpu9150.delete_MPU9250
    __del__ = lambda self: None

    def getTemperature(self):
        return _pyupm_mpu9150.MPU9250_getTemperature(self)
MPU9250_swigregister = _pyupm_mpu9150.MPU9250_swigregister
MPU9250_swigregister(MPU9250)

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


