# 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_tcs3414cs
else:
    import _pyupm_tcs3414cs

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_tcs3414cs.getVersion()
DEFAULT_ADDR = _pyupm_tcs3414cs.DEFAULT_ADDR
REG_CTL = _pyupm_tcs3414cs.REG_CTL
REG_TIMING = _pyupm_tcs3414cs.REG_TIMING
REG_INT = _pyupm_tcs3414cs.REG_INT
REG_INT_SOURCE = _pyupm_tcs3414cs.REG_INT_SOURCE
REG_ID = _pyupm_tcs3414cs.REG_ID
REG_GAIN = _pyupm_tcs3414cs.REG_GAIN
REG_LOW_THRESH_LOW_BYTE = _pyupm_tcs3414cs.REG_LOW_THRESH_LOW_BYTE
REG_LOW_THRESH_HIGH_BYTE = _pyupm_tcs3414cs.REG_LOW_THRESH_HIGH_BYTE
REG_HIGH_THRESH_LOW_BYTE = _pyupm_tcs3414cs.REG_HIGH_THRESH_LOW_BYTE
REG_HIGH_THRESH_HIGH_BYTE = _pyupm_tcs3414cs.REG_HIGH_THRESH_HIGH_BYTE
REG_BLOCK_READ = _pyupm_tcs3414cs.REG_BLOCK_READ
REG_GREEN_LOW = _pyupm_tcs3414cs.REG_GREEN_LOW
REG_GREEN_HIGH = _pyupm_tcs3414cs.REG_GREEN_HIGH
REG_RED_LOW = _pyupm_tcs3414cs.REG_RED_LOW
REG_RED_HIGH = _pyupm_tcs3414cs.REG_RED_HIGH
REG_BLUE_LOW = _pyupm_tcs3414cs.REG_BLUE_LOW
REG_BLUE_HIGH = _pyupm_tcs3414cs.REG_BLUE_HIGH
REG_CLEAR_LOW = _pyupm_tcs3414cs.REG_CLEAR_LOW
REG_CLEAR_HIGH = _pyupm_tcs3414cs.REG_CLEAR_HIGH
CTL_DAT_INIITIATE = _pyupm_tcs3414cs.CTL_DAT_INIITIATE
CLR_INT = _pyupm_tcs3414cs.CLR_INT
SYNC_EDGE = _pyupm_tcs3414cs.SYNC_EDGE
INTEG_MODE_FREE = _pyupm_tcs3414cs.INTEG_MODE_FREE
INTEG_MODE_MANUAL = _pyupm_tcs3414cs.INTEG_MODE_MANUAL
INTEG_MODE_SYN_SINGLE = _pyupm_tcs3414cs.INTEG_MODE_SYN_SINGLE
INTEG_MODE_SYN_MULTI = _pyupm_tcs3414cs.INTEG_MODE_SYN_MULTI
INTEG_PARAM_PULSE_COUNT1 = _pyupm_tcs3414cs.INTEG_PARAM_PULSE_COUNT1
INTEG_PARAM_PULSE_COUNT2 = _pyupm_tcs3414cs.INTEG_PARAM_PULSE_COUNT2
INTEG_PARAM_PULSE_COUNT4 = _pyupm_tcs3414cs.INTEG_PARAM_PULSE_COUNT4
INTEG_PARAM_PULSE_COUNT8 = _pyupm_tcs3414cs.INTEG_PARAM_PULSE_COUNT8
INTR_STOP = _pyupm_tcs3414cs.INTR_STOP
INTR_DISABLE = _pyupm_tcs3414cs.INTR_DISABLE
INTR_LEVEL = _pyupm_tcs3414cs.INTR_LEVEL
INTR_PERSIST_EVERY = _pyupm_tcs3414cs.INTR_PERSIST_EVERY
INTR_PERSIST_SINGLE = _pyupm_tcs3414cs.INTR_PERSIST_SINGLE
INT_SOURCE_GREEN = _pyupm_tcs3414cs.INT_SOURCE_GREEN
INT_SOURCE_RED = _pyupm_tcs3414cs.INT_SOURCE_RED
INT_SOURCE_BLUE = _pyupm_tcs3414cs.INT_SOURCE_BLUE
INT_SOURCE_CLEAR = _pyupm_tcs3414cs.INT_SOURCE_CLEAR
GAIN_1 = _pyupm_tcs3414cs.GAIN_1
GAIN_4 = _pyupm_tcs3414cs.GAIN_4
GAIN_16 = _pyupm_tcs3414cs.GAIN_16
GANI_64 = _pyupm_tcs3414cs.GANI_64
PRESCALER_1 = _pyupm_tcs3414cs.PRESCALER_1
PRESCALER_2 = _pyupm_tcs3414cs.PRESCALER_2
PRESCALER_4 = _pyupm_tcs3414cs.PRESCALER_4
PRESCALER_8 = _pyupm_tcs3414cs.PRESCALER_8
PRESCALER_16 = _pyupm_tcs3414cs.PRESCALER_16
PRESCALER_32 = _pyupm_tcs3414cs.PRESCALER_32
PRESCALER_64 = _pyupm_tcs3414cs.PRESCALER_64
HIGH = _pyupm_tcs3414cs.HIGH
LOW = _pyupm_tcs3414cs.LOW
class tcs3414sc_rgb_t(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr
    r = property(_pyupm_tcs3414cs.tcs3414sc_rgb_t_r_get, _pyupm_tcs3414cs.tcs3414sc_rgb_t_r_set)
    g = property(_pyupm_tcs3414cs.tcs3414sc_rgb_t_g_get, _pyupm_tcs3414cs.tcs3414sc_rgb_t_g_set)
    b = property(_pyupm_tcs3414cs.tcs3414sc_rgb_t_b_get, _pyupm_tcs3414cs.tcs3414sc_rgb_t_b_set)
    clr = property(_pyupm_tcs3414cs.tcs3414sc_rgb_t_clr_get, _pyupm_tcs3414cs.tcs3414sc_rgb_t_clr_set)

    def __init__(self):
        _pyupm_tcs3414cs.tcs3414sc_rgb_t_swiginit(self, _pyupm_tcs3414cs.new_tcs3414sc_rgb_t())
    __swig_destroy__ = _pyupm_tcs3414cs.delete_tcs3414sc_rgb_t

# Register tcs3414sc_rgb_t in _pyupm_tcs3414cs:
_pyupm_tcs3414cs.tcs3414sc_rgb_t_swigregister(tcs3414sc_rgb_t)

class TCS3414CS(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=0, addr=0x39):
        _pyupm_tcs3414cs.TCS3414CS_swiginit(self, _pyupm_tcs3414cs.new_TCS3414CS(bus, addr))

    def readRGB(self, rgb):
        return _pyupm_tcs3414cs.TCS3414CS_readRGB(self, rgb)

    def clearInterrupt(self):
        return _pyupm_tcs3414cs.TCS3414CS_clearInterrupt(self)

    def name(self):
        return _pyupm_tcs3414cs.TCS3414CS_name(self)
    __swig_destroy__ = _pyupm_tcs3414cs.delete_TCS3414CS

# Register TCS3414CS in _pyupm_tcs3414cs:
_pyupm_tcs3414cs.TCS3414CS_swigregister(TCS3414CS)



