# 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_tcs37727')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_tcs37727')
    _pyupm_tcs37727 = 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_tcs37727', [dirname(__file__)])
        except ImportError:
            import _pyupm_tcs37727
            return _pyupm_tcs37727
        try:
            _mod = imp.load_module('_pyupm_tcs37727', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_tcs37727 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_tcs37727
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_tcs37727.getVersion()
getVersion = _pyupm_tcs37727.getVersion
TCS37727_NAME = _pyupm_tcs37727.TCS37727_NAME
TCS37727_I2C_ADDRESS = _pyupm_tcs37727.TCS37727_I2C_ADDRESS
TCS37727_DEVICE_ID = _pyupm_tcs37727.TCS37727_DEVICE_ID
TCS37727_DEVICE_ID_REG = _pyupm_tcs37727.TCS37727_DEVICE_ID_REG
TCS37727_ATIME_DEFAULT = _pyupm_tcs37727.TCS37727_ATIME_DEFAULT
TCS37727_AG_THRESHOLD_LOW = _pyupm_tcs37727.TCS37727_AG_THRESHOLD_LOW
TCS37727_AG_THRESHOLD_HIGH = _pyupm_tcs37727.TCS37727_AG_THRESHOLD_HIGH
TCS37727_ENABLE = _pyupm_tcs37727.TCS37727_ENABLE
TCS37727_ATIME = _pyupm_tcs37727.TCS37727_ATIME
TCS37727_PTIME = _pyupm_tcs37727.TCS37727_PTIME
TCS37727_WTIME = _pyupm_tcs37727.TCS37727_WTIME
TCS37727_AILTL = _pyupm_tcs37727.TCS37727_AILTL
TCS37727_AILTH = _pyupm_tcs37727.TCS37727_AILTH
TCS37727_AIHTL = _pyupm_tcs37727.TCS37727_AIHTL
TCS37727_AIHTH = _pyupm_tcs37727.TCS37727_AIHTH
TCS37727_PILTL = _pyupm_tcs37727.TCS37727_PILTL
TCS37727_PILTH = _pyupm_tcs37727.TCS37727_PILTH
TCS37727_PIHTL = _pyupm_tcs37727.TCS37727_PIHTL
TCS37727_PIHTH = _pyupm_tcs37727.TCS37727_PIHTH
TCS37727_PERS = _pyupm_tcs37727.TCS37727_PERS
TCS37727_CONFIG = _pyupm_tcs37727.TCS37727_CONFIG
TCS37727_PPULSE = _pyupm_tcs37727.TCS37727_PPULSE
TCS37727_CONTROL = _pyupm_tcs37727.TCS37727_CONTROL
TCS37727_STATUS = _pyupm_tcs37727.TCS37727_STATUS
TCS37727_CDATA = _pyupm_tcs37727.TCS37727_CDATA
TCS37727_CDATAH = _pyupm_tcs37727.TCS37727_CDATAH
TCS37727_RDATA = _pyupm_tcs37727.TCS37727_RDATA
TCS37727_RDATAH = _pyupm_tcs37727.TCS37727_RDATAH
TCS37727_GDATA = _pyupm_tcs37727.TCS37727_GDATA
TCS37727_GDATAH = _pyupm_tcs37727.TCS37727_GDATAH
TCS37727_BDATA = _pyupm_tcs37727.TCS37727_BDATA
TCS37727_BDATAH = _pyupm_tcs37727.TCS37727_BDATAH
TCS37727_PDATA = _pyupm_tcs37727.TCS37727_PDATA
TCS37727_PDATAH = _pyupm_tcs37727.TCS37727_PDATAH
TCS37727_BYTE_TRANS = _pyupm_tcs37727.TCS37727_BYTE_TRANS
TCS37727_INC_TRANS = _pyupm_tcs37727.TCS37727_INC_TRANS
TCS37727_SF_PICLR = _pyupm_tcs37727.TCS37727_SF_PICLR
TCS37727_SF_CICLR = _pyupm_tcs37727.TCS37727_SF_CICLR
TCS37727_SF_PCICLR = _pyupm_tcs37727.TCS37727_SF_PCICLR
TCS37727_ENABLE_PIEN = _pyupm_tcs37727.TCS37727_ENABLE_PIEN
TCS37727_ENABLE_AIEN = _pyupm_tcs37727.TCS37727_ENABLE_AIEN
TCS37727_ENABLE_WEN = _pyupm_tcs37727.TCS37727_ENABLE_WEN
TCS37727_ENABLE_PEN = _pyupm_tcs37727.TCS37727_ENABLE_PEN
TCS37727_ENABLE_AEN = _pyupm_tcs37727.TCS37727_ENABLE_AEN
TCS37727_ENABLE_PON = _pyupm_tcs37727.TCS37727_ENABLE_PON
TCS37727_CONTROL_PDRIVE_100 = _pyupm_tcs37727.TCS37727_CONTROL_PDRIVE_100
TCS37727_CONTROL_PDRIVE_50 = _pyupm_tcs37727.TCS37727_CONTROL_PDRIVE_50
TCS37727_CONTROL_PDRIVE_25 = _pyupm_tcs37727.TCS37727_CONTROL_PDRIVE_25
TCS37727_CONTROL_PDRIVE_12 = _pyupm_tcs37727.TCS37727_CONTROL_PDRIVE_12
TCS37727_CONTROL_PDRIVE_MASK = _pyupm_tcs37727.TCS37727_CONTROL_PDRIVE_MASK
TCS37727_CONTROL_AGAIN_1 = _pyupm_tcs37727.TCS37727_CONTROL_AGAIN_1
TCS37727_CONTROL_AGAIN_4 = _pyupm_tcs37727.TCS37727_CONTROL_AGAIN_4
TCS37727_CONTROL_AGAIN_16 = _pyupm_tcs37727.TCS37727_CONTROL_AGAIN_16
TCS37727_CONTROL_AGAIN_60 = _pyupm_tcs37727.TCS37727_CONTROL_AGAIN_60
TCS37727_CONTROL_AGAIN_MASK = _pyupm_tcs37727.TCS37727_CONTROL_AGAIN_MASK
TCS37727_ATIME_MIN = _pyupm_tcs37727.TCS37727_ATIME_MIN
TCS37727_ATIME_MAX = _pyupm_tcs37727.TCS37727_ATIME_MAX
DGF_IF = _pyupm_tcs37727.DGF_IF
R_COEF_IF = _pyupm_tcs37727.R_COEF_IF
G_COEF_IF = _pyupm_tcs37727.G_COEF_IF
B_COEF_IF = _pyupm_tcs37727.B_COEF_IF
CT_COEF_IF = _pyupm_tcs37727.CT_COEF_IF
CT_OFFSET_IF = _pyupm_tcs37727.CT_OFFSET_IF
class tcs37727_data_t(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, tcs37727_data_t, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, tcs37727_data_t, name)
    __repr__ = _swig_repr
    __swig_setmethods__["red"] = _pyupm_tcs37727.tcs37727_data_t_red_set
    __swig_getmethods__["red"] = _pyupm_tcs37727.tcs37727_data_t_red_get
    if _newclass:
        red = _swig_property(_pyupm_tcs37727.tcs37727_data_t_red_get, _pyupm_tcs37727.tcs37727_data_t_red_set)
    __swig_setmethods__["green"] = _pyupm_tcs37727.tcs37727_data_t_green_set
    __swig_getmethods__["green"] = _pyupm_tcs37727.tcs37727_data_t_green_get
    if _newclass:
        green = _swig_property(_pyupm_tcs37727.tcs37727_data_t_green_get, _pyupm_tcs37727.tcs37727_data_t_green_set)
    __swig_setmethods__["blue"] = _pyupm_tcs37727.tcs37727_data_t_blue_set
    __swig_getmethods__["blue"] = _pyupm_tcs37727.tcs37727_data_t_blue_get
    if _newclass:
        blue = _swig_property(_pyupm_tcs37727.tcs37727_data_t_blue_get, _pyupm_tcs37727.tcs37727_data_t_blue_set)
    __swig_setmethods__["clear"] = _pyupm_tcs37727.tcs37727_data_t_clear_set
    __swig_getmethods__["clear"] = _pyupm_tcs37727.tcs37727_data_t_clear_get
    if _newclass:
        clear = _swig_property(_pyupm_tcs37727.tcs37727_data_t_clear_get, _pyupm_tcs37727.tcs37727_data_t_clear_set)
    __swig_setmethods__["lux"] = _pyupm_tcs37727.tcs37727_data_t_lux_set
    __swig_getmethods__["lux"] = _pyupm_tcs37727.tcs37727_data_t_lux_get
    if _newclass:
        lux = _swig_property(_pyupm_tcs37727.tcs37727_data_t_lux_get, _pyupm_tcs37727.tcs37727_data_t_lux_set)
    __swig_setmethods__["ct"] = _pyupm_tcs37727.tcs37727_data_t_ct_set
    __swig_getmethods__["ct"] = _pyupm_tcs37727.tcs37727_data_t_ct_get
    if _newclass:
        ct = _swig_property(_pyupm_tcs37727.tcs37727_data_t_ct_get, _pyupm_tcs37727.tcs37727_data_t_ct_set)

    def __init__(self):
        this = _pyupm_tcs37727.new_tcs37727_data_t()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_tcs37727.delete_tcs37727_data_t
    __del__ = lambda self: None
tcs37727_data_t_swigregister = _pyupm_tcs37727.tcs37727_data_t_swigregister
tcs37727_data_t_swigregister(tcs37727_data_t)

class TCS37727(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, TCS37727, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, TCS37727, name)
    __repr__ = _swig_repr

    def __init__(self, bus, atime_us=200000, devAddr=0x29):
        this = _pyupm_tcs37727.new_TCS37727(bus, atime_us, devAddr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def checkID(self):
        return _pyupm_tcs37727.TCS37727_checkID(self)

    def setActive(self):
        return _pyupm_tcs37727.TCS37727_setActive(self)

    def setStandby(self):
        return _pyupm_tcs37727.TCS37727_setStandby(self)

    def trimGain(self, rawc):
        return _pyupm_tcs37727.TCS37727_trimGain(self, rawc)

    def sampleData(self):
        return _pyupm_tcs37727.TCS37727_sampleData(self)

    def getChannelRed(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getChannelRed(self, bSampleData)

    def getChannelGreen(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getChannelGreen(self, bSampleData)

    def getChannelBlue(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getChannelBlue(self, bSampleData)

    def getChannelClear(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getChannelClear(self, bSampleData)

    def getLux(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getLux(self, bSampleData)

    def getColorTemperature(self, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getColorTemperature(self, bSampleData)

    def getData(self, data, bSampleData=0):
        return _pyupm_tcs37727.TCS37727_getData(self, data, bSampleData)
    __swig_destroy__ = _pyupm_tcs37727.delete_TCS37727
    __del__ = lambda self: None
TCS37727_swigregister = _pyupm_tcs37727.TCS37727_swigregister
TCS37727_swigregister(TCS37727)

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


