# 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_l3gd20
else:
    import _pyupm_l3gd20

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_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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __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):
        _pyupm_l3gd20.L3GD20_swiginit(self, _pyupm_l3gd20.new_L3GD20(*args))
    __swig_destroy__ = _pyupm_l3gd20.delete_L3GD20

    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)

# Register L3GD20 in _pyupm_l3gd20:
_pyupm_l3gd20.L3GD20_swigregister(L3GD20)



