# 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_tmp006')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_tmp006')
    _pyupm_tmp006 = 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_tmp006', [dirname(__file__)])
        except ImportError:
            import _pyupm_tmp006
            return _pyupm_tmp006
        try:
            _mod = imp.load_module('_pyupm_tmp006', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_tmp006 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_tmp006
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


def getVersion():
    return _pyupm_tmp006.getVersion()
getVersion = _pyupm_tmp006.getVersion
TMP006_NAME = _pyupm_tmp006.TMP006_NAME
TMP006_I2C_ADDRESS = _pyupm_tmp006.TMP006_I2C_ADDRESS
TMP006_MANUFACTURER_ID = _pyupm_tmp006.TMP006_MANUFACTURER_ID
TMP006_DEVICE_ID = _pyupm_tmp006.TMP006_DEVICE_ID
TMP007_I2C_ADDRESS = _pyupm_tmp006.TMP007_I2C_ADDRESS
TMP007_DEVICE_ID = _pyupm_tmp006.TMP007_DEVICE_ID
TMP006_CONVERSION_TIME = _pyupm_tmp006.TMP006_CONVERSION_TIME
TMP006_SENSOR_VOLTAGE = _pyupm_tmp006.TMP006_SENSOR_VOLTAGE
TMP006_LOCAL_TEMPERATURE = _pyupm_tmp006.TMP006_LOCAL_TEMPERATURE
TMP006_CONFIGURATION = _pyupm_tmp006.TMP006_CONFIGURATION
TMP006_MANUFACTURER_ID_REG = _pyupm_tmp006.TMP006_MANUFACTURER_ID_REG
TMP006_DEVICE_ID_REG = _pyupm_tmp006.TMP006_DEVICE_ID_REG
TMP007_DEVICE_ID_REG = _pyupm_tmp006.TMP007_DEVICE_ID_REG
TMP006_RST_SOFT = _pyupm_tmp006.TMP006_RST_SOFT
TMP006_CONFIG_MOD_SHIFT = _pyupm_tmp006.TMP006_CONFIG_MOD_SHIFT
TMP006_CONFIG_MOD_MASK = _pyupm_tmp006.TMP006_CONFIG_MOD_MASK
TMP006_CONFIG_MOD_CC = _pyupm_tmp006.TMP006_CONFIG_MOD_CC
TMP006_CONFIG_MOD_OFF = _pyupm_tmp006.TMP006_CONFIG_MOD_OFF
TMP006_CONFIG_CR_SHIFT = _pyupm_tmp006.TMP006_CONFIG_CR_SHIFT
TMP006_CONFIG_CR_MASK = _pyupm_tmp006.TMP006_CONFIG_CR_MASK
TMP006_CONFIG_CR_AS1 = _pyupm_tmp006.TMP006_CONFIG_CR_AS1
TMP006_CONFIG_CR_AS2 = _pyupm_tmp006.TMP006_CONFIG_CR_AS2
TMP006_CONFIG_CR_AS4 = _pyupm_tmp006.TMP006_CONFIG_CR_AS4
TMP006_CONFIG_CR_AS8 = _pyupm_tmp006.TMP006_CONFIG_CR_AS8
TMP006_CONFIG_CR_AS16 = _pyupm_tmp006.TMP006_CONFIG_CR_AS16
TMP006_CONFIG_CR_DEF = _pyupm_tmp006.TMP006_CONFIG_CR_DEF
TMP006_DRDY_EN = _pyupm_tmp006.TMP006_DRDY_EN
TMP006_DRDY_DATA_RDY = _pyupm_tmp006.TMP006_DRDY_DATA_RDY
TMP006_CCONST_S0 = _pyupm_tmp006.TMP006_CCONST_S0
TMP006_CCONST_A1 = _pyupm_tmp006.TMP006_CCONST_A1
TMP006_CCONST_A2 = _pyupm_tmp006.TMP006_CCONST_A2
TMP006_CCONST_TREF = _pyupm_tmp006.TMP006_CCONST_TREF
TMP006_CCONST_B0 = _pyupm_tmp006.TMP006_CCONST_B0
TMP006_CCONST_B1 = _pyupm_tmp006.TMP006_CCONST_B1
TMP006_CCONST_B2 = _pyupm_tmp006.TMP006_CCONST_B2
TMP006_CCONST_C2 = _pyupm_tmp006.TMP006_CCONST_C2
TMP006_CCONST_LSB_SIZE = _pyupm_tmp006.TMP006_CCONST_LSB_SIZE
TMP006_SEN = _pyupm_tmp006.TMP006_SEN
TMP007_SEN = _pyupm_tmp006.TMP007_SEN
class TMP006(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, TMP006, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, TMP006, name)
    __repr__ = _swig_repr

    def __init__(self, bus, conv_rate=0x02, devAddr=0x41):
        this = _pyupm_tmp006.new_TMP006(bus, conv_rate, devAddr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def checkID(self):
        return _pyupm_tmp006.TMP006_checkID(self)

    def resetSensor(self):
        return _pyupm_tmp006.TMP006_resetSensor(self)

    def setActive(self):
        return _pyupm_tmp006.TMP006_setActive(self)

    def setStandby(self):
        return _pyupm_tmp006.TMP006_setStandby(self)

    def sampleData(self):
        return _pyupm_tmp006.TMP006_sampleData(self)

    def convert_data(self, rawv, rawt, tamb, tobj):
        return _pyupm_tmp006.TMP006_convert_data(self, rawv, rawt, tamb, tobj)

    def getTemperature(self, bSampleData=0):
        return _pyupm_tmp006.TMP006_getTemperature(self, bSampleData)

    def getConfig(self):
        return _pyupm_tmp006.TMP006_getConfig(self)
    __swig_destroy__ = _pyupm_tmp006.delete_TMP006
    __del__ = lambda self: None
TMP006_swigregister = _pyupm_tmp006.TMP006_swigregister
TMP006_swigregister(TMP006)

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


