# 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_adc121c021')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_adc121c021')
    _pyupm_adc121c021 = 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_adc121c021', [dirname(__file__)])
        except ImportError:
            import _pyupm_adc121c021
            return _pyupm_adc121c021
        try:
            _mod = imp.load_module('_pyupm_adc121c021', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_adc121c021 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_adc121c021
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_adc121c021.getVersion()
getVersion = _pyupm_adc121c021.getVersion
ADC121C021_I2C_BUS = _pyupm_adc121c021.ADC121C021_I2C_BUS
ADC121C021_DEFAULT_I2C_ADDR = _pyupm_adc121c021.ADC121C021_DEFAULT_I2C_ADDR
ADC121C021_RESOLUTION = _pyupm_adc121c021.ADC121C021_RESOLUTION
ADC121C021_REG_RESULT = _pyupm_adc121c021.ADC121C021_REG_RESULT
ADC121C021_REG_ALERT_STATUS = _pyupm_adc121c021.ADC121C021_REG_ALERT_STATUS
ADC121C021_REG_CONFIG = _pyupm_adc121c021.ADC121C021_REG_CONFIG
ADC121C021_REG_ALERT_LIM_UNDER = _pyupm_adc121c021.ADC121C021_REG_ALERT_LIM_UNDER
ADC121C021_REG_ALERT_LIM_OVER = _pyupm_adc121c021.ADC121C021_REG_ALERT_LIM_OVER
ADC121C021_REG_ALERT_HYS = _pyupm_adc121c021.ADC121C021_REG_ALERT_HYS
ADC121C021_REG_LOWEST_CONV = _pyupm_adc121c021.ADC121C021_REG_LOWEST_CONV
ADC121C021_REG_HIGHEST_CONV = _pyupm_adc121c021.ADC121C021_REG_HIGHEST_CONV
ADC121C021_DEFAULT_VREF = _pyupm_adc121c021.ADC121C021_DEFAULT_VREF
ADC121C021_CYCLE_NONE = _pyupm_adc121c021.ADC121C021_CYCLE_NONE
ADC121C021_CYCLE_32 = _pyupm_adc121c021.ADC121C021_CYCLE_32
ADC121C021_CYCLE_64 = _pyupm_adc121c021.ADC121C021_CYCLE_64
ADC121C021_CYCLE_128 = _pyupm_adc121c021.ADC121C021_CYCLE_128
ADC121C021_CYCLE_256 = _pyupm_adc121c021.ADC121C021_CYCLE_256
ADC121C021_CYCLE_512 = _pyupm_adc121c021.ADC121C021_CYCLE_512
ADC121C021_CYCLE_1024 = _pyupm_adc121c021.ADC121C021_CYCLE_1024
ADC121C021_CYCLE_2048 = _pyupm_adc121c021.ADC121C021_CYCLE_2048
class ADC121C021(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, ADC121C021, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, ADC121C021, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _pyupm_adc121c021.new_ADC121C021(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_adc121c021.delete_ADC121C021
    __del__ = lambda self: None

    def writeByte(self, reg, byte):
        return _pyupm_adc121c021.ADC121C021_writeByte(self, reg, byte)

    def writeWord(self, reg, word):
        return _pyupm_adc121c021.ADC121C021_writeWord(self, reg, word)

    def readByte(self, reg):
        return _pyupm_adc121c021.ADC121C021_readByte(self, reg)

    def readWord(self, reg):
        return _pyupm_adc121c021.ADC121C021_readWord(self, reg)

    def value(self):
        return _pyupm_adc121c021.ADC121C021_value(self)

    def valueToVolts(self, val):
        return _pyupm_adc121c021.ADC121C021_valueToVolts(self, val)

    def getAlertStatus(self):
        return _pyupm_adc121c021.ADC121C021_getAlertStatus(self)

    def alertLowTriggered(self):
        return _pyupm_adc121c021.ADC121C021_alertLowTriggered(self)

    def alertHighTriggered(self):
        return _pyupm_adc121c021.ADC121C021_alertHighTriggered(self)

    def clearAlertStatus(self):
        return _pyupm_adc121c021.ADC121C021_clearAlertStatus(self)

    def enableAlertFlag(self, enable):
        return _pyupm_adc121c021.ADC121C021_enableAlertFlag(self, enable)

    def enableAlertPin(self, enable):
        return _pyupm_adc121c021.ADC121C021_enableAlertPin(self, enable)

    def enableAlertHold(self, enable):
        return _pyupm_adc121c021.ADC121C021_enableAlertHold(self, enable)

    def enableAlertPinPolarityHigh(self, enable):
        return _pyupm_adc121c021.ADC121C021_enableAlertPinPolarityHigh(self, enable)

    def setAutomaticConversion(self, cycleTime):
        return _pyupm_adc121c021.ADC121C021_setAutomaticConversion(self, cycleTime)

    def setAlertLowLimit(self, limit):
        return _pyupm_adc121c021.ADC121C021_setAlertLowLimit(self, limit)

    def setAlertHighLimit(self, limit):
        return _pyupm_adc121c021.ADC121C021_setAlertHighLimit(self, limit)

    def setHysteresis(self, limit):
        return _pyupm_adc121c021.ADC121C021_setHysteresis(self, limit)

    def getHighestConversion(self):
        return _pyupm_adc121c021.ADC121C021_getHighestConversion(self)

    def getLowestConversion(self):
        return _pyupm_adc121c021.ADC121C021_getLowestConversion(self)

    def clearHighestConversion(self):
        return _pyupm_adc121c021.ADC121C021_clearHighestConversion(self)

    def clearLowestConversion(self):
        return _pyupm_adc121c021.ADC121C021_clearLowestConversion(self)
ADC121C021_swigregister = _pyupm_adc121c021.ADC121C021_swigregister
ADC121C021_swigregister(ADC121C021)

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


