Source code for pyupm_bmm150

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.





from sys import version_info
if version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('_pyupm_bmm150', [dirname(__file__)])
        except ImportError:
            import _pyupm_bmm150
            return _pyupm_bmm150
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_bmm150', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_bmm150 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_bmm150
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


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

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0



def getVersion():
    return _pyupm_bmm150.getVersion()
getVersion = _pyupm_bmm150.getVersion
[docs]class SwigPyIterator(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, SwigPyIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, SwigPyIterator, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _pyupm_bmm150.delete_SwigPyIterator __del__ = lambda self: None
[docs] def value(self): return _pyupm_bmm150.SwigPyIterator_value(self)
[docs] def incr(self, n=1): return _pyupm_bmm150.SwigPyIterator_incr(self, n)
[docs] def decr(self, n=1): return _pyupm_bmm150.SwigPyIterator_decr(self, n)
[docs] def distance(self, x): return _pyupm_bmm150.SwigPyIterator_distance(self, x)
[docs] def equal(self, x): return _pyupm_bmm150.SwigPyIterator_equal(self, x)
[docs] def copy(self): return _pyupm_bmm150.SwigPyIterator_copy(self)
[docs] def next(self): return _pyupm_bmm150.SwigPyIterator_next(self)
def __next__(self): return _pyupm_bmm150.SwigPyIterator___next__(self)
[docs] def previous(self): return _pyupm_bmm150.SwigPyIterator_previous(self)
[docs] 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)
[docs]class intVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, intVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, intVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_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)
[docs] def pop(self): return _pyupm_bmm150.intVector_pop(self)
[docs] def append(self, x): return _pyupm_bmm150.intVector_append(self, x)
[docs] def empty(self): return _pyupm_bmm150.intVector_empty(self)
[docs] def size(self): return _pyupm_bmm150.intVector_size(self)
[docs] def swap(self, v): return _pyupm_bmm150.intVector_swap(self, v)
[docs] def begin(self): return _pyupm_bmm150.intVector_begin(self)
[docs] def end(self): return _pyupm_bmm150.intVector_end(self)
[docs] def rbegin(self): return _pyupm_bmm150.intVector_rbegin(self)
[docs] def rend(self): return _pyupm_bmm150.intVector_rend(self)
[docs] def clear(self): return _pyupm_bmm150.intVector_clear(self)
[docs] def get_allocator(self): return _pyupm_bmm150.intVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_bmm150.intVector_pop_back(self)
[docs] 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 Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_bmm150.intVector_push_back(self, x)
[docs] def front(self): return _pyupm_bmm150.intVector_front(self)
[docs] def back(self): return _pyupm_bmm150.intVector_back(self)
[docs] def assign(self, n, x): return _pyupm_bmm150.intVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_bmm150.intVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_bmm150.intVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_bmm150.intVector_reserve(self, n)
[docs] 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)
[docs]class int16Vector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, int16Vector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, int16Vector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_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)
[docs] def pop(self): return _pyupm_bmm150.int16Vector_pop(self)
[docs] def append(self, x): return _pyupm_bmm150.int16Vector_append(self, x)
[docs] def empty(self): return _pyupm_bmm150.int16Vector_empty(self)
[docs] def size(self): return _pyupm_bmm150.int16Vector_size(self)
[docs] def swap(self, v): return _pyupm_bmm150.int16Vector_swap(self, v)
[docs] def begin(self): return _pyupm_bmm150.int16Vector_begin(self)
[docs] def end(self): return _pyupm_bmm150.int16Vector_end(self)
[docs] def rbegin(self): return _pyupm_bmm150.int16Vector_rbegin(self)
[docs] def rend(self): return _pyupm_bmm150.int16Vector_rend(self)
[docs] def clear(self): return _pyupm_bmm150.int16Vector_clear(self)
[docs] def get_allocator(self): return _pyupm_bmm150.int16Vector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_bmm150.int16Vector_pop_back(self)
[docs] 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 Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_bmm150.int16Vector_push_back(self, x)
[docs] def front(self): return _pyupm_bmm150.int16Vector_front(self)
[docs] def back(self): return _pyupm_bmm150.int16Vector_back(self)
[docs] def assign(self, n, x): return _pyupm_bmm150.int16Vector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_bmm150.int16Vector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_bmm150.int16Vector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_bmm150.int16Vector_reserve(self, n)
[docs] 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)
[docs]class floatVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, floatVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, floatVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_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)
[docs] def pop(self): return _pyupm_bmm150.floatVector_pop(self)
[docs] def append(self, x): return _pyupm_bmm150.floatVector_append(self, x)
[docs] def empty(self): return _pyupm_bmm150.floatVector_empty(self)
[docs] def size(self): return _pyupm_bmm150.floatVector_size(self)
[docs] def swap(self, v): return _pyupm_bmm150.floatVector_swap(self, v)
[docs] def begin(self): return _pyupm_bmm150.floatVector_begin(self)
[docs] def end(self): return _pyupm_bmm150.floatVector_end(self)
[docs] def rbegin(self): return _pyupm_bmm150.floatVector_rbegin(self)
[docs] def rend(self): return _pyupm_bmm150.floatVector_rend(self)
[docs] def clear(self): return _pyupm_bmm150.floatVector_clear(self)
[docs] def get_allocator(self): return _pyupm_bmm150.floatVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_bmm150.floatVector_pop_back(self)
[docs] 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 Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_bmm150.floatVector_push_back(self, x)
[docs] def front(self): return _pyupm_bmm150.floatVector_front(self)
[docs] def back(self): return _pyupm_bmm150.floatVector_back(self)
[docs] def assign(self, n, x): return _pyupm_bmm150.floatVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_bmm150.floatVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_bmm150.floatVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_bmm150.floatVector_reserve(self, n)
[docs] 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)
[docs]class doubleVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, doubleVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, doubleVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_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)
[docs] def pop(self): return _pyupm_bmm150.doubleVector_pop(self)
[docs] def append(self, x): return _pyupm_bmm150.doubleVector_append(self, x)
[docs] def empty(self): return _pyupm_bmm150.doubleVector_empty(self)
[docs] def size(self): return _pyupm_bmm150.doubleVector_size(self)
[docs] def swap(self, v): return _pyupm_bmm150.doubleVector_swap(self, v)
[docs] def begin(self): return _pyupm_bmm150.doubleVector_begin(self)
[docs] def end(self): return _pyupm_bmm150.doubleVector_end(self)
[docs] def rbegin(self): return _pyupm_bmm150.doubleVector_rbegin(self)
[docs] def rend(self): return _pyupm_bmm150.doubleVector_rend(self)
[docs] def clear(self): return _pyupm_bmm150.doubleVector_clear(self)
[docs] def get_allocator(self): return _pyupm_bmm150.doubleVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_bmm150.doubleVector_pop_back(self)
[docs] 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 Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_bmm150.doubleVector_push_back(self, x)
[docs] def front(self): return _pyupm_bmm150.doubleVector_front(self)
[docs] def back(self): return _pyupm_bmm150.doubleVector_back(self)
[docs] def assign(self, n, x): return _pyupm_bmm150.doubleVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_bmm150.doubleVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_bmm150.doubleVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_bmm150.doubleVector_reserve(self, n)
[docs] 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)
[docs]class byteVector(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, byteVector, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, byteVector, name) __repr__ = _swig_repr
[docs] def iterator(self): return _pyupm_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)
[docs] def pop(self): return _pyupm_bmm150.byteVector_pop(self)
[docs] def append(self, x): return _pyupm_bmm150.byteVector_append(self, x)
[docs] def empty(self): return _pyupm_bmm150.byteVector_empty(self)
[docs] def size(self): return _pyupm_bmm150.byteVector_size(self)
[docs] def swap(self, v): return _pyupm_bmm150.byteVector_swap(self, v)
[docs] def begin(self): return _pyupm_bmm150.byteVector_begin(self)
[docs] def end(self): return _pyupm_bmm150.byteVector_end(self)
[docs] def rbegin(self): return _pyupm_bmm150.byteVector_rbegin(self)
[docs] def rend(self): return _pyupm_bmm150.byteVector_rend(self)
[docs] def clear(self): return _pyupm_bmm150.byteVector_clear(self)
[docs] def get_allocator(self): return _pyupm_bmm150.byteVector_get_allocator(self)
[docs] def pop_back(self): return _pyupm_bmm150.byteVector_pop_back(self)
[docs] 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 Exception: self.this = this
[docs] def push_back(self, x): return _pyupm_bmm150.byteVector_push_back(self, x)
[docs] def front(self): return _pyupm_bmm150.byteVector_front(self)
[docs] def back(self): return _pyupm_bmm150.byteVector_back(self)
[docs] def assign(self, n, x): return _pyupm_bmm150.byteVector_assign(self, n, x)
[docs] def resize(self, *args): return _pyupm_bmm150.byteVector_resize(self, *args)
[docs] def insert(self, *args): return _pyupm_bmm150.byteVector_insert(self, *args)
[docs] def reserve(self, n): return _pyupm_bmm150.byteVector_reserve(self, n)
[docs] 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 _pyupm_bmm150.BMM150_DEFAULT_I2C_BUS_swigconstant(_pyupm_bmm150) BMM150_DEFAULT_I2C_BUS = _pyupm_bmm150.BMM150_DEFAULT_I2C_BUS _pyupm_bmm150.BMM150_DEFAULT_SPI_BUS_swigconstant(_pyupm_bmm150) BMM150_DEFAULT_SPI_BUS = _pyupm_bmm150.BMM150_DEFAULT_SPI_BUS _pyupm_bmm150.BMM150_DEFAULT_ADDR_swigconstant(_pyupm_bmm150) BMM150_DEFAULT_ADDR = _pyupm_bmm150.BMM150_DEFAULT_ADDR _pyupm_bmm150.BMM150_DEFAULT_CHIPID_swigconstant(_pyupm_bmm150) BMM150_DEFAULT_CHIPID = _pyupm_bmm150.BMM150_DEFAULT_CHIPID _pyupm_bmm150.BMM150_REG_CHIP_ID_swigconstant(_pyupm_bmm150) BMM150_REG_CHIP_ID = _pyupm_bmm150.BMM150_REG_CHIP_ID _pyupm_bmm150.BMM150_REG_MAG_X_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_X_LSB = _pyupm_bmm150.BMM150_REG_MAG_X_LSB _pyupm_bmm150.BMM150_REG_MAG_X_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_X_MSB = _pyupm_bmm150.BMM150_REG_MAG_X_MSB _pyupm_bmm150.BMM150_REG_MAG_Y_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_Y_LSB = _pyupm_bmm150.BMM150_REG_MAG_Y_LSB _pyupm_bmm150.BMM150_REG_MAG_Y_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_Y_MSB = _pyupm_bmm150.BMM150_REG_MAG_Y_MSB _pyupm_bmm150.BMM150_REG_MAG_Z_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_Z_LSB = _pyupm_bmm150.BMM150_REG_MAG_Z_LSB _pyupm_bmm150.BMM150_REG_MAG_Z_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_MAG_Z_MSB = _pyupm_bmm150.BMM150_REG_MAG_Z_MSB _pyupm_bmm150.BMM150_REG_RHALL_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_RHALL_LSB = _pyupm_bmm150.BMM150_REG_RHALL_LSB _pyupm_bmm150.BMM150_REG_RHALL_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_RHALL_MSB = _pyupm_bmm150.BMM150_REG_RHALL_MSB _pyupm_bmm150.BMM150_REG_INT_STATUS_swigconstant(_pyupm_bmm150) BMM150_REG_INT_STATUS = _pyupm_bmm150.BMM150_REG_INT_STATUS _pyupm_bmm150.BMM150_REG_POWER_CTRL_swigconstant(_pyupm_bmm150) BMM150_REG_POWER_CTRL = _pyupm_bmm150.BMM150_REG_POWER_CTRL _pyupm_bmm150.BMM150_REG_OPMODE_swigconstant(_pyupm_bmm150) BMM150_REG_OPMODE = _pyupm_bmm150.BMM150_REG_OPMODE _pyupm_bmm150.BMM150_REG_INT_EN_swigconstant(_pyupm_bmm150) BMM150_REG_INT_EN = _pyupm_bmm150.BMM150_REG_INT_EN _pyupm_bmm150.BMM150_REG_INT_CONFIG_swigconstant(_pyupm_bmm150) BMM150_REG_INT_CONFIG = _pyupm_bmm150.BMM150_REG_INT_CONFIG _pyupm_bmm150.BMM150_REG_LOW_THRES_swigconstant(_pyupm_bmm150) BMM150_REG_LOW_THRES = _pyupm_bmm150.BMM150_REG_LOW_THRES _pyupm_bmm150.BMM150_REG_HIGH_THRES_swigconstant(_pyupm_bmm150) BMM150_REG_HIGH_THRES = _pyupm_bmm150.BMM150_REG_HIGH_THRES _pyupm_bmm150.BMM150_REG_REP_XY_swigconstant(_pyupm_bmm150) BMM150_REG_REP_XY = _pyupm_bmm150.BMM150_REG_REP_XY _pyupm_bmm150.BMM150_REG_REP_Z_swigconstant(_pyupm_bmm150) BMM150_REG_REP_Z = _pyupm_bmm150.BMM150_REG_REP_Z _pyupm_bmm150.BMM150_REG_TRIM_DIG_X1_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_X1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_X1 _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y1_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Y1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y1 _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z4_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_LSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z4_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z4_MSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_X2_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_X2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_X2 _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y2_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Y2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Y2 _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z2_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_LSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z2_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z2_MSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z1_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_LSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z1_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z1_MSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_XYZ1_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_LSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_XYZ1_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XYZ1_MSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_LSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z3_LSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_LSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_MSB_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_Z3_MSB = _pyupm_bmm150.BMM150_REG_TRIM_DIG_Z3_MSB _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY2_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_XY2 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY2 _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY1_swigconstant(_pyupm_bmm150) BMM150_REG_TRIM_DIG_XY1 = _pyupm_bmm150.BMM150_REG_TRIM_DIG_XY1 _pyupm_bmm150._BMM150_MAG_XY_LSB_RESERVED_BITS_swigconstant(_pyupm_bmm150) _BMM150_MAG_XY_LSB_RESERVED_BITS = _pyupm_bmm150._BMM150_MAG_XY_LSB_RESERVED_BITS _pyupm_bmm150.BMM150_MAG_XY_LSB_SELFTEST_XY_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_SELFTEST_XY = _pyupm_bmm150.BMM150_MAG_XY_LSB_SELFTEST_XY _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB0_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB0 _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB1_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB1 _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB2_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB2 _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB3_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB3 _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB4_swigconstant(_pyupm_bmm150) BMM150_MAG_XY_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_XY_LSB_LSB4 _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_MASK_swigconstant(_pyupm_bmm150) _BMM150_MAG_XY_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_MASK _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_MAG_XY_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_XY_LSB_LSB_SHIFT _pyupm_bmm150.BMM150_MAG_Z_LSB_SELFTEST_Z_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_SELFTEST_Z = _pyupm_bmm150.BMM150_MAG_Z_LSB_SELFTEST_Z _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB0_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB0 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB1_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB1 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB2_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB2 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB3_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB3 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB4_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB4 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB5_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB5 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB5 _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB6_swigconstant(_pyupm_bmm150) BMM150_MAG_Z_LSB_LSB6 = _pyupm_bmm150.BMM150_MAG_Z_LSB_LSB6 _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_MASK_swigconstant(_pyupm_bmm150) _BMM150_MAG_Z_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_MASK _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_MAG_Z_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_Z_LSB_LSB_SHIFT _pyupm_bmm150._BMM150_MAG_RHALL_LSB_RESERVED_BITS_swigconstant(_pyupm_bmm150) _BMM150_MAG_RHALL_LSB_RESERVED_BITS = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_RESERVED_BITS _pyupm_bmm150.BMM150_MAG_RHALL_LSB_DATA_READY_STATUS_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_DATA_READY_STATUS = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_DATA_READY_STATUS _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB0_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB0 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB0 _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB1_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB1 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB1 _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB2_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB2 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB2 _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB3_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB3 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB3 _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB4_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB4 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB4 _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB5_swigconstant(_pyupm_bmm150) BMM150_MAG_RHALL_LSB_LSB5 = _pyupm_bmm150.BMM150_MAG_RHALL_LSB_LSB5 _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_MASK_swigconstant(_pyupm_bmm150) _BMM150_MAG_RHALL_LSB_LSB_MASK = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_MASK _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_MAG_RHALL_LSB_LSB_SHIFT = _pyupm_bmm150._BMM150_MAG_RHALL_LSB_LSB_SHIFT _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_X_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_LOW_INT_X = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_X _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Y_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_LOW_INT_Y = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Y _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Z_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_LOW_INT_Z = _pyupm_bmm150.BMM150_INT_STATUS_LOW_INT_Z _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_X_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_HIGH_INT_X = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_X _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Y_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_HIGH_INT_Y = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Y _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Z_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_HIGH_INT_Z = _pyupm_bmm150.BMM150_INT_STATUS_HIGH_INT_Z _pyupm_bmm150.BMM150_INT_STATUS_OVERFLOW_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_OVERFLOW = _pyupm_bmm150.BMM150_INT_STATUS_OVERFLOW _pyupm_bmm150.BMM150_INT_STATUS_DATA_OVERRUN_swigconstant(_pyupm_bmm150) BMM150_INT_STATUS_DATA_OVERRUN = _pyupm_bmm150.BMM150_INT_STATUS_DATA_OVERRUN _pyupm_bmm150._BMM150_POWER_CTRL_RESERVED_BITS_swigconstant(_pyupm_bmm150) _BMM150_POWER_CTRL_RESERVED_BITS = _pyupm_bmm150._BMM150_POWER_CTRL_RESERVED_BITS _pyupm_bmm150.BMM150_POWER_CTRL_POWER_CTRL_BIT_swigconstant(_pyupm_bmm150) BMM150_POWER_CTRL_POWER_CTRL_BIT = _pyupm_bmm150.BMM150_POWER_CTRL_POWER_CTRL_BIT _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET0_swigconstant(_pyupm_bmm150) BMM150_POWER_CTRL_SOFT_RESET0 = _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET0 _pyupm_bmm150.BMM150_POWER_CTRL_SPI3EN_swigconstant(_pyupm_bmm150) BMM150_POWER_CTRL_SPI3EN = _pyupm_bmm150.BMM150_POWER_CTRL_SPI3EN _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET1_swigconstant(_pyupm_bmm150) BMM150_POWER_CTRL_SOFT_RESET1 = _pyupm_bmm150.BMM150_POWER_CTRL_SOFT_RESET1 _pyupm_bmm150.BMM150_OPMODE_SELFTTEST_swigconstant(_pyupm_bmm150) BMM150_OPMODE_SELFTTEST = _pyupm_bmm150.BMM150_OPMODE_SELFTTEST _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE0_swigconstant(_pyupm_bmm150) BMM150_OPMODE_OPERATION_MODE0 = _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE0 _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE1_swigconstant(_pyupm_bmm150) BMM150_OPMODE_OPERATION_MODE1 = _pyupm_bmm150.BMM150_OPMODE_OPERATION_MODE1 _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_MASK_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_OPERATION_MODE_MASK = _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_MASK _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_OPERATION_MODE_SHIFT = _pyupm_bmm150._BMM150_OPMODE_OPERATION_MODE_SHIFT _pyupm_bmm150.BMM150_OPMODE_DATA_RATE0_swigconstant(_pyupm_bmm150) BMM150_OPMODE_DATA_RATE0 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE0 _pyupm_bmm150.BMM150_OPMODE_DATA_RATE1_swigconstant(_pyupm_bmm150) BMM150_OPMODE_DATA_RATE1 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE1 _pyupm_bmm150.BMM150_OPMODE_DATA_RATE2_swigconstant(_pyupm_bmm150) BMM150_OPMODE_DATA_RATE2 = _pyupm_bmm150.BMM150_OPMODE_DATA_RATE2 _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_MASK_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_DATA_RATE_MASK = _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_MASK _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_DATA_RATE_SHIFT = _pyupm_bmm150._BMM150_OPMODE_DATA_RATE_SHIFT _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST0_swigconstant(_pyupm_bmm150) BMM150_OPMODE_ADV_SELFTEST0 = _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST0 _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST1_swigconstant(_pyupm_bmm150) BMM150_OPMODE_ADV_SELFTEST1 = _pyupm_bmm150.BMM150_OPMODE_ADV_SELFTEST1 _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_MASK_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_ADV_SELFTEST_MASK = _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_MASK _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_SHIFT_swigconstant(_pyupm_bmm150) _BMM150_OPMODE_ADV_SELFTEST_SHIFT = _pyupm_bmm150._BMM150_OPMODE_ADV_SELFTEST_SHIFT _pyupm_bmm150.BMM150_OPERATION_MODE_NORMAL_swigconstant(_pyupm_bmm150) BMM150_OPERATION_MODE_NORMAL = _pyupm_bmm150.BMM150_OPERATION_MODE_NORMAL _pyupm_bmm150.BMM150_OPERATION_MODE_FORCED_swigconstant(_pyupm_bmm150) BMM150_OPERATION_MODE_FORCED = _pyupm_bmm150.BMM150_OPERATION_MODE_FORCED _pyupm_bmm150.BMM150_OPERATION_MODE_SLEEP_swigconstant(_pyupm_bmm150) BMM150_OPERATION_MODE_SLEEP = _pyupm_bmm150.BMM150_OPERATION_MODE_SLEEP _pyupm_bmm150.BMM150_DATA_RATE_10HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_10HZ = _pyupm_bmm150.BMM150_DATA_RATE_10HZ _pyupm_bmm150.BMM150_DATA_RATE_2HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_2HZ = _pyupm_bmm150.BMM150_DATA_RATE_2HZ _pyupm_bmm150.BMM150_DATA_RATE_6HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_6HZ = _pyupm_bmm150.BMM150_DATA_RATE_6HZ _pyupm_bmm150.BMM150_DATA_RATE_8HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_8HZ = _pyupm_bmm150.BMM150_DATA_RATE_8HZ _pyupm_bmm150.BMM150_DATA_RATE_15HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_15HZ = _pyupm_bmm150.BMM150_DATA_RATE_15HZ _pyupm_bmm150.BMM150_DATA_RATE_20HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_20HZ = _pyupm_bmm150.BMM150_DATA_RATE_20HZ _pyupm_bmm150.BMM150_DATA_RATE_25HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_25HZ = _pyupm_bmm150.BMM150_DATA_RATE_25HZ _pyupm_bmm150.BMM150_DATA_RATE_30HZ_swigconstant(_pyupm_bmm150) BMM150_DATA_RATE_30HZ = _pyupm_bmm150.BMM150_DATA_RATE_30HZ _pyupm_bmm150.BMM150_INT_EN_LOW_INT_X_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_LOW_INT_X_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_X_EN _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Y_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_LOW_INT_Y_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Y_EN _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Z_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_LOW_INT_Z_EN = _pyupm_bmm150.BMM150_INT_EN_LOW_INT_Z_EN _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_X_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_HIGH_INT_X_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_X_EN _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Y_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_HIGH_INT_Y_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Y_EN _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Z_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_HIGH_INT_Z_EN = _pyupm_bmm150.BMM150_INT_EN_HIGH_INT_Z_EN _pyupm_bmm150.BMM150_INT_EN_OVERFLOW_INT_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_OVERFLOW_INT_EN = _pyupm_bmm150.BMM150_INT_EN_OVERFLOW_INT_EN _pyupm_bmm150.BMM150_INT_EN_DATA_OVERRUN_INT_EN_swigconstant(_pyupm_bmm150) BMM150_INT_EN_DATA_OVERRUN_INT_EN = _pyupm_bmm150.BMM150_INT_EN_DATA_OVERRUN_INT_EN _pyupm_bmm150.BMM150_INT_CONFIG_INT_POLARITY_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_INT_POLARITY = _pyupm_bmm150.BMM150_INT_CONFIG_INT_POLARITY _pyupm_bmm150.BMM150_INT_CONFIG_INT_LATCH_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_INT_LATCH = _pyupm_bmm150.BMM150_INT_CONFIG_INT_LATCH _pyupm_bmm150.BMM150_INT_CONFIG_DR_POLARITY_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_DR_POLARITY = _pyupm_bmm150.BMM150_INT_CONFIG_DR_POLARITY _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_X_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_CHANNEL_X = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_X _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Y_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_CHANNEL_Y = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Y _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Z_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_CHANNEL_Z = _pyupm_bmm150.BMM150_INT_CONFIG_CHANNEL_Z _pyupm_bmm150.BMM150_INT_CONFIG_INT_PIN_EN_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_INT_PIN_EN = _pyupm_bmm150.BMM150_INT_CONFIG_INT_PIN_EN _pyupm_bmm150.BMM150_INT_CONFIG_DR_PIN_EN_swigconstant(_pyupm_bmm150) BMM150_INT_CONFIG_DR_PIN_EN = _pyupm_bmm150.BMM150_INT_CONFIG_DR_PIN_EN _pyupm_bmm150.BMM150_INTERRUPT_INT_swigconstant(_pyupm_bmm150) BMM150_INTERRUPT_INT = _pyupm_bmm150.BMM150_INTERRUPT_INT _pyupm_bmm150.BMM150_INTERRUPT_DR_swigconstant(_pyupm_bmm150) BMM150_INTERRUPT_DR = _pyupm_bmm150.BMM150_INTERRUPT_DR _pyupm_bmm150.BMM150_USAGE_LOW_POWER_swigconstant(_pyupm_bmm150) BMM150_USAGE_LOW_POWER = _pyupm_bmm150.BMM150_USAGE_LOW_POWER _pyupm_bmm150.BMM150_USAGE_REGULAR_swigconstant(_pyupm_bmm150) BMM150_USAGE_REGULAR = _pyupm_bmm150.BMM150_USAGE_REGULAR _pyupm_bmm150.BMM150_USAGE_ENHANCED_REGULAR_swigconstant(_pyupm_bmm150) BMM150_USAGE_ENHANCED_REGULAR = _pyupm_bmm150.BMM150_USAGE_ENHANCED_REGULAR _pyupm_bmm150.BMM150_USAGE_HIGH_ACCURACY_swigconstant(_pyupm_bmm150) BMM150_USAGE_HIGH_ACCURACY = _pyupm_bmm150.BMM150_USAGE_HIGH_ACCURACY
[docs]class BMM150(_object): """ API for the BMM150 3-Axis Geomagnetic Sensor. ID: bmm150 Name: 3-axis Geomagnetic Sensor Other Names: bmm050 Category: compass Manufacturer: bosch Connection: i2c spi gpio Link:https://www.bosch-sensortec.com/bst/products/all_products/bmm150 The BMM150 is a standalone geomagnetic sensor for consumer market applications. It allows measurements of the magnetic field in three perpendicular axes. Based on Bosch's proprietary FlipCore technology, performance and features of BMM150 are carefully tuned and perfectly match the demanding requirements of all 3-axis mobile applications such as electronic compass, navigation or augmented reality. An evaluation circuitry (ASIC) converts the output of the geomagnetic sensor to digital results which can be read out over the industry standard digital interfaces (SPI and I2C). Not all functionality of this chip has been implemented in this driver, however all the pieces are present to add any desired functionality. This driver supports both I2C (default) and SPI operation. This device requires 3.3v operation. C++ includes: bmm150.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, BMM150, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, BMM150, name) __repr__ = _swig_repr def __init__(self, bus=0, addr=0x10, cs=-1): """ BMM150(int bus=BMM150_DEFAULT_I2C_BUS, int addr=BMM150_DEFAULT_ADDR, int cs=-1) BMM150 constructor. This device can support both I2C and SPI. For SPI, set the addr to -1, and specify a positive integer representing the Chip Select (CS) pin for the cs argument. If you are using a hardware CS pin (like edison with arduino breakout), then you can connect the proper pin to the hardware CS pin on your MCU and supply -1 for cs. The default operating mode is I2C. Parameters: ----------- bus: I2C or SPI bus to use. addr: The address for this device. -1 for SPI. cs: The gpio pin to use for the SPI Chip Select. -1 for I2C or for SPI with a hardware controlled pin. Exceptions: ----------- std::runtime_error: on failure. """ this = _pyupm_bmm150.new_BMM150(bus, addr, cs) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_bmm150.delete_BMM150 __del__ = lambda self: None
[docs] def update(self): """ void update() Update the internal stored values from sensor data. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_update(self)
[docs] def getChipID(self): """ uint8_t getChipID() Return the chip ID. The chip ID. """ return _pyupm_bmm150.BMM150_getChipID(self)
[docs] def getMagnetometer(self, *args): """ std::vector< float > getMagnetometer() Return magnetometer data in micro-Teslas (uT) in the form of a floating point vector. update() must have been called prior to calling this method. A floating point vector containing x, y, and z in that order. """ return _pyupm_bmm150.BMM150_getMagnetometer(self, *args)
[docs] def init(self, usage=BMM150_USAGE_HIGH_ACCURACY): """ void init(BMM150_USAGE_PRESETS_T usage=BMM150_USAGE_HIGH_ACCURACY) Initialize the device and start operation. This function is called from the constructor so will not typically need to be called by a user unless the device is reset. This method will call setPresetMode() with the passed parameter. Parameters: ----------- usage: One of the BMM150_USAGE_PRESETS_T values. The default is BMM150_USAGE_HIGH_ACCURACY. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_init(self, usage)
[docs] def setPresetMode(self, usage): """ void setPresetMode(BMM150_USAGE_PRESETS_T usage) Set one of the Bosch recommended preset modes. These modes configure the sensor for varying use cases. Parameters: ----------- usage: One of the BMM150_USAGE_PRESETS_T values. The default is BMM150_USAGE_HIGH_ACCURACY. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setPresetMode(self, usage)
[docs] def reset(self): """ void reset() Perform a device soft-reset. The device will be placed in SUSPEND mode afterward with all configured setting lost, so some re-initialization will be required to get data from the sensor. Calling init() will get everything running again. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_reset(self)
[docs] def setOutputDataRate(self, odr): """ void setOutputDataRate(BMM150_DATA_RATE_T odr) Set the magnetometer Output Data Rate. See the datasheet for details. Parameters: ----------- odr: One of the BMM150_DATA_RATE_T values. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setOutputDataRate(self, odr)
[docs] def setPowerBit(self, power): """ void setPowerBit(bool power) Set or clear the Power bit. When the power bit is cleared, the device enters a deep suspend mode where only the REG_POWER_CTRL register can be accessed. This bit needs to be enabled for the device to operate. See the datasheet for details. The constructor enables this by default. After a deep suspend mode has been entered, all configured data is lost and the device must be reconfigured (as via init()). Parameters: ----------- power: true to enable the bit, false otherwise. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setPowerBit(self, power)
[docs] def setOpmode(self, opmode): """ void setOpmode(BMM150_OPERATION_MODE_T opmode) Set the operating mode of the device. See the datasheet for details. Parameters: ----------- opmode: One of the BMM150_OPERATION_MODE_T values. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setOpmode(self, opmode)
[docs] def getOpmode(self): """ BMM150_OPERATION_MODE_T getOpmode() Get the current operating mode of the device. See the datasheet for details. The power bit must be one for this method to succeed. One of the BMM150_OPERATION_MODE_T values. """ return _pyupm_bmm150.BMM150_getOpmode(self)
[docs] def getInterruptEnable(self): """ uint8_t getInterruptEnable() Return the Interrupt Enables register. This register allows you to enable various interrupt conditions. See the datasheet for details. A bitmask of BMM150_INT_EN_BITS_T bits. """ return _pyupm_bmm150.BMM150_getInterruptEnable(self)
[docs] def setInterruptEnable(self, bits): """ void setInterruptEnable(uint8_t bits) Set the Interrupt Enables register. See the datasheet for details. Parameters: ----------- bits: A bitmask of BMM150_INT_EN_BITS_T bits. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setInterruptEnable(self, bits)
[docs] def getInterruptConfig(self): """ uint8_t getInterruptConfig() Return the Interrupt Config register. This register allows determining the electrical characteristics of the 2 interrupt pins (open-drain /push-pull and level/edge triggering) as well as other options. See the datasheet for details. A bitmask of BMM150_INT_CONFIG_BITS_T bits. """ return _pyupm_bmm150.BMM150_getInterruptConfig(self)
[docs] def setInterruptConfig(self, bits): """ void setInterruptConfig(uint8_t bits) Set the Interrupt Config register. This register allows determining the electrical characteristics of the 2 interrupt pins (open-drain /push-pull and level/edge triggering). See the datasheet for details. Parameters: ----------- bits: A bitmask of BMM150_INT_CONFIG_BITS_T bits. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setInterruptConfig(self, bits)
[docs] def getInterruptStatus(self): """ uint8_t getInterruptStatus() Return the interrupt status register. This register indicates which interrupts have been triggered. See the datasheet for details. a bitmask of BMM150_INT_STATUS_BITS_T bits. """ return _pyupm_bmm150.BMM150_getInterruptStatus(self)
[docs] def setRepetitionsXY(self, reps): """ void setRepetitionsXY(uint8_t reps) Set the repetition counter for the X and Y axes. This allows the device to average a number of measurements for a more stable output. See the datasheet for details. Parameters: ----------- reps: A coefficient for specifying the number of repititions to perform. (1 + 2(reps)) Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setRepetitionsXY(self, reps)
[docs] def setRepetitionsZ(self, reps): """ void setRepetitionsZ(uint8_t reps) Set the repetition counter for the Z axis. This allows the device to average a number of measurements for a more stable output. See the datasheet for details. Parameters: ----------- reps: A coefficient for specifying the number of repititions to perform. (1 + (reps)) Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_setRepetitionsZ(self, reps)
[docs] def installISR(self, intr, gpio, level, isr, arg): """ void installISR(BMM150_INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg) Install an interrupt handler. Parameters: ----------- intr: One of the BMM150_INTERRUPT_PINS_T values specifying which interrupt pin you are installing. gpio: GPIO pin to use as interrupt pin. level: The interrupt trigger level (one of mraa::Edge values). Make sure that you have configured the interrupt pin properly for whatever level you choose. isr: The interrupt handler, accepting a void * argument. arg: The argument to pass the the interrupt handler. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_installISR(self, intr, gpio, level, isr, arg)
[docs] def uninstallISR(self, intr): """ void uninstallISR(BMM150_INTERRUPT_PINS_T intr) Uninstall a previously installed interrupt handler. Parameters: ----------- intr: One of the BMM150_INTERRUPT_PINS_T values specifying which interrupt pin you are removing. """ return _pyupm_bmm150.BMM150_uninstallISR(self, intr)
[docs] def readReg(self, reg): """ uint8_t readReg(uint8_t reg) Read a register. Parameters: ----------- reg: The register to read. The value of the register. """ return _pyupm_bmm150.BMM150_readReg(self, reg)
[docs] def readRegs(self, reg, buffer, len): """ int readRegs(uint8_t reg, uint8_t *buffer, int len) Read contiguous registers into a buffer. Parameters: ----------- buffer: The buffer to store the results. len: The number of registers to read. The number of bytes read. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_bmm150.BMM150_readRegs(self, reg, buffer, len)
[docs] def writeReg(self, reg, val): """ void writeReg(uint8_t reg, uint8_t val) Write to a register. Parameters: ----------- reg: The register to write to. val: The value to write. Exceptions: ----------- std::runtime_error: on failure. """ return _pyupm_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.