# 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_l3gd20')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_l3gd20')
    _pyupm_l3gd20 = 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_l3gd20', [dirname(__file__)])
        except ImportError:
            import _pyupm_l3gd20
            return _pyupm_l3gd20
        try:
            _mod = imp.load_module('_pyupm_l3gd20', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_l3gd20 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_l3gd20
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_l3gd20.getVersion()
getVersion = _pyupm_l3gd20.getVersion
L3GD20_DEFAULT_I2C_BUS = _pyupm_l3gd20.L3GD20_DEFAULT_I2C_BUS
L3GD20_DEFAULT_I2C_ADDR = _pyupm_l3gd20.L3GD20_DEFAULT_I2C_ADDR
L3GD20_DEFAULT_CHIP_ID = _pyupm_l3gd20.L3GD20_DEFAULT_CHIP_ID
L3GD20H_DEFAULT_CHIP_ID = _pyupm_l3gd20.L3GD20H_DEFAULT_CHIP_ID
class L3GD20(upm.pyupm_interfaces.iGyroscope):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iGyroscope]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, L3GD20, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iGyroscope]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, L3GD20, name)
    __repr__ = _swig_repr
    REG_WHO_AM_I = _pyupm_l3gd20.L3GD20_REG_WHO_AM_I
    REG_CTRL_REG1 = _pyupm_l3gd20.L3GD20_REG_CTRL_REG1
    REG_CTRL_REG2 = _pyupm_l3gd20.L3GD20_REG_CTRL_REG2
    REG_CTRL_REG3 = _pyupm_l3gd20.L3GD20_REG_CTRL_REG3
    REG_CTRL_REG4 = _pyupm_l3gd20.L3GD20_REG_CTRL_REG4
    REG_CTRL_REG5 = _pyupm_l3gd20.L3GD20_REG_CTRL_REG5
    REG_REFERENCE = _pyupm_l3gd20.L3GD20_REG_REFERENCE
    REG_OUT_TEMPERATURE = _pyupm_l3gd20.L3GD20_REG_OUT_TEMPERATURE
    REG_STATUS_REG = _pyupm_l3gd20.L3GD20_REG_STATUS_REG
    REG_OUT_X_L = _pyupm_l3gd20.L3GD20_REG_OUT_X_L
    REG_OUT_X_H = _pyupm_l3gd20.L3GD20_REG_OUT_X_H
    REG_OUT_Y_L = _pyupm_l3gd20.L3GD20_REG_OUT_Y_L
    REG_OUT_Y_H = _pyupm_l3gd20.L3GD20_REG_OUT_Y_H
    REG_OUT_Z_L = _pyupm_l3gd20.L3GD20_REG_OUT_Z_L
    REG_OUT_Z_H = _pyupm_l3gd20.L3GD20_REG_OUT_Z_H
    REG_FIFO_CTRL_REG = _pyupm_l3gd20.L3GD20_REG_FIFO_CTRL_REG
    REG_FIFO_SRC_REG = _pyupm_l3gd20.L3GD20_REG_FIFO_SRC_REG
    REG_INT1_CFG = _pyupm_l3gd20.L3GD20_REG_INT1_CFG
    REG_INT1_SRC = _pyupm_l3gd20.L3GD20_REG_INT1_SRC
    REG_INT1_TSH_XH = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_XH
    REG_INT1_TSH_XL = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_XL
    REG_INT1_TSH_YH = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_YH
    REG_INT1_TSH_YL = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_YL
    REG_INT1_TSH_ZH = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_ZH
    REG_INT1_TSH_ZL = _pyupm_l3gd20.L3GD20_REG_INT1_TSH_ZL
    REG_INT1_DURATION = _pyupm_l3gd20.L3GD20_REG_INT1_DURATION
    CTRL_REG1_YEN = _pyupm_l3gd20.L3GD20_CTRL_REG1_YEN
    CTRL_REG1_XEN = _pyupm_l3gd20.L3GD20_CTRL_REG1_XEN
    CTRL_REG1_ZEN = _pyupm_l3gd20.L3GD20_CTRL_REG1_ZEN
    CTRL_REG1_PD = _pyupm_l3gd20.L3GD20_CTRL_REG1_PD
    CTRL_REG1_BW0 = _pyupm_l3gd20.L3GD20_CTRL_REG1_BW0
    CTRL_REG1_BW1 = _pyupm_l3gd20.L3GD20_CTRL_REG1_BW1
    _CTRL_REG1_BW_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG1_BW_MASK
    _CTRL_REG1_BW_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG1_BW_SHIFT
    CTRL_REG1_DR0 = _pyupm_l3gd20.L3GD20_CTRL_REG1_DR0
    CTRL_REG1_DR1 = _pyupm_l3gd20.L3GD20_CTRL_REG1_DR1
    _CTRL_REG1_DR_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG1_DR_MASK
    _CTRL_REG1_DR_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG1_DR_SHIFT
    _CTRL_REG1_ODR_CUTOFF0 = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF0
    _CTRL_REG1_ODR_CUTOFF1 = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF1
    _CTRL_REG1_ODR_CUTOFF2 = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF2
    _CTRL_REG1_ODR_CUTOFF3 = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF3
    _CTRL_REG1_ODR_CUTOFF_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF_MASK
    _CTRL_REG1_ODR_CUTOFF_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG1_ODR_CUTOFF_SHIFT
    ODR_CUTOFF_95_12_5 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_95_12_5
    ODR_CUTOFF_95_25 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_95_25
    ODR_CUTOFF_190_12_5 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_190_12_5
    ODR_CUTOFF_190_25 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_190_25
    ODR_CUTOFF_190_50 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_190_50
    ODR_CUTOFF_190_70 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_190_70
    ODR_CUTOFF_380_20 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_380_20
    ODR_CUTOFF_380_25 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_380_25
    ODR_CUTOFF_380_50 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_380_50
    ODR_CUTOFF_380_100 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_380_100
    ODR_CUTOFF_760_30 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_760_30
    ODR_CUTOFF_760_35 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_760_35
    ODR_CUTOFF_760_50 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_760_50
    ODR_CUTOFF_760_100 = _pyupm_l3gd20.L3GD20_ODR_CUTOFF_760_100
    POWER_DOWN = _pyupm_l3gd20.L3GD20_POWER_DOWN
    POWER_SLEEP = _pyupm_l3gd20.L3GD20_POWER_SLEEP
    POWER_NORMAL = _pyupm_l3gd20.L3GD20_POWER_NORMAL
    _CTRL_REG2_RESERVED_BITS = _pyupm_l3gd20.L3GD20__CTRL_REG2_RESERVED_BITS
    CTRL_REG2_HPCF0 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPCF0
    CTRL_REG2_HPCF1 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPCF1
    CTRL_REG2_HPCF2 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPCF2
    CTRL_REG2_HPCF3 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPCF3
    _CTRL_REG2_HPCF_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG2_HPCF_MASK
    _CTRL_REG2_HPCF_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG2_HPCF_SHIFT
    CTRL_REG2_HPM0 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPM0
    CTRL_REG2_HPM1 = _pyupm_l3gd20.L3GD20_CTRL_REG2_HPM1
    _CTRL_REG2_HPM_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG2_HPM_MASK
    _CTRL_REG2_HPM_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG2_HPM_SHIFT
    HPCF_7_2 = _pyupm_l3gd20.L3GD20_HPCF_7_2
    HPCF_3_5 = _pyupm_l3gd20.L3GD20_HPCF_3_5
    HPCF_1_8 = _pyupm_l3gd20.L3GD20_HPCF_1_8
    HPCF_0_9 = _pyupm_l3gd20.L3GD20_HPCF_0_9
    HPCF_0_45 = _pyupm_l3gd20.L3GD20_HPCF_0_45
    HPCF_0_18 = _pyupm_l3gd20.L3GD20_HPCF_0_18
    HPCF_0_09 = _pyupm_l3gd20.L3GD20_HPCF_0_09
    HPCF_0_045 = _pyupm_l3gd20.L3GD20_HPCF_0_045
    HPCF_0_018 = _pyupm_l3gd20.L3GD20_HPCF_0_018
    HPCF_0_009 = _pyupm_l3gd20.L3GD20_HPCF_0_009
    HPM_NORMAL_RESET_FILTER = _pyupm_l3gd20.L3GD20_HPM_NORMAL_RESET_FILTER
    HPM_REFERENCE_SIGNAL = _pyupm_l3gd20.L3GD20_HPM_REFERENCE_SIGNAL
    HPM_NORMAL = _pyupm_l3gd20.L3GD20_HPM_NORMAL
    HPM_AUTORESET_ON_INT = _pyupm_l3gd20.L3GD20_HPM_AUTORESET_ON_INT
    CTRL_REG3_I2_EMPTY = _pyupm_l3gd20.L3GD20_CTRL_REG3_I2_EMPTY
    CTRL_REG3_I2_ORUN = _pyupm_l3gd20.L3GD20_CTRL_REG3_I2_ORUN
    CTRL_REG3_I2_WTM = _pyupm_l3gd20.L3GD20_CTRL_REG3_I2_WTM
    CTRL_REG3_I2_DRDY = _pyupm_l3gd20.L3GD20_CTRL_REG3_I2_DRDY
    CTRL_REG3_PP_OD = _pyupm_l3gd20.L3GD20_CTRL_REG3_PP_OD
    CTRL_REG3_H_LACTIVE = _pyupm_l3gd20.L3GD20_CTRL_REG3_H_LACTIVE
    CTRL_REG3_I1_BOOT = _pyupm_l3gd20.L3GD20_CTRL_REG3_I1_BOOT
    CTRL_REG3_I1_INT1 = _pyupm_l3gd20.L3GD20_CTRL_REG3_I1_INT1
    _CTRL_REG4_RESERVED_BITS = _pyupm_l3gd20.L3GD20__CTRL_REG4_RESERVED_BITS
    CTRL_REG4_SIM = _pyupm_l3gd20.L3GD20_CTRL_REG4_SIM
    CTRL_REG4_FS0 = _pyupm_l3gd20.L3GD20_CTRL_REG4_FS0
    CTRL_REG4_FS1 = _pyupm_l3gd20.L3GD20_CTRL_REG4_FS1
    _CTRL_REG4_FS_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG4_FS_MASK
    _CTRL_REG4_FS_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG4_FS_SHIFT
    CTRL_REG4_BLE = _pyupm_l3gd20.L3GD20_CTRL_REG4_BLE
    CTRL_REG4_BDU = _pyupm_l3gd20.L3GD20_CTRL_REG4_BDU
    FS_250 = _pyupm_l3gd20.L3GD20_FS_250
    FS_500 = _pyupm_l3gd20.L3GD20_FS_500
    FS_2000 = _pyupm_l3gd20.L3GD20_FS_2000
    _CTRL_REG5_RESERVED_BITS = _pyupm_l3gd20.L3GD20__CTRL_REG5_RESERVED_BITS
    CTRL_REG5_OUT_SEL0 = _pyupm_l3gd20.L3GD20_CTRL_REG5_OUT_SEL0
    CTRL_REG5_OUT_SEL1 = _pyupm_l3gd20.L3GD20_CTRL_REG5_OUT_SEL1
    _CTRL_REG5_OUT_SEL_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG5_OUT_SEL_MASK
    _CTRL_REG5_OUT_SEL_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG5_OUT_SEL_SHIFT
    CTRL_REG5_INT1_SEL0 = _pyupm_l3gd20.L3GD20_CTRL_REG5_INT1_SEL0
    CTRL_REG5_INT1_SEL1 = _pyupm_l3gd20.L3GD20_CTRL_REG5_INT1_SEL1
    _CTRL_REG5_INT1_SEL_MASK = _pyupm_l3gd20.L3GD20__CTRL_REG5_INT1_SEL_MASK
    _CTRL_REG5_INT1_SEL_SHIFT = _pyupm_l3gd20.L3GD20__CTRL_REG5_INT1_SEL_SHIFT
    CTRL_REG5_HPEN = _pyupm_l3gd20.L3GD20_CTRL_REG5_HPEN
    CTRL_REG5_FIFO_EN = _pyupm_l3gd20.L3GD20_CTRL_REG5_FIFO_EN
    CTRL_REG5_BOOT = _pyupm_l3gd20.L3GD20_CTRL_REG5_BOOT
    STATUS_REG_XDA = _pyupm_l3gd20.L3GD20_STATUS_REG_XDA
    STATUS_REG_YDA = _pyupm_l3gd20.L3GD20_STATUS_REG_YDA
    STATUS_REG_ZDA = _pyupm_l3gd20.L3GD20_STATUS_REG_ZDA
    STATUS_REG_ZYXDA = _pyupm_l3gd20.L3GD20_STATUS_REG_ZYXDA
    STATUS_REG_XOR = _pyupm_l3gd20.L3GD20_STATUS_REG_XOR
    STATUS_REG_YOR = _pyupm_l3gd20.L3GD20_STATUS_REG_YOR
    STATUS_REG_ZOR = _pyupm_l3gd20.L3GD20_STATUS_REG_ZOR
    STATUS_REG_ZYXOR = _pyupm_l3gd20.L3GD20_STATUS_REG_ZYXOR
    FIFO_CTRL_REG_WTM0 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_WTM0
    FIFO_CTRL_REG_WTM1 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_WTM1
    FIFO_CTRL_REG_WTM2 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_WTM2
    FIFO_CTRL_REG_WTM3 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_WTM3
    FIFO_CTRL_REG_WTM4 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_WTM4
    _FIFO_CTRL_REG_WTM_MASK = _pyupm_l3gd20.L3GD20__FIFO_CTRL_REG_WTM_MASK
    _FIFO_CTRL_REG_WTM_SHIFT = _pyupm_l3gd20.L3GD20__FIFO_CTRL_REG_WTM_SHIFT
    FIFO_CTRL_REG_FM0 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_FM0
    FIFO_CTRL_REG_FM1 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_FM1
    FIFO_CTRL_REG_FM2 = _pyupm_l3gd20.L3GD20_FIFO_CTRL_REG_FM2
    _FIFO_CTRL_REG_FM_MASK = _pyupm_l3gd20.L3GD20__FIFO_CTRL_REG_FM_MASK
    _FIFO_CTRL_REG_FM_SHIFT = _pyupm_l3gd20.L3GD20__FIFO_CTRL_REG_FM_SHIFT
    FIFO_MODE_BYPASS = _pyupm_l3gd20.L3GD20_FIFO_MODE_BYPASS
    FIFO_MODE_FIFO = _pyupm_l3gd20.L3GD20_FIFO_MODE_FIFO
    FIFO_MODE_STREAM = _pyupm_l3gd20.L3GD20_FIFO_MODE_STREAM
    FIFO_MODE_STREAM_TO_FIFO = _pyupm_l3gd20.L3GD20_FIFO_MODE_STREAM_TO_FIFO
    FIFO_MODE_BYPASS_TO_STREAM = _pyupm_l3gd20.L3GD20_FIFO_MODE_BYPASS_TO_STREAM
    FIFO_SRC_REG_FSS0 = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_FSS0
    FIFO_SRC_REG_FSS1 = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_FSS1
    FIFO_SRC_REG_FSS2 = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_FSS2
    FIFO_SRC_REG_FSS3 = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_FSS3
    FIFO_SRC_REG_FSS4 = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_FSS4
    _FIFO_SRC_REG_FSS_MASK = _pyupm_l3gd20.L3GD20__FIFO_SRC_REG_FSS_MASK
    _FIFO_SRC_REG_FSS_SHIFT = _pyupm_l3gd20.L3GD20__FIFO_SRC_REG_FSS_SHIFT
    FIFO_SRC_REG_EMPTY = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_EMPTY
    FIFO_SRC_REG_OVRN = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_OVRN
    FIFO_SRC_REG_WTM = _pyupm_l3gd20.L3GD20_FIFO_SRC_REG_WTM
    INT1_CFG_XLIE = _pyupm_l3gd20.L3GD20_INT1_CFG_XLIE
    INT1_CFG_XHIE = _pyupm_l3gd20.L3GD20_INT1_CFG_XHIE
    INT1_CFG_YLIE = _pyupm_l3gd20.L3GD20_INT1_CFG_YLIE
    INT1_CFG_YHIE = _pyupm_l3gd20.L3GD20_INT1_CFG_YHIE
    INT1_CFG_ZLIE = _pyupm_l3gd20.L3GD20_INT1_CFG_ZLIE
    INT1_CFG_ZHIE = _pyupm_l3gd20.L3GD20_INT1_CFG_ZHIE
    INT1_CFG_LIR = _pyupm_l3gd20.L3GD20_INT1_CFG_LIR
    INT1_CFG_AND_OR = _pyupm_l3gd20.L3GD20_INT1_CFG_AND_OR
    _INT1_SRC_RESERVED_BITS = _pyupm_l3gd20.L3GD20__INT1_SRC_RESERVED_BITS
    INT1_SRC_XL = _pyupm_l3gd20.L3GD20_INT1_SRC_XL
    INT1_SRC_XH = _pyupm_l3gd20.L3GD20_INT1_SRC_XH
    INT1_SRC_YL = _pyupm_l3gd20.L3GD20_INT1_SRC_YL
    INT1_SRC_YH = _pyupm_l3gd20.L3GD20_INT1_SRC_YH
    INT1_SRC_ZL = _pyupm_l3gd20.L3GD20_INT1_SRC_ZL
    INT1_SRC_ZH = _pyupm_l3gd20.L3GD20_INT1_SRC_ZH
    INT1_SRC_IA = _pyupm_l3gd20.L3GD20_INT1_SRC_IA
    INT1_DURATION_D0 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D0
    INT1_DURATION_D1 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D1
    INT1_DURATION_D2 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D2
    INT1_DURATION_D3 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D3
    INT1_DURATION_D4 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D4
    INT1_DURATION_D5 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D5
    INT1_DURATION_D6 = _pyupm_l3gd20.L3GD20_INT1_DURATION_D6
    INT1_DURATION_WAIT = _pyupm_l3gd20.L3GD20_INT1_DURATION_WAIT

    def __init__(self, *args):
        this = _pyupm_l3gd20.new_L3GD20(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_l3gd20.delete_L3GD20
    __del__ = lambda self: None

    def getChipID(self):
        return _pyupm_l3gd20.L3GD20_getChipID(self)

    def getGyroscope(self, *args):
        return _pyupm_l3gd20.L3GD20_getGyroscope(self, *args)

    def setPowerMode(self, mode):
        return _pyupm_l3gd20.L3GD20_setPowerMode(self, mode)

    def setRange(self, range):
        return _pyupm_l3gd20.L3GD20_setRange(self, range)

    def update(self):
        return _pyupm_l3gd20.L3GD20_update(self)

    def getTemperature(self, fahrenheit=False):
        return _pyupm_l3gd20.L3GD20_getTemperature(self, fahrenheit)

    def setODR(self, odr):
        return _pyupm_l3gd20.L3GD20_setODR(self, odr)

    def enableBDU(self, enable):
        return _pyupm_l3gd20.L3GD20_enableBDU(self, enable)

    def getStatusBits(self):
        return _pyupm_l3gd20.L3GD20_getStatusBits(self)

    def installISR(self, isr, arg):
        return _pyupm_l3gd20.L3GD20_installISR(self, isr, arg)

    def getChannelValue(self, input, chan):
        return _pyupm_l3gd20.L3GD20_getChannelValue(self, input, chan)

    def enableBuffer(self, length):
        return _pyupm_l3gd20.L3GD20_enableBuffer(self, length)

    def disableBuffer(self):
        return _pyupm_l3gd20.L3GD20_disableBuffer(self)

    def setScale(self, scale):
        return _pyupm_l3gd20.L3GD20_setScale(self, scale)

    def setSamplingFrequency(self, sampling_frequency):
        return _pyupm_l3gd20.L3GD20_setSamplingFrequency(self, sampling_frequency)

    def enable3AxisChannel(self):
        return _pyupm_l3gd20.L3GD20_enable3AxisChannel(self)

    def extract3Axis(self, data, x, y, z):
        return _pyupm_l3gd20.L3GD20_extract3Axis(self, data, x, y, z)

    def initCalibrate(self):
        return _pyupm_l3gd20.L3GD20_initCalibrate(self)

    def getCalibratedStatus(self):
        return _pyupm_l3gd20.L3GD20_getCalibratedStatus(self)

    def getCalibratedData(self, bias_x, bias_y, bias_z):
        return _pyupm_l3gd20.L3GD20_getCalibratedData(self, bias_x, bias_y, bias_z)

    def loadCalibratedData(self, bias_x, bias_y, bias_z):
        return _pyupm_l3gd20.L3GD20_loadCalibratedData(self, bias_x, bias_y, bias_z)

    def readReg(self, reg):
        return _pyupm_l3gd20.L3GD20_readReg(self, reg)

    def readRegs(self, reg, buffer, len):
        return _pyupm_l3gd20.L3GD20_readRegs(self, reg, buffer, len)

    def writeReg(self, reg, val):
        return _pyupm_l3gd20.L3GD20_writeReg(self, reg, val)

    def gyroCollect(self, x, y, z):
        return _pyupm_l3gd20.L3GD20_gyroCollect(self, x, y, z)

    def gyroDenoiseMedian(self, x, y, z):
        return _pyupm_l3gd20.L3GD20_gyroDenoiseMedian(self, x, y, z)

    def median(self, queue, size):
        return _pyupm_l3gd20.L3GD20_median(self, queue, size)

    def partition(self, list, left, right, pivot_index):
        return _pyupm_l3gd20.L3GD20_partition(self, list, left, right, pivot_index)

    def clampGyroReadingsToZero(self, x, y, z):
        return _pyupm_l3gd20.L3GD20_clampGyroReadingsToZero(self, x, y, z)
L3GD20_swigregister = _pyupm_l3gd20.L3GD20_swigregister
L3GD20_swigregister(L3GD20)

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


