# 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_tcs37727
else:
    import _pyupm_tcs37727

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_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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    red = property(_pyupm_tcs37727.tcs37727_data_t_red_get, _pyupm_tcs37727.tcs37727_data_t_red_set)
    green = property(_pyupm_tcs37727.tcs37727_data_t_green_get, _pyupm_tcs37727.tcs37727_data_t_green_set)
    blue = property(_pyupm_tcs37727.tcs37727_data_t_blue_get, _pyupm_tcs37727.tcs37727_data_t_blue_set)
    clear = property(_pyupm_tcs37727.tcs37727_data_t_clear_get, _pyupm_tcs37727.tcs37727_data_t_clear_set)
    lux = property(_pyupm_tcs37727.tcs37727_data_t_lux_get, _pyupm_tcs37727.tcs37727_data_t_lux_set)
    ct = property(_pyupm_tcs37727.tcs37727_data_t_ct_get, _pyupm_tcs37727.tcs37727_data_t_ct_set)

    def __init__(self):
        _pyupm_tcs37727.tcs37727_data_t_swiginit(self, _pyupm_tcs37727.new_tcs37727_data_t())
    __swig_destroy__ = _pyupm_tcs37727.delete_tcs37727_data_t

# Register tcs37727_data_t in _pyupm_tcs37727:
_pyupm_tcs37727.tcs37727_data_t_swigregister(tcs37727_data_t)

class TCS37727(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, atime_us=200000, devAddr=0x29):
        _pyupm_tcs37727.TCS37727_swiginit(self, _pyupm_tcs37727.new_TCS37727(bus, atime_us, devAddr))

    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

# Register TCS37727 in _pyupm_tcs37727:
_pyupm_tcs37727.TCS37727_swigregister(TCS37727)



