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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


def new_intp():
    return _pyupm_bmm150.new_intp()
new_intp = _pyupm_bmm150.new_intp

def copy_intp(value):
    return _pyupm_bmm150.copy_intp(value)
copy_intp = _pyupm_bmm150.copy_intp

def delete_intp(obj):
    return _pyupm_bmm150.delete_intp(obj)
delete_intp = _pyupm_bmm150.delete_intp

def intp_assign(obj, value):
    return _pyupm_bmm150.intp_assign(obj, value)
intp_assign = _pyupm_bmm150.intp_assign

def intp_value(obj):
    return _pyupm_bmm150.intp_value(obj)
intp_value = _pyupm_bmm150.intp_value

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

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

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

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

def floatp_value(obj):
    return _pyupm_bmm150.floatp_value(obj)
floatp_value = _pyupm_bmm150.floatp_value
BMM150_DEFAULT_I2C_BUS = _pyupm_bmm150.BMM150_DEFAULT_I2C_BUS
BMM150_DEFAULT_SPI_BUS = _pyupm_bmm150.BMM150_DEFAULT_SPI_BUS
BMM150_DEFAULT_ADDR = _pyupm_bmm150.BMM150_DEFAULT_ADDR
BMM150_DEFAULT_CHIPID = _pyupm_bmm150.BMM150_DEFAULT_CHIPID
BMM150_REG_CHIP_ID = _pyupm_bmm150.BMM150_REG_CHIP_ID
BMM150_REG_MAG_X_LSB = _pyupm_bmm150.BMM150_REG_MAG_X_LSB
BMM150_REG_MAG_X_MSB = _pyupm_bmm150.BMM150_REG_MAG_X_MSB
BMM150_REG_MAG_Y_LSB = _pyupm_bmm150.BMM150_REG_MAG_Y_LSB
BMM150_REG_MAG_Y_MSB = _pyupm_bmm150.BMM150_REG_MAG_Y_MSB
BMM150_REG_MAG_Z_LSB = _pyupm_bmm150.BMM150_REG_MAG_Z_LSB
BMM150_REG_MAG_Z_MSB = _pyupm_bmm150.BMM150_REG_MAG_Z_MSB
BMM150_REG_RHALL_LSB = _pyupm_bmm150.BMM150_REG_RHALL_LSB
BMM150_REG_RHALL_MSB = _pyupm_bmm150.BMM150_REG_RHALL_MSB
BMM150_REG_INT_STATUS = _pyupm_bmm150.BMM150_REG_INT_STATUS
BMM150_REG_POWER_CTRL = _pyupm_bmm150.BMM150_REG_POWER_CTRL
BMM150_REG_OPMODE = _pyupm_bmm150.BMM150_REG_OPMODE
BMM150_REG_INT_EN = _pyupm_bmm150.BMM150_REG_INT_EN
BMM150_REG_INT_CONFIG = _pyupm_bmm150.BMM150_REG_INT_CONFIG
BMM150_REG_LOW_THRES = _pyupm_bmm150.BMM150_REG_LOW_THRES
BMM150_REG_HIGH_THRES = _pyupm_bmm150.BMM150_REG_HIGH_THRES
BMM150_REG_REP_XY = _pyupm_bmm150.BMM150_REG_REP_XY
BMM150_REG_REP_Z = _pyupm_bmm150.BMM150_REG_REP_Z
BMM150_REG_TRIM_DIG_X1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_X1
BMM150_REG_TRIM_DIG_Y1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y1
BMM150_REG_TRIM_DIG_Z4_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_LSB
BMM150_REG_TRIM_DIG_Z4_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_MSB
BMM150_REG_TRIM_DIG_X2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_X2
BMM150_REG_TRIM_DIG_Y2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y2
BMM150_REG_TRIM_DIG_Z2_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_LSB
BMM150_REG_TRIM_DIG_Z2_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_MSB
BMM150_REG_TRIM_DIG_Z1_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_LSB
BMM150_REG_TRIM_DIG_Z1_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_MSB
BMM150_REG_TRIM_DIG_XYZ1_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_LSB
BMM150_REG_TRIM_DIG_XYZ1_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_MSB
BMM150_REG_TRIM_DIG_Z3_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_LSB
BMM150_REG_TRIM_DIG_Z3_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_MSB
BMM150_REG_TRIM_DIG_XY2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY2
BMM150_REG_TRIM_DIG_XY1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY1
_BMM150_MAG_XY_LSB_RESERVED_BITS = _pyupm_bmm150._BMM150_MAG_XY_LSB_RESERVED_BITS
BMM150_MAG_XY_LSB_SELFTEST_XY = _pyupm_bmm150.BMM150_MAG_XY_LSB_SELFTEST_XY
BMM150_MAG_XY_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB0
BMM150_MAG_XY_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB1
BMM150_MAG_XY_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB2
BMM150_MAG_XY_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB3
BMM150_MAG_XY_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB4
_BMM150_MAG_XY_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_MASK
_BMM150_MAG_XY_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_SHIFT
BMM150_MAG_Z_LSB_SELFTEST_Z = _pyupm_bmm150.BMM150_MAG_Z_LSB_SELFTEST_Z
BMM150_MAG_Z_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB0
BMM150_MAG_Z_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB1
BMM150_MAG_Z_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB2
BMM150_MAG_Z_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB3
BMM150_MAG_Z_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB4
BMM150_MAG_Z_LSB_LSB5 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB5
BMM150_MAG_Z_LSB_LSB6 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB6
_BMM150_MAG_Z_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_MASK
_BMM150_MAG_Z_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_SHIFT
_BMM150_MAG_RHALL_LSB_RESERVED_BITS = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_RESERVED_BITS
BMM150_MAG_RHALL_LSB_DATA_READY_STATUS = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_DATA_READY_STATUS
BMM150_MAG_RHALL_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB0
BMM150_MAG_RHALL_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB1
BMM150_MAG_RHALL_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB2
BMM150_MAG_RHALL_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB3
BMM150_MAG_RHALL_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB4
BMM150_MAG_RHALL_LSB_LSB5 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB5
_BMM150_MAG_RHALL_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_MASK
_BMM150_MAG_RHALL_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_SHIFT
BMM150_INT_STATUS_LOW_INT_X = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_X
BMM150_INT_STATUS_LOW_INT_Y = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Y
BMM150_INT_STATUS_LOW_INT_Z = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Z
BMM150_INT_STATUS_HIGH_INT_X = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_X
BMM150_INT_STATUS_HIGH_INT_Y = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Y
BMM150_INT_STATUS_HIGH_INT_Z = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Z
BMM150_INT_STATUS_OVERFLOW = _pyupm_bmm150.BMM150_INT_STATUS_OVERFLOW
BMM150_INT_STATUS_DATA_OVERRUN = _pyupm_bmm150.BMM150_INT_STATUS_DATA_OVERRUN
_BMM150_POWER_CTRL_RESERVED_BITS = _pyupm_bmm150._BMM150_POWER_CTRL_RESERVED_BITS
BMM150_POWER_CTRL_POWER_CTRL_BIT = _pyupm_bmm150.BMM150_POWER_CTRL_POWER_CTRL_BIT
BMM150_POWER_CTRL_SOFT_RESET0 = _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET0
BMM150_POWER_CTRL_SPI3EN = _pyupm_bmm150.BMM150_POWER_CTRL_SPI3EN
BMM150_POWER_CTRL_SOFT_RESET1 = _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET1
BMM150_OPMODE_SELFTTEST = _pyupm_bmm150.BMM150_OPMODE_SELFTTEST
BMM150_OPMODE_OPERATION_MODE0 = _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE0
BMM150_OPMODE_OPERATION_MODE1 = _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE1
_BMM150_OPMODE_OPERATION_MODE_MASK = _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_MASK
_BMM150_OPMODE_OPERATION_MODE_SHIFT = _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_SHIFT
BMM150_OPMODE_DATA_RATE0 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE0
BMM150_OPMODE_DATA_RATE1 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE1
BMM150_OPMODE_DATA_RATE2 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE2
_BMM150_OPMODE_DATA_RATE_MASK = _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_MASK
_BMM150_OPMODE_DATA_RATE_SHIFT = _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_SHIFT
BMM150_OPMODE_ADV_SELFTEST0 = _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST0
BMM150_OPMODE_ADV_SELFTEST1 = _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST1
_BMM150_OPMODE_ADV_SELFTEST_MASK = _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_MASK
_BMM150_OPMODE_ADV_SELFTEST_SHIFT = _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_SHIFT
BMM150_OPERATION_MODE_NORMAL = _pyupm_bmm150.BMM150_OPERATION_MODE_NORMAL
BMM150_OPERATION_MODE_FORCED = _pyupm_bmm150.BMM150_OPERATION_MODE_FORCED
BMM150_OPERATION_MODE_SLEEP = _pyupm_bmm150.BMM150_OPERATION_MODE_SLEEP
BMM150_DATA_RATE_10HZ = _pyupm_bmm150.BMM150_DATA_RATE_10HZ
BMM150_DATA_RATE_2HZ = _pyupm_bmm150.BMM150_DATA_RATE_2HZ
BMM150_DATA_RATE_6HZ = _pyupm_bmm150.BMM150_DATA_RATE_6HZ
BMM150_DATA_RATE_8HZ = _pyupm_bmm150.BMM150_DATA_RATE_8HZ
BMM150_DATA_RATE_15HZ = _pyupm_bmm150.BMM150_DATA_RATE_15HZ
BMM150_DATA_RATE_20HZ = _pyupm_bmm150.BMM150_DATA_RATE_20HZ
BMM150_DATA_RATE_25HZ = _pyupm_bmm150.BMM150_DATA_RATE_25HZ
BMM150_DATA_RATE_30HZ = _pyupm_bmm150.BMM150_DATA_RATE_30HZ
BMM150_INT_EN_LOW_INT_X_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_X_EN
BMM150_INT_EN_LOW_INT_Y_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Y_EN
BMM150_INT_EN_LOW_INT_Z_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Z_EN
BMM150_INT_EN_HIGH_INT_X_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_X_EN
BMM150_INT_EN_HIGH_INT_Y_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Y_EN
BMM150_INT_EN_HIGH_INT_Z_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Z_EN
BMM150_INT_EN_OVERFLOW_INT_EN = _pyupm_bmm150.BMM150_INT_EN_OVERFLOW_INT_EN
BMM150_INT_EN_DATA_OVERRUN_INT_EN = _pyupm_bmm150.BMM150_INT_EN_DATA_OVERRUN_INT_EN
BMM150_INT_CONFIG_INT_POLARITY = _pyupm_bmm150.BMM150_INT_CONFIG_INT_POLARITY
BMM150_INT_CONFIG_INT_LATCH = _pyupm_bmm150.BMM150_INT_CONFIG_INT_LATCH
BMM150_INT_CONFIG_DR_POLARITY = _pyupm_bmm150.BMM150_INT_CONFIG_DR_POLARITY
BMM150_INT_CONFIG_CHANNEL_X = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_X
BMM150_INT_CONFIG_CHANNEL_Y = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Y
BMM150_INT_CONFIG_CHANNEL_Z = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Z
BMM150_INT_CONFIG_INT_PIN_EN = _pyupm_bmm150.BMM150_INT_CONFIG_INT_PIN_EN
BMM150_INT_CONFIG_DR_PIN_EN = _pyupm_bmm150.BMM150_INT_CONFIG_DR_PIN_EN
BMM150_INTERRUPT_INT = _pyupm_bmm150.BMM150_INTERRUPT_INT
BMM150_INTERRUPT_DR = _pyupm_bmm150.BMM150_INTERRUPT_DR
BMM150_USAGE_LOW_POWER = _pyupm_bmm150.BMM150_USAGE_LOW_POWER
BMM150_USAGE_REGULAR = _pyupm_bmm150.BMM150_USAGE_REGULAR
BMM150_USAGE_ENHANCED_REGULAR = _pyupm_bmm150.BMM150_USAGE_ENHANCED_REGULAR
BMM150_USAGE_HIGH_ACCURACY = _pyupm_bmm150.BMM150_USAGE_HIGH_ACCURACY
class BMM150(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, BMM150, 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, BMM150, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _pyupm_bmm150.new_BMM150(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_bmm150.delete_BMM150
    __del__ = lambda self: None

    def update(self):
        return _pyupm_bmm150.BMM150_update(self)

    def getChipID(self):
        return _pyupm_bmm150.BMM150_getChipID(self)

    def getMagnetometer(self, *args):
        return _pyupm_bmm150.BMM150_getMagnetometer(self, *args)

    def init(self, usage=BMM150_USAGE_HIGH_ACCURACY):
        return _pyupm_bmm150.BMM150_init(self, usage)

    def setPresetMode(self, usage):
        return _pyupm_bmm150.BMM150_setPresetMode(self, usage)

    def reset(self):
        return _pyupm_bmm150.BMM150_reset(self)

    def setOutputDataRate(self, odr):
        return _pyupm_bmm150.BMM150_setOutputDataRate(self, odr)

    def setPowerBit(self, power):
        return _pyupm_bmm150.BMM150_setPowerBit(self, power)

    def setOpmode(self, opmode):
        return _pyupm_bmm150.BMM150_setOpmode(self, opmode)

    def getOpmode(self):
        return _pyupm_bmm150.BMM150_getOpmode(self)

    def getInterruptEnable(self):
        return _pyupm_bmm150.BMM150_getInterruptEnable(self)

    def setInterruptEnable(self, bits):
        return _pyupm_bmm150.BMM150_setInterruptEnable(self, bits)

    def getInterruptConfig(self):
        return _pyupm_bmm150.BMM150_getInterruptConfig(self)

    def setInterruptConfig(self, bits):
        return _pyupm_bmm150.BMM150_setInterruptConfig(self, bits)

    def getInterruptStatus(self):
        return _pyupm_bmm150.BMM150_getInterruptStatus(self)

    def setRepetitionsXY(self, reps):
        return _pyupm_bmm150.BMM150_setRepetitionsXY(self, reps)

    def setRepetitionsZ(self, reps):
        return _pyupm_bmm150.BMM150_setRepetitionsZ(self, reps)

    def installISR(self, intr, gpio, level, isr, arg):
        return _pyupm_bmm150.BMM150_installISR(self, intr, gpio, level, isr, arg)

    def uninstallISR(self, intr):
        return _pyupm_bmm150.BMM150_uninstallISR(self, intr)

    def readReg(self, reg):
        return _pyupm_bmm150.BMM150_readReg(self, reg)

    def readRegs(self, reg, buffer, len):
        return _pyupm_bmm150.BMM150_readRegs(self, reg, buffer, len)

    def writeReg(self, reg, val):
        return _pyupm_bmm150.BMM150_writeReg(self, reg, val)
BMM150_swigregister = _pyupm_bmm150.BMM150_swigregister
BMM150_swigregister(BMM150)

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


