# 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_ds1307')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_ds1307')
    _pyupm_ds1307 = 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_ds1307', [dirname(__file__)])
        except ImportError:
            import _pyupm_ds1307
            return _pyupm_ds1307
        try:
            _mod = imp.load_module('_pyupm_ds1307', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_ds1307 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_ds1307
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_ds1307.getVersion()
getVersion = _pyupm_ds1307.getVersion
DS1307_I2C_BUS = _pyupm_ds1307.DS1307_I2C_BUS
DS1307_I2C_ADDR = _pyupm_ds1307.DS1307_I2C_ADDR
DS1307_DAY_MON = _pyupm_ds1307.DS1307_DAY_MON
DS1307_DAY_TUE = _pyupm_ds1307.DS1307_DAY_TUE
DS1307_DAY_WED = _pyupm_ds1307.DS1307_DAY_WED
DS1307_DAY_THU = _pyupm_ds1307.DS1307_DAY_THU
DS1307_DAY_FRI = _pyupm_ds1307.DS1307_DAY_FRI
DS1307_DAY_SAT = _pyupm_ds1307.DS1307_DAY_SAT
DS1307_DAY_SUN = _pyupm_ds1307.DS1307_DAY_SUN
class DS1307(_object):
    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, DS1307, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, DS1307, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _pyupm_ds1307.new_DS1307(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

    def loadTime(self):
        return _pyupm_ds1307.DS1307_loadTime(self)

    def setTime(self):
        return _pyupm_ds1307.DS1307_setTime(self)

    def enableClock(self):
        return _pyupm_ds1307.DS1307_enableClock(self)

    def disableClock(self):
        return _pyupm_ds1307.DS1307_disableClock(self)

    def writeBytes(self, reg, buffer, len):
        return _pyupm_ds1307.DS1307_writeBytes(self, reg, buffer, len)

    def readBytes(self, reg, buffer, len):
        return _pyupm_ds1307.DS1307_readBytes(self, reg, buffer, len)

    def bcdToDec(self, val):
        return _pyupm_ds1307.DS1307_bcdToDec(self, val)

    def decToBcd(self, val):
        return _pyupm_ds1307.DS1307_decToBcd(self, val)
    __swig_setmethods__["seconds"] = _pyupm_ds1307.DS1307_seconds_set
    __swig_getmethods__["seconds"] = _pyupm_ds1307.DS1307_seconds_get
    if _newclass:
        seconds = _swig_property(_pyupm_ds1307.DS1307_seconds_get, _pyupm_ds1307.DS1307_seconds_set)
    __swig_setmethods__["minutes"] = _pyupm_ds1307.DS1307_minutes_set
    __swig_getmethods__["minutes"] = _pyupm_ds1307.DS1307_minutes_get
    if _newclass:
        minutes = _swig_property(_pyupm_ds1307.DS1307_minutes_get, _pyupm_ds1307.DS1307_minutes_set)
    __swig_setmethods__["hours"] = _pyupm_ds1307.DS1307_hours_set
    __swig_getmethods__["hours"] = _pyupm_ds1307.DS1307_hours_get
    if _newclass:
        hours = _swig_property(_pyupm_ds1307.DS1307_hours_get, _pyupm_ds1307.DS1307_hours_set)
    __swig_setmethods__["dayOfWeek"] = _pyupm_ds1307.DS1307_dayOfWeek_set
    __swig_getmethods__["dayOfWeek"] = _pyupm_ds1307.DS1307_dayOfWeek_get
    if _newclass:
        dayOfWeek = _swig_property(_pyupm_ds1307.DS1307_dayOfWeek_get, _pyupm_ds1307.DS1307_dayOfWeek_set)
    __swig_setmethods__["dayOfMonth"] = _pyupm_ds1307.DS1307_dayOfMonth_set
    __swig_getmethods__["dayOfMonth"] = _pyupm_ds1307.DS1307_dayOfMonth_get
    if _newclass:
        dayOfMonth = _swig_property(_pyupm_ds1307.DS1307_dayOfMonth_get, _pyupm_ds1307.DS1307_dayOfMonth_set)
    __swig_setmethods__["month"] = _pyupm_ds1307.DS1307_month_set
    __swig_getmethods__["month"] = _pyupm_ds1307.DS1307_month_get
    if _newclass:
        month = _swig_property(_pyupm_ds1307.DS1307_month_get, _pyupm_ds1307.DS1307_month_set)
    __swig_setmethods__["year"] = _pyupm_ds1307.DS1307_year_set
    __swig_getmethods__["year"] = _pyupm_ds1307.DS1307_year_get
    if _newclass:
        year = _swig_property(_pyupm_ds1307.DS1307_year_get, _pyupm_ds1307.DS1307_year_set)
    __swig_setmethods__["amPmMode"] = _pyupm_ds1307.DS1307_amPmMode_set
    __swig_getmethods__["amPmMode"] = _pyupm_ds1307.DS1307_amPmMode_get
    if _newclass:
        amPmMode = _swig_property(_pyupm_ds1307.DS1307_amPmMode_get, _pyupm_ds1307.DS1307_amPmMode_set)
    __swig_setmethods__["pm"] = _pyupm_ds1307.DS1307_pm_set
    __swig_getmethods__["pm"] = _pyupm_ds1307.DS1307_pm_get
    if _newclass:
        pm = _swig_property(_pyupm_ds1307.DS1307_pm_get, _pyupm_ds1307.DS1307_pm_set)
    __swig_destroy__ = _pyupm_ds1307.delete_DS1307
    __del__ = lambda self: None
DS1307_swigregister = _pyupm_ds1307.DS1307_swigregister
DS1307_swigregister(DS1307)

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


