# 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_mma8x5x')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_mma8x5x')
    _pyupm_mma8x5x = 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_mma8x5x', [dirname(__file__)])
        except ImportError:
            import _pyupm_mma8x5x
            return _pyupm_mma8x5x
        try:
            _mod = imp.load_module('_pyupm_mma8x5x', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_mma8x5x = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_mma8x5x
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_mma8x5x.getVersion()
getVersion = _pyupm_mma8x5x.getVersion
MMA8X5X_DEVICE_ID_MMA8652 = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_MMA8652
MMA8X5X_DEVICE_ID_MMA8653 = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_MMA8653
MMA8X5X_DEVICE_ID_MMA8451 = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_MMA8451
MMA8X5X_DEVICE_ID_MMA8452 = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_MMA8452
MMA8X5X_DEVICE_ID_MMA8453 = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_MMA8453
MMA8X5X_NAME_MMA8652 = _pyupm_mma8x5x.MMA8X5X_NAME_MMA8652
MMA8X5X_NAME_MMA8653 = _pyupm_mma8x5x.MMA8X5X_NAME_MMA8653
MMA8X5X_NAME_MMA8451 = _pyupm_mma8x5x.MMA8X5X_NAME_MMA8451
MMA8X5X_NAME_MMA8452 = _pyupm_mma8x5x.MMA8X5X_NAME_MMA8452
MMA8X5X_NAME_MMA8453 = _pyupm_mma8x5x.MMA8X5X_NAME_MMA8453
MMA8X5X_I2C_ADDRESS = _pyupm_mma8x5x.MMA8X5X_I2C_ADDRESS
MMA8X5X_DEVICE_ID_REG = _pyupm_mma8x5x.MMA8X5X_DEVICE_ID_REG
MMA8X5X_STATUS = _pyupm_mma8x5x.MMA8X5X_STATUS
MMA8X5X_OUT_X_MSB = _pyupm_mma8x5x.MMA8X5X_OUT_X_MSB
MMA8X5X_OUT_X_LSB = _pyupm_mma8x5x.MMA8X5X_OUT_X_LSB
MMA8X5X_OUT_Y_MSB = _pyupm_mma8x5x.MMA8X5X_OUT_Y_MSB
MMA8X5X_OUT_Y_LSB = _pyupm_mma8x5x.MMA8X5X_OUT_Y_LSB
MMA8X5X_OUT_Z_MSB = _pyupm_mma8x5x.MMA8X5X_OUT_Z_MSB
MMA8X5X_OUT_Z_LSB = _pyupm_mma8x5x.MMA8X5X_OUT_Z_LSB
MMA8X5X_F_SETUP = _pyupm_mma8x5x.MMA8X5X_F_SETUP
MMA8X5X_TRIG_CFG = _pyupm_mma8x5x.MMA8X5X_TRIG_CFG
MMA8X5X_SYSMOD = _pyupm_mma8x5x.MMA8X5X_SYSMOD
MMA8X5X_INT_SOURCE = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE
MMA8X5X_XYZ_DATA_CFG = _pyupm_mma8x5x.MMA8X5X_XYZ_DATA_CFG
MMA8X5X_HP_FILTER_CUTOFF = _pyupm_mma8x5x.MMA8X5X_HP_FILTER_CUTOFF
MMA8X5X_PL_STATUS = _pyupm_mma8x5x.MMA8X5X_PL_STATUS
MMA8X5X_PL_CFG = _pyupm_mma8x5x.MMA8X5X_PL_CFG
MMA8X5X_PL_COUNT = _pyupm_mma8x5x.MMA8X5X_PL_COUNT
MMA8X5X_PL_BF_ZCOMP = _pyupm_mma8x5x.MMA8X5X_PL_BF_ZCOMP
MMA8X5X_P_L_THS_REG = _pyupm_mma8x5x.MMA8X5X_P_L_THS_REG
MMA8X5X_FF_MT_CFG = _pyupm_mma8x5x.MMA8X5X_FF_MT_CFG
MMA8X5X_FF_MT_SRC = _pyupm_mma8x5x.MMA8X5X_FF_MT_SRC
MMA8X5X_FF_MT_THS = _pyupm_mma8x5x.MMA8X5X_FF_MT_THS
MMA8X5X_FF_MT_COUNT = _pyupm_mma8x5x.MMA8X5X_FF_MT_COUNT
MMA8X5X_TRANSIENT_CFG = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_CFG
MMA8X5X_TRANSIENT_SRC = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_SRC
MMA8X5X_TRANSIENT_THS = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_THS
MMA8X5X_TRANSIENT_COUNT = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_COUNT
MMA8X5X_PULSE_CFG = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG
MMA8X5X_PULSE_SRC = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC
MMA8X5X_PULSE_THSX = _pyupm_mma8x5x.MMA8X5X_PULSE_THSX
MMA8X5X_PULSE_THSY = _pyupm_mma8x5x.MMA8X5X_PULSE_THSY
MMA8X5X_PULSE_THSZ = _pyupm_mma8x5x.MMA8X5X_PULSE_THSZ
MMA8X5X_PULSE_TMLT = _pyupm_mma8x5x.MMA8X5X_PULSE_TMLT
MMA8X5X_PULSE_LTCY = _pyupm_mma8x5x.MMA8X5X_PULSE_LTCY
MMA8X5X_PULSE_WIND = _pyupm_mma8x5x.MMA8X5X_PULSE_WIND
MMA8X5X_ASLP_COUNT = _pyupm_mma8x5x.MMA8X5X_ASLP_COUNT
MMA8X5X_CTRL_REG1 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1
MMA8X5X_CTRL_REG2 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2
MMA8X5X_CTRL_REG3 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3
MMA8X5X_CTRL_REG4 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4
MMA8X5X_CTRL_REG5 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5
MMA8X5X_OFF_X = _pyupm_mma8x5x.MMA8X5X_OFF_X
MMA8X5X_OFF_Y = _pyupm_mma8x5x.MMA8X5X_OFF_Y
MMA8X5X_OFF_Z = _pyupm_mma8x5x.MMA8X5X_OFF_Z
MMA8X5X_RATE_800HZ = _pyupm_mma8x5x.MMA8X5X_RATE_800HZ
MMA8X5X_RATE_400HZ = _pyupm_mma8x5x.MMA8X5X_RATE_400HZ
MMA8X5X_RATE_200HZ = _pyupm_mma8x5x.MMA8X5X_RATE_200HZ
MMA8X5X_RATE_100HZ = _pyupm_mma8x5x.MMA8X5X_RATE_100HZ
MMA8X5X_RATE_50HZ = _pyupm_mma8x5x.MMA8X5X_RATE_50HZ
MMA8X5X_RATE_1HZ25 = _pyupm_mma8x5x.MMA8X5X_RATE_1HZ25
MMA8X5X_RATE_6HZ25 = _pyupm_mma8x5x.MMA8X5X_RATE_6HZ25
MMA8X5X_RATE_1HZ56 = _pyupm_mma8x5x.MMA8X5X_RATE_1HZ56
MMA8X5X_RATE_DEFAULT = _pyupm_mma8x5x.MMA8X5X_RATE_DEFAULT
MMA8X5X_RANGE_2G = _pyupm_mma8x5x.MMA8X5X_RANGE_2G
MMA8X5X_RANGE_4G = _pyupm_mma8x5x.MMA8X5X_RANGE_4G
MMA8X5X_RANGE_8G = _pyupm_mma8x5x.MMA8X5X_RANGE_8G
MMA8X5X_RANGE_DEFAULT = _pyupm_mma8x5x.MMA8X5X_RANGE_DEFAULT
MMA8X5X_OK = _pyupm_mma8x5x.MMA8X5X_OK
MMA8X5X_DATA_READY = _pyupm_mma8x5x.MMA8X5X_DATA_READY
MMA8X5X_NOI2C = _pyupm_mma8x5x.MMA8X5X_NOI2C
MMA8X5X_NODEV = _pyupm_mma8x5x.MMA8X5X_NODEV
MMA8X5X_NODATA = _pyupm_mma8x5x.MMA8X5X_NODATA
MMA8X5X_STATUS_XDR = _pyupm_mma8x5x.MMA8X5X_STATUS_XDR
MMA8X5X_STATUS_YDR = _pyupm_mma8x5x.MMA8X5X_STATUS_YDR
MMA8X5X_STATUS_ZDR = _pyupm_mma8x5x.MMA8X5X_STATUS_ZDR
MMA8X5X_STATUS_ZYXDR = _pyupm_mma8x5x.MMA8X5X_STATUS_ZYXDR
MMA8X5X_STATUS_XOW = _pyupm_mma8x5x.MMA8X5X_STATUS_XOW
MMA8X5X_STATUS_YOW = _pyupm_mma8x5x.MMA8X5X_STATUS_YOW
MMA8X5X_STATUS_ZOW = _pyupm_mma8x5x.MMA8X5X_STATUS_ZOW
MMA8X5X_STATUS_ZYXOW = _pyupm_mma8x5x.MMA8X5X_STATUS_ZYXOW
MMA8X5X_F_STATUS_F_CNT_MASK = _pyupm_mma8x5x.MMA8X5X_F_STATUS_F_CNT_MASK
MMA8X5X_F_STATUS_F_WMRK_FLAG = _pyupm_mma8x5x.MMA8X5X_F_STATUS_F_WMRK_FLAG
MMA8X5X_F_STATUS_F_OVF = _pyupm_mma8x5x.MMA8X5X_F_STATUS_F_OVF
MMA8X5X_F_SETUP_MODE_MASK = _pyupm_mma8x5x.MMA8X5X_F_SETUP_MODE_MASK
MMA8X5X_F_SETUP_MODE_DISABLED = _pyupm_mma8x5x.MMA8X5X_F_SETUP_MODE_DISABLED
MMA8X5X_F_SETUP_MODE_CIRCULAR = _pyupm_mma8x5x.MMA8X5X_F_SETUP_MODE_CIRCULAR
MMA8X5X_F_SETUP_MODE_STOP = _pyupm_mma8x5x.MMA8X5X_F_SETUP_MODE_STOP
MMA8X5X_F_SETUP_MODE_TRIGGER = _pyupm_mma8x5x.MMA8X5X_F_SETUP_MODE_TRIGGER
MMA8X5X_F_SETUP_F_WMRK_MASK = _pyupm_mma8x5x.MMA8X5X_F_SETUP_F_WMRK_MASK
MMA8X5X_TRIG_CFG_FF_MT = _pyupm_mma8x5x.MMA8X5X_TRIG_CFG_FF_MT
MMA8X5X_TRIG_CFG_PULSE = _pyupm_mma8x5x.MMA8X5X_TRIG_CFG_PULSE
MMA8X5X_TRIG_CFG_LNDPRT = _pyupm_mma8x5x.MMA8X5X_TRIG_CFG_LNDPRT
MMA8X5X_TRIG_CFG_TRANS = _pyupm_mma8x5x.MMA8X5X_TRIG_CFG_TRANS
MMA8X5X_SYSMOD_MASK = _pyupm_mma8x5x.MMA8X5X_SYSMOD_MASK
MMA8X5X_SYSMOD_STANDBY = _pyupm_mma8x5x.MMA8X5X_SYSMOD_STANDBY
MMA8X5X_SYSMOD_WAKE = _pyupm_mma8x5x.MMA8X5X_SYSMOD_WAKE
MMA8X5X_SYSMOD_SLEEP = _pyupm_mma8x5x.MMA8X5X_SYSMOD_SLEEP
MMA8X5X_SYSMOD_FGT_MASK = _pyupm_mma8x5x.MMA8X5X_SYSMOD_FGT_MASK
MMA8X5X_SYSMOD_FGERR = _pyupm_mma8x5x.MMA8X5X_SYSMOD_FGERR
MMA8X5X_INT_SOURCE_DRDY = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_DRDY
MMA8X5X_INT_SOURCE_FF_MT = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_FF_MT
MMA8X5X_INT_SOURCE_PULSE = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_PULSE
MMA8X5X_INT_SOURCE_LNDPRT = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_LNDPRT
MMA8X5X_INT_SOURCE_TRANS = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_TRANS
MMA8X5X_INT_SOURCE_FIFO = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_FIFO
MMA8X5X_INT_SOURCE_ASLP = _pyupm_mma8x5x.MMA8X5X_INT_SOURCE_ASLP
MMA8X5X_XYZ_DATA_CFG_FS_MASK = _pyupm_mma8x5x.MMA8X5X_XYZ_DATA_CFG_FS_MASK
MMA8X5X_XYZ_DATA_CFG_HPF_OUT = _pyupm_mma8x5x.MMA8X5X_XYZ_DATA_CFG_HPF_OUT
MMA8X5X_HP_FILTER_SEL_MASK = _pyupm_mma8x5x.MMA8X5X_HP_FILTER_SEL_MASK
MMA8X5X_HP_FILTER_LPF_EN = _pyupm_mma8x5x.MMA8X5X_HP_FILTER_LPF_EN
MMA8X5X_HP_FILTER_HPF_BYP = _pyupm_mma8x5x.MMA8X5X_HP_FILTER_HPF_BYP
MMA8X5X_PL_STATUS_BAFRO = _pyupm_mma8x5x.MMA8X5X_PL_STATUS_BAFRO
MMA8X5X_PL_STATUS_LAPO_MASK = _pyupm_mma8x5x.MMA8X5X_PL_STATUS_LAPO_MASK
MMA8X5X_PL_STATUS_LAPO_P_UP = _pyupm_mma8x5x.MMA8X5X_PL_STATUS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YTEVENT = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_SRC_YTEVENT
MMA8X5X_TRANSIENT_SRC_ZTPOL = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_SRC_ZTPOL
MMA8X5X_TRANSIENT_SRC_ZTEVENT = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_SRC_ZTEVENT
MMA8X5X_TRANSIENT_SRC_EA = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_SRC_EA
MMA8X5X_TRANSIENT_THS_MASK = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_THS_MASK
MMA8X5X_TRANSIENT_THS_DBCNTM = _pyupm_mma8x5x.MMA8X5X_TRANSIENT_THS_DBCNTM
MMA8X5X_PULSE_CFG_XSPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_XSPEFE
MMA8X5X_PULSE_CFG_XDPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_XDPEFE
MMA8X5X_PULSE_CFG_YSPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_YSPEFE
MMA8X5X_PULSE_CFG_YDPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_YDPEFE
MMA8X5X_PULSE_CFG_ZSPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_ZSPEFE
MMA8X5X_PULSE_CFG_ZDPEFE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_ZDPEFE
MMA8X5X_PULSE_CFG_ELE = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_ELE
MMA8X5X_PULSE_CFG_DPA = _pyupm_mma8x5x.MMA8X5X_PULSE_CFG_DPA
MMA8X5X_PULSE_SRC_POLX = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_POLX
MMA8X5X_PULSE_SRC_POLY = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_POLY
MMA8X5X_PULSE_SRC_POLZ = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_POLZ
MMA8X5X_PULSE_SRC_DPE = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_DPE
MMA8X5X_PULSE_SRC_AXX = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_AXX
MMA8X5X_PULSE_SRC_AXY = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_AXY
MMA8X5X_PULSE_SRC_AXZ = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_AXZ
MMA8X5X_PULSE_SRC_EA = _pyupm_mma8x5x.MMA8X5X_PULSE_SRC_EA
MMA8X5X_PULSE_THSX_MASK = _pyupm_mma8x5x.MMA8X5X_PULSE_THSX_MASK
MMA8X5X_PULSE_THSY_MASK = _pyupm_mma8x5x.MMA8X5X_PULSE_THSY_MASK
MMA8X5X_PULSE_THSZ_MASK = _pyupm_mma8x5x.MMA8X5X_PULSE_THSZ_MASK
MMA8X5X_CTRL_REG1_ACTIVE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ACTIVE
MMA8X5X_CTRL_REG1_F_READ = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_F_READ
MMA8X5X_CTRL_REG1_DR_MASK = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_DR_MASK
MMA8X5X_CTRL_REG1_DR_SHIFT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_DR_SHIFT
MMA8X5X_CTRL_REG1_ASR_MASK = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ASR_MASK
MMA8X5X_CTRL_REG1_ASR_50HZ = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ASR_50HZ
MMA8X5X_CTRL_REG1_ASR_12HZ5 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ASR_12HZ5
MMA8X5X_CTRL_REG1_ASR_6HZ25 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ASR_6HZ25
MMA8X5X_CTRL_REG1_ASR_1HZ56 = _pyupm_mma8x5x.MMA8X5X_CTRL_REG1_ASR_1HZ56
MMA8X5X_CTRL_REG2_MODS_MASK = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_MODS_MASK
MMA8X5X_CTRL_REG2_MODS_NORMAL = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_MODS_NORMAL
MMA8X5X_CTRL_REG2_MODS_LNLP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_MODS_LNLP
MMA8X5X_CTRL_REG2_MODS_HR = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_MODS_HR
MMA8X5X_CTRL_REG2_MODS_LP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_MODS_LP
MMA8X5X_CTRL_REG2_SLPE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SLPE
MMA8X5X_CTRL_REG2_SMODS_MASK = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SMODS_MASK
MMA8X5X_CTRL_REG2_SMODS_NORMAL = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SMODS_NORMAL
MMA8X5X_CTRL_REG2_SMODS_LNLP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SMODS_LNLP
MMA8X5X_CTRL_REG2_SMODS_HR = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SMODS_HR
MMA8X5X_CTRL_REG2_SMODS_LP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_SMODS_LP
MMA8X5X_CTRL_REG2_RST = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_RST
MMA8X5X_CTRL_REG2_ST = _pyupm_mma8x5x.MMA8X5X_CTRL_REG2_ST
MMA8X5X_CTRL_REG3_PP_OD = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_PP_OD
MMA8X5X_CTRL_REG3_IPOL = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_IPOL
MMA8X5X_CTRL_REG3_WAKE_FF_MT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_WAKE_FF_MT
MMA8X5X_CTRL_REG3_WAKE_PULSE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_WAKE_PULSE
MMA8X5X_CTRL_REG3_WAKE_LNDPRT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_WAKE_LNDPRT
MMA8X5X_CTRL_REG3_WAKE_TRANS = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_WAKE_TRANS
MMA8X5X_CTRL_REG3_FIFO_GATE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG3_FIFO_GATE
MMA8X5X_CTRL_REG4_INT_EN_DRDY = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_DRDY
MMA8X5X_CTRL_REG4_INT_EN_FF_MT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_FF_MT
MMA8X5X_CTRL_REG4_INT_EN_PULSE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_PULSE
MMA8X5X_CTRL_REG4_INT_EN_LNDPRT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_LNDPRT
MMA8X5X_CTRL_REG4_INT_EN_TRANS = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_TRANS
MMA8X5X_CTRL_REG4_INT_EN_FIFO = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_FIFO
MMA8X5X_CTRL_REG4_INT_EN_ASLP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG4_INT_EN_ASLP
MMA8X5X_CTRL_REG5_INT_CFG_DRDY = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_DRDY
MMA8X5X_CTRL_REG5_INT_CFG_FF_MT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_FF_MT
MMA8X5X_CTRL_REG5_INT_CFG_PULSE = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_PULSE
MMA8X5X_CTRL_REG5_INT_CFG_LNDPRT = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_LNDPRT
MMA8X5X_CTRL_REG5_INT_CFG_TRANS = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_TRANS
MMA8X5X_CTRL_REG5_INT_CFG_FIFO = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_FIFO
MMA8X5X_CTRL_REG5_INT_CFG_ASLP = _pyupm_mma8x5x.MMA8X5X_CTRL_REG5_INT_CFG_ASLP
class mma8x5x_params_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, mma8x5x_params_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, mma8x5x_params_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["type"] = _pyupm_mma8x5x.mma8x5x_params_t_type_set
    __swig_getmethods__["type"] = _pyupm_mma8x5x.mma8x5x_params_t_type_get
    if _newclass:
        type = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_type_get, _pyupm_mma8x5x.mma8x5x_params_t_type_set)
    __swig_setmethods__["rate"] = _pyupm_mma8x5x.mma8x5x_params_t_rate_set
    __swig_getmethods__["rate"] = _pyupm_mma8x5x.mma8x5x_params_t_rate_get
    if _newclass:
        rate = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_rate_get, _pyupm_mma8x5x.mma8x5x_params_t_rate_set)
    __swig_setmethods__["range"] = _pyupm_mma8x5x.mma8x5x_params_t_range_set
    __swig_getmethods__["range"] = _pyupm_mma8x5x.mma8x5x_params_t_range_get
    if _newclass:
        range = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_range_get, _pyupm_mma8x5x.mma8x5x_params_t_range_set)
    __swig_setmethods__["offsetX"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetX_set
    __swig_getmethods__["offsetX"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetX_get
    if _newclass:
        offsetX = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_offsetX_get, _pyupm_mma8x5x.mma8x5x_params_t_offsetX_set)
    __swig_setmethods__["offsetY"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetY_set
    __swig_getmethods__["offsetY"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetY_get
    if _newclass:
        offsetY = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_offsetY_get, _pyupm_mma8x5x.mma8x5x_params_t_offsetY_set)
    __swig_setmethods__["offsetZ"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetZ_set
    __swig_getmethods__["offsetZ"] = _pyupm_mma8x5x.mma8x5x_params_t_offsetZ_get
    if _newclass:
        offsetZ = _swig_property(_pyupm_mma8x5x.mma8x5x_params_t_offsetZ_get, _pyupm_mma8x5x.mma8x5x_params_t_offsetZ_set)

    def __init__(self):
        this = _pyupm_mma8x5x.new_mma8x5x_params_t()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mma8x5x.delete_mma8x5x_params_t
    __del__ = lambda self: None
mma8x5x_params_t_swigregister = _pyupm_mma8x5x.mma8x5x_params_t_swigregister
mma8x5x_params_t_swigregister(mma8x5x_params_t)

class mma8x5x_data_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, mma8x5x_data_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, mma8x5x_data_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["x"] = _pyupm_mma8x5x.mma8x5x_data_t_x_set
    __swig_getmethods__["x"] = _pyupm_mma8x5x.mma8x5x_data_t_x_get
    if _newclass:
        x = _swig_property(_pyupm_mma8x5x.mma8x5x_data_t_x_get, _pyupm_mma8x5x.mma8x5x_data_t_x_set)
    __swig_setmethods__["y"] = _pyupm_mma8x5x.mma8x5x_data_t_y_set
    __swig_getmethods__["y"] = _pyupm_mma8x5x.mma8x5x_data_t_y_get
    if _newclass:
        y = _swig_property(_pyupm_mma8x5x.mma8x5x_data_t_y_get, _pyupm_mma8x5x.mma8x5x_data_t_y_set)
    __swig_setmethods__["z"] = _pyupm_mma8x5x.mma8x5x_data_t_z_set
    __swig_getmethods__["z"] = _pyupm_mma8x5x.mma8x5x_data_t_z_get
    if _newclass:
        z = _swig_property(_pyupm_mma8x5x.mma8x5x_data_t_z_get, _pyupm_mma8x5x.mma8x5x_data_t_z_set)

    def __init__(self):
        this = _pyupm_mma8x5x.new_mma8x5x_data_t()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_mma8x5x.delete_mma8x5x_data_t
    __del__ = lambda self: None
mma8x5x_data_t_swigregister = _pyupm_mma8x5x.mma8x5x_data_t_swigregister
mma8x5x_data_t_swigregister(mma8x5x_data_t)

class MMA8X5X(upm.pyupm_interfaces.iAcceleration):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, MMA8X5X, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iAcceleration]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, MMA8X5X, name)
    __repr__ = _swig_repr

    def __init__(self, bus, params=None, devAddr=0x1D):
        this = _pyupm_mma8x5x.new_MMA8X5X(bus, params, devAddr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def setDeviceName(self, type):
        return _pyupm_mma8x5x.MMA8X5X_setDeviceName(self, type)

    def setDeviceParams(self, params):
        return _pyupm_mma8x5x.MMA8X5X_setDeviceParams(self, params)

    def setUserOffset(self, x, y, z):
        return _pyupm_mma8x5x.MMA8X5X_setUserOffset(self, x, y, z)

    def setActive(self):
        return _pyupm_mma8x5x.MMA8X5X_setActive(self)

    def setStandby(self):
        return _pyupm_mma8x5x.MMA8X5X_setStandby(self)

    def isReady(self):
        return _pyupm_mma8x5x.MMA8X5X_isReady(self)

    def sampleData(self):
        return _pyupm_mma8x5x.MMA8X5X_sampleData(self)

    def getX(self, bSampleData=0):
        return _pyupm_mma8x5x.MMA8X5X_getX(self, bSampleData)

    def getY(self, bSampleData=0):
        return _pyupm_mma8x5x.MMA8X5X_getY(self, bSampleData)

    def getZ(self, bSampleData=0):
        return _pyupm_mma8x5x.MMA8X5X_getZ(self, bSampleData)

    def getAcceleration(self):
        return _pyupm_mma8x5x.MMA8X5X_getAcceleration(self)

    def getData(self, data, bSampleData=0):
        return _pyupm_mma8x5x.MMA8X5X_getData(self, data, bSampleData)
    __swig_destroy__ = _pyupm_mma8x5x.delete_MMA8X5X
    __del__ = lambda self: None
MMA8X5X_swigregister = _pyupm_mma8x5x.MMA8X5X_swigregister
MMA8X5X_swigregister(MMA8X5X)

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


