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

from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
    raise RuntimeError("Python 2.7 or later required")

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

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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


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


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


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


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


import upm.pyupm_interfaces

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    def __sub__(self, *args):
        return _pyupm_bmi160.SwigPyIterator___sub__(self, *args)
    def __iter__(self):
        return self

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

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

    def iterator(self):
        return _pyupm_bmi160.intVector_iterator(self)
    def __iter__(self):
        return self.iterator()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    def iterator(self):
        return _pyupm_bmi160.int16Vector_iterator(self)
    def __iter__(self):
        return self.iterator()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    def iterator(self):
        return _pyupm_bmi160.floatVector_iterator(self)
    def __iter__(self):
        return self.iterator()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    def iterator(self):
        return _pyupm_bmi160.doubleVector_iterator(self)
    def __iter__(self):
        return self.iterator()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    def iterator(self):
        return _pyupm_bmi160.byteVector_iterator(self)
    def __iter__(self):
        return self.iterator()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


def new_floatp():
    return _pyupm_bmi160.new_floatp()

def copy_floatp(value):
    return _pyupm_bmi160.copy_floatp(value)

def delete_floatp(obj):
    return _pyupm_bmi160.delete_floatp(obj)

def floatp_assign(obj, value):
    return _pyupm_bmi160.floatp_assign(obj, value)

def floatp_value(obj):
    return _pyupm_bmi160.floatp_value(obj)
BMI160_CHIP_ID = _pyupm_bmi160.BMI160_CHIP_ID
BMI160_ACC_RANGE_2G = _pyupm_bmi160.BMI160_ACC_RANGE_2G
BMI160_ACC_RANGE_4G = _pyupm_bmi160.BMI160_ACC_RANGE_4G
BMI160_ACC_RANGE_8G = _pyupm_bmi160.BMI160_ACC_RANGE_8G
BMI160_ACC_RANGE_16G = _pyupm_bmi160.BMI160_ACC_RANGE_16G
BMI160_GYRO_RANGE_125 = _pyupm_bmi160.BMI160_GYRO_RANGE_125
BMI160_GYRO_RANGE_250 = _pyupm_bmi160.BMI160_GYRO_RANGE_250
BMI160_GYRO_RANGE_500 = _pyupm_bmi160.BMI160_GYRO_RANGE_500
BMI160_GYRO_RANGE_1000 = _pyupm_bmi160.BMI160_GYRO_RANGE_1000
BMI160_GYRO_RANGE_2000 = _pyupm_bmi160.BMI160_GYRO_RANGE_2000
BMI160_I2C_BUS = _pyupm_bmi160.BMI160_I2C_BUS
BMI160_DEFAULT_I2C_ADDR = _pyupm_bmi160.BMI160_DEFAULT_I2C_ADDR
class BMI160(upm.pyupm_interfaces.iAcceleration, upm.pyupm_interfaces.iGyroscope, upm.pyupm_interfaces.iMagnetometer):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, bus=0, address=0x69, csPin=-1, enableMag=True):
        _pyupm_bmi160.BMI160_swiginit(self, _pyupm_bmi160.new_BMI160(bus, address, csPin, enableMag))
    __swig_destroy__ = _pyupm_bmi160.delete_BMI160

    def update(self):
        return _pyupm_bmi160.BMI160_update(self)

    def setAccelerometerScale(self, scale):
        return _pyupm_bmi160.BMI160_setAccelerometerScale(self, scale)

    def setGyroscopeScale(self, scale):
        return _pyupm_bmi160.BMI160_setGyroscopeScale(self, scale)

    def getAccelerometer(self, *args):
        return _pyupm_bmi160.BMI160_getAccelerometer(self, *args)

    def getAcceleration(self):
        return _pyupm_bmi160.BMI160_getAcceleration(self)

    def getGyroscope(self, *args):
        return _pyupm_bmi160.BMI160_getGyroscope(self, *args)

    def getMagnetometer(self, *args):
        return _pyupm_bmi160.BMI160_getMagnetometer(self, *args)

    def enableMagnetometer(self, enable):
        return _pyupm_bmi160.BMI160_enableMagnetometer(self, enable)

    def getSensorTime(self):
        return _pyupm_bmi160.BMI160_getSensorTime(self)

# Register BMI160 in _pyupm_bmi160:
_pyupm_bmi160.BMI160_swigregister(BMI160)



