# 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_curieimu
else:
    import _pyupm_curieimu

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



def getVersion():
    return _pyupm_curieimu.getVersion()
class int16Array(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, nelements):
        _pyupm_curieimu.int16Array_swiginit(self, _pyupm_curieimu.new_int16Array(nelements))
    __swig_destroy__ = _pyupm_curieimu.delete_int16Array

    def __getitem__(self, index):
        return _pyupm_curieimu.int16Array___getitem__(self, index)

    def __setitem__(self, index, value):
        return _pyupm_curieimu.int16Array___setitem__(self, index, value)

    def cast(self):
        return _pyupm_curieimu.int16Array_cast(self)

    @staticmethod
    def frompointer(t):
        return _pyupm_curieimu.int16Array_frompointer(t)

# Register int16Array in _pyupm_curieimu:
_pyupm_curieimu.int16Array_swigregister(int16Array)

def int16Array_frompointer(t):
    return _pyupm_curieimu.int16Array_frompointer(t)

FIRMATA_START_SYSEX = _pyupm_curieimu.FIRMATA_START_SYSEX
FIRMATA_END_SYSEX = _pyupm_curieimu.FIRMATA_END_SYSEX
FIRMATA_CURIE_IMU = _pyupm_curieimu.FIRMATA_CURIE_IMU
FIRMATA_CURIE_IMU_READ_ACCEL = _pyupm_curieimu.FIRMATA_CURIE_IMU_READ_ACCEL
FIRMATA_CURIE_IMU_READ_GYRO = _pyupm_curieimu.FIRMATA_CURIE_IMU_READ_GYRO
FIRMATA_CURIE_IMU_READ_TEMP = _pyupm_curieimu.FIRMATA_CURIE_IMU_READ_TEMP
FIRMATA_CURIE_IMU_SHOCK_DETECT = _pyupm_curieimu.FIRMATA_CURIE_IMU_SHOCK_DETECT
FIRMATA_CURIE_IMU_STEP_COUNTER = _pyupm_curieimu.FIRMATA_CURIE_IMU_STEP_COUNTER
FIRMATA_CURIE_IMU_TAP_DETECT = _pyupm_curieimu.FIRMATA_CURIE_IMU_TAP_DETECT
FIRMATA_CURIE_IMU_READ_MOTION = _pyupm_curieimu.FIRMATA_CURIE_IMU_READ_MOTION
X = _pyupm_curieimu.X
Y = _pyupm_curieimu.Y
Z = _pyupm_curieimu.Z
class IMUDataItem(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    axis = property(_pyupm_curieimu.IMUDataItem_axis_get, _pyupm_curieimu.IMUDataItem_axis_set)
    direction = property(_pyupm_curieimu.IMUDataItem_direction_get, _pyupm_curieimu.IMUDataItem_direction_set)

    def __init__(self):
        _pyupm_curieimu.IMUDataItem_swiginit(self, _pyupm_curieimu.new_IMUDataItem())
    __swig_destroy__ = _pyupm_curieimu.delete_IMUDataItem

# Register IMUDataItem in _pyupm_curieimu:
_pyupm_curieimu.IMUDataItem_swigregister(IMUDataItem)

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

    def __init__(self, subplatform_offset=512):
        _pyupm_curieimu.CurieImu_swiginit(self, _pyupm_curieimu.new_CurieImu(subplatform_offset))
    __swig_destroy__ = _pyupm_curieimu.delete_CurieImu

    def updateAccel(self):
        return _pyupm_curieimu.CurieImu_updateAccel(self)

    def updateGyro(self):
        return _pyupm_curieimu.CurieImu_updateGyro(self)

    def updateMotion(self):
        return _pyupm_curieimu.CurieImu_updateMotion(self)

    def getAccel(self):
        return _pyupm_curieimu.CurieImu_getAccel(self)

    def getAccelX(self):
        return _pyupm_curieimu.CurieImu_getAccelX(self)

    def getAccelY(self):
        return _pyupm_curieimu.CurieImu_getAccelY(self)

    def getAccelZ(self):
        return _pyupm_curieimu.CurieImu_getAccelZ(self)

    def getGyro(self):
        return _pyupm_curieimu.CurieImu_getGyro(self)

    def getGyroX(self):
        return _pyupm_curieimu.CurieImu_getGyroX(self)

    def getGyroY(self):
        return _pyupm_curieimu.CurieImu_getGyroY(self)

    def getGyroZ(self):
        return _pyupm_curieimu.CurieImu_getGyroZ(self)

    def getTemperature(self):
        return _pyupm_curieimu.CurieImu_getTemperature(self)

    def getMotion(self):
        return _pyupm_curieimu.CurieImu_getMotion(self)

    def getAxis(self):
        return _pyupm_curieimu.CurieImu_getAxis(self)

    def getDirection(self):
        return _pyupm_curieimu.CurieImu_getDirection(self)

    def enableShockDetection(self, enable):
        return _pyupm_curieimu.CurieImu_enableShockDetection(self, enable)

    def isShockDetected(self):
        return _pyupm_curieimu.CurieImu_isShockDetected(self)

    def getNextShock(self):
        return _pyupm_curieimu.CurieImu_getNextShock(self)

    def enableStepCounter(self, enable):
        return _pyupm_curieimu.CurieImu_enableStepCounter(self, enable)

    def isStepDetected(self):
        return _pyupm_curieimu.CurieImu_isStepDetected(self)

    def getStepCount(self):
        return _pyupm_curieimu.CurieImu_getStepCount(self)

    def enableTapDetection(self, enable):
        return _pyupm_curieimu.CurieImu_enableTapDetection(self, enable)

    def isTapDetected(self):
        return _pyupm_curieimu.CurieImu_isTapDetected(self)

    def getNextTap(self):
        return _pyupm_curieimu.CurieImu_getNextTap(self)

    def lock(self):
        return _pyupm_curieimu.CurieImu_lock(self)

    def unlock(self):
        return _pyupm_curieimu.CurieImu_unlock(self)

    def waitForResponse(self):
        return _pyupm_curieimu.CurieImu_waitForResponse(self)

    def proceed(self):
        return _pyupm_curieimu.CurieImu_proceed(self)

    def setResults(self, buf, length):
        return _pyupm_curieimu.CurieImu_setResults(self, buf, length)

    def processResponse(self):
        return _pyupm_curieimu.CurieImu_processResponse(self)

# Register CurieImu in _pyupm_curieimu:
_pyupm_curieimu.CurieImu_swigregister(CurieImu)



