# 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_tmp006
else:
    import _pyupm_tmp006

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_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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, bus, conv_rate=0x02, devAddr=0x41):
        _pyupm_tmp006.TMP006_swiginit(self, _pyupm_tmp006.new_TMP006(bus, conv_rate, devAddr))

    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

# Register TMP006 in _pyupm_tmp006:
_pyupm_tmp006.TMP006_swigregister(TMP006)



