# 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_dfrec')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_dfrec')
    _pyupm_dfrec = 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_dfrec', [dirname(__file__)])
        except ImportError:
            import _pyupm_dfrec
            return _pyupm_dfrec
        try:
            _mod = imp.load_module('_pyupm_dfrec', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_dfrec = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_dfrec
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

import upm.pyupm_interfaces

def getVersion():
    return _pyupm_dfrec.getVersion()
getVersion = _pyupm_dfrec.getVersion

def new_intp():
    return _pyupm_dfrec.new_intp()
new_intp = _pyupm_dfrec.new_intp

def copy_intp(value):
    return _pyupm_dfrec.copy_intp(value)
copy_intp = _pyupm_dfrec.copy_intp

def delete_intp(obj):
    return _pyupm_dfrec.delete_intp(obj)
delete_intp = _pyupm_dfrec.delete_intp

def intp_assign(obj, value):
    return _pyupm_dfrec.intp_assign(obj, value)
intp_assign = _pyupm_dfrec.intp_assign

def intp_value(obj):
    return _pyupm_dfrec.intp_value(obj)
intp_value = _pyupm_dfrec.intp_value

def new_floatp():
    return _pyupm_dfrec.new_floatp()
new_floatp = _pyupm_dfrec.new_floatp

def copy_floatp(value):
    return _pyupm_dfrec.copy_floatp(value)
copy_floatp = _pyupm_dfrec.copy_floatp

def delete_floatp(obj):
    return _pyupm_dfrec.delete_floatp(obj)
delete_floatp = _pyupm_dfrec.delete_floatp

def floatp_assign(obj, value):
    return _pyupm_dfrec.floatp_assign(obj, value)
floatp_assign = _pyupm_dfrec.floatp_assign

def floatp_value(obj):
    return _pyupm_dfrec.floatp_value(obj)
floatp_value = _pyupm_dfrec.floatp_value
class DFREC(upm.pyupm_interfaces.iEC):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iEC]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, DFREC, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iEC]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, DFREC, name)
    __repr__ = _swig_repr

    def __init__(self, apin, uart_ow, device_idx, a_ref):
        this = _pyupm_dfrec.new_DFREC(apin, uart_ow, device_idx, a_ref)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_dfrec.delete_DFREC
    __del__ = lambda self: None

    def update(self):
        return _pyupm_dfrec.DFREC_update(self)

    def setOffset(self, offset):
        return _pyupm_dfrec.DFREC_setOffset(self, offset)

    def setScale(self, scale):
        return _pyupm_dfrec.DFREC_setScale(self, scale)

    def getEC(self):
        return _pyupm_dfrec.DFREC_getEC(self)

    def getECValue(self):
        return _pyupm_dfrec.DFREC_getECValue(self)

    def getVolts(self):
        return _pyupm_dfrec.DFREC_getVolts(self)

    def getNormalized(self):
        return _pyupm_dfrec.DFREC_getNormalized(self)

    def getTemperature(self):
        return _pyupm_dfrec.DFREC_getTemperature(self)

    def setThresholdMinMax(self, min, max):
        return _pyupm_dfrec.DFREC_setThresholdMinMax(self, min, max)

    def setThreshold1(self, thres, scale, offset):
        return _pyupm_dfrec.DFREC_setThreshold1(self, thres, scale, offset)

    def setThreshold2(self, thres, scale, offset):
        return _pyupm_dfrec.DFREC_setThreshold2(self, thres, scale, offset)

    def setThreshold3(self, scale, offset):
        return _pyupm_dfrec.DFREC_setThreshold3(self, scale, offset)
DFREC_swigregister = _pyupm_dfrec.DFREC_swigregister
DFREC_swigregister(DFREC)

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


