# 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_tsl2561
else:
    import _pyupm_tsl2561

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__)


import upm.pyupm_interfaces

def getVersion():
    return _pyupm_tsl2561.getVersion()
TSL2561_Address = _pyupm_tsl2561.TSL2561_Address
INTEGRATION_TIME0_13MS = _pyupm_tsl2561.INTEGRATION_TIME0_13MS
INTEGRATION_TIME1_101MS = _pyupm_tsl2561.INTEGRATION_TIME1_101MS
INTEGRATION_TIME2_402MS = _pyupm_tsl2561.INTEGRATION_TIME2_402MS
GAIN_0X = _pyupm_tsl2561.GAIN_0X
GAIN_16X = _pyupm_tsl2561.GAIN_16X
CONTROL_POWERON = _pyupm_tsl2561.CONTROL_POWERON
CONTROL_POWEROFF = _pyupm_tsl2561.CONTROL_POWEROFF
REGISTER_Control = _pyupm_tsl2561.REGISTER_Control
REGISTER_Timing = _pyupm_tsl2561.REGISTER_Timing
REGISTER_Interrupt = _pyupm_tsl2561.REGISTER_Interrupt
REGISTER_Channal0L = _pyupm_tsl2561.REGISTER_Channal0L
REGISTER_Channal0H = _pyupm_tsl2561.REGISTER_Channal0H
REGISTER_Channal1L = _pyupm_tsl2561.REGISTER_Channal1L
REGISTER_Channal1H = _pyupm_tsl2561.REGISTER_Channal1H
LUX_SCALE = _pyupm_tsl2561.LUX_SCALE
LUX_RATIOSCALE = _pyupm_tsl2561.LUX_RATIOSCALE
LUX_CHSCALE = _pyupm_tsl2561.LUX_CHSCALE
LUX_CHSCALE_TINT0 = _pyupm_tsl2561.LUX_CHSCALE_TINT0
LUX_CHSCALE_TINT1 = _pyupm_tsl2561.LUX_CHSCALE_TINT1
LUX_K1C = _pyupm_tsl2561.LUX_K1C
LUX_B1C = _pyupm_tsl2561.LUX_B1C
LUX_M1C = _pyupm_tsl2561.LUX_M1C
LUX_K2C = _pyupm_tsl2561.LUX_K2C
LUX_B2C = _pyupm_tsl2561.LUX_B2C
LUX_M2C = _pyupm_tsl2561.LUX_M2C
LUX_K3C = _pyupm_tsl2561.LUX_K3C
LUX_B3C = _pyupm_tsl2561.LUX_B3C
LUX_M3C = _pyupm_tsl2561.LUX_M3C
LUX_K4C = _pyupm_tsl2561.LUX_K4C
LUX_B4C = _pyupm_tsl2561.LUX_B4C
LUX_M4C = _pyupm_tsl2561.LUX_M4C
LUX_K5C = _pyupm_tsl2561.LUX_K5C
LUX_B5C = _pyupm_tsl2561.LUX_B5C
LUX_M5C = _pyupm_tsl2561.LUX_M5C
LUX_K6C = _pyupm_tsl2561.LUX_K6C
LUX_B6C = _pyupm_tsl2561.LUX_B6C
LUX_M6C = _pyupm_tsl2561.LUX_M6C
LUX_K7C = _pyupm_tsl2561.LUX_K7C
LUX_B7C = _pyupm_tsl2561.LUX_B7C
LUX_M7C = _pyupm_tsl2561.LUX_M7C
LUX_K8C = _pyupm_tsl2561.LUX_K8C
LUX_B8C = _pyupm_tsl2561.LUX_B8C
LUX_M8C = _pyupm_tsl2561.LUX_M8C
class TSL2561(upm.pyupm_interfaces.iLight):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        _pyupm_tsl2561.TSL2561_swiginit(self, _pyupm_tsl2561.new_TSL2561(*args))
    __swig_destroy__ = _pyupm_tsl2561.delete_TSL2561

    def getLux(self):
        return _pyupm_tsl2561.TSL2561_getLux(self)

    def getLuminance(self):
        return _pyupm_tsl2561.TSL2561_getLuminance(self)

# Register TSL2561 in _pyupm_tsl2561:
_pyupm_tsl2561.TSL2561_swigregister(TSL2561)



