# 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_maxds3231m')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_maxds3231m')
    _pyupm_maxds3231m = 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_maxds3231m', [dirname(__file__)])
        except ImportError:
            import _pyupm_maxds3231m
            return _pyupm_maxds3231m
        try:
            _mod = imp.load_module('_pyupm_maxds3231m', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_maxds3231m = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_maxds3231m
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_maxds3231m.getVersion()
getVersion = _pyupm_maxds3231m.getVersion
ADDR = _pyupm_maxds3231m.ADDR
TIME_CAL_ADDR = _pyupm_maxds3231m.TIME_CAL_ADDR
ALARM1_ADDR = _pyupm_maxds3231m.ALARM1_ADDR
ALARM2_ADDR = _pyupm_maxds3231m.ALARM2_ADDR
CONTROL_ADDR = _pyupm_maxds3231m.CONTROL_ADDR
STATUS_ADDR = _pyupm_maxds3231m.STATUS_ADDR
AGING_OFFSET_ADDR = _pyupm_maxds3231m.AGING_OFFSET_ADDR
TEMPERATURE_ADDR = _pyupm_maxds3231m.TEMPERATURE_ADDR
A1IE = _pyupm_maxds3231m.A1IE
A2IE = _pyupm_maxds3231m.A2IE
INTCN = _pyupm_maxds3231m.INTCN
A1F = _pyupm_maxds3231m.A1F
A2F = _pyupm_maxds3231m.A2F
OSF = _pyupm_maxds3231m.OSF
HIGH = _pyupm_maxds3231m.HIGH
LOW = _pyupm_maxds3231m.LOW
class Time3231(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Time3231, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Time3231, name)
    __repr__ = _swig_repr
    __swig_setmethods__["second"] = _pyupm_maxds3231m.Time3231_second_set
    __swig_getmethods__["second"] = _pyupm_maxds3231m.Time3231_second_get
    if _newclass:
        second = _swig_property(_pyupm_maxds3231m.Time3231_second_get, _pyupm_maxds3231m.Time3231_second_set)
    __swig_setmethods__["minute"] = _pyupm_maxds3231m.Time3231_minute_set
    __swig_getmethods__["minute"] = _pyupm_maxds3231m.Time3231_minute_get
    if _newclass:
        minute = _swig_property(_pyupm_maxds3231m.Time3231_minute_get, _pyupm_maxds3231m.Time3231_minute_set)
    __swig_setmethods__["hour"] = _pyupm_maxds3231m.Time3231_hour_set
    __swig_getmethods__["hour"] = _pyupm_maxds3231m.Time3231_hour_get
    if _newclass:
        hour = _swig_property(_pyupm_maxds3231m.Time3231_hour_get, _pyupm_maxds3231m.Time3231_hour_set)
    __swig_setmethods__["day"] = _pyupm_maxds3231m.Time3231_day_set
    __swig_getmethods__["day"] = _pyupm_maxds3231m.Time3231_day_get
    if _newclass:
        day = _swig_property(_pyupm_maxds3231m.Time3231_day_get, _pyupm_maxds3231m.Time3231_day_set)
    __swig_setmethods__["month"] = _pyupm_maxds3231m.Time3231_month_set
    __swig_getmethods__["month"] = _pyupm_maxds3231m.Time3231_month_get
    if _newclass:
        month = _swig_property(_pyupm_maxds3231m.Time3231_month_get, _pyupm_maxds3231m.Time3231_month_set)
    __swig_setmethods__["year"] = _pyupm_maxds3231m.Time3231_year_set
    __swig_getmethods__["year"] = _pyupm_maxds3231m.Time3231_year_get
    if _newclass:
        year = _swig_property(_pyupm_maxds3231m.Time3231_year_get, _pyupm_maxds3231m.Time3231_year_set)
    __swig_setmethods__["weekDay"] = _pyupm_maxds3231m.Time3231_weekDay_set
    __swig_getmethods__["weekDay"] = _pyupm_maxds3231m.Time3231_weekDay_get
    if _newclass:
        weekDay = _swig_property(_pyupm_maxds3231m.Time3231_weekDay_get, _pyupm_maxds3231m.Time3231_weekDay_set)

    def __init__(self):
        this = _pyupm_maxds3231m.new_Time3231()
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_maxds3231m.delete_Time3231
    __del__ = lambda self: None
Time3231_swigregister = _pyupm_maxds3231m.Time3231_swigregister
Time3231_swigregister(Time3231)

class MAXDS3231M(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, MAXDS3231M, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, MAXDS3231M, name)
    __repr__ = _swig_repr

    def __init__(self, bus=0, devAddr=0x68):
        this = _pyupm_maxds3231m.new_MAXDS3231M(bus, devAddr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def setDate(self, time):
        return _pyupm_maxds3231m.MAXDS3231M_setDate(self, time)

    def getDate(self, time):
        return _pyupm_maxds3231m.MAXDS3231M_getDate(self, time)

    def getTemperature(self):
        return _pyupm_maxds3231m.MAXDS3231M_getTemperature(self)

    def name(self):
        return _pyupm_maxds3231m.MAXDS3231M_name(self)
    __swig_destroy__ = _pyupm_maxds3231m.delete_MAXDS3231M
    __del__ = lambda self: None
MAXDS3231M_swigregister = _pyupm_maxds3231m.MAXDS3231M_swigregister
MAXDS3231M_swigregister(MAXDS3231M)

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


