# 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_bmp280')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_bmp280')
    _pyupm_bmp280 = 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_bmp280', [dirname(__file__)])
        except ImportError:
            import _pyupm_bmp280
            return _pyupm_bmp280
        try:
            _mod = imp.load_module('_pyupm_bmp280', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_bmp280 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_bmp280
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_bmp280.getVersion()
getVersion = _pyupm_bmp280.getVersion
BMP280_DEFAULT_I2C_BUS = _pyupm_bmp280.BMP280_DEFAULT_I2C_BUS
BMP280_DEFAULT_SPI_BUS = _pyupm_bmp280.BMP280_DEFAULT_SPI_BUS
BMP280_DEFAULT_ADDR = _pyupm_bmp280.BMP280_DEFAULT_ADDR
BMP280_CHIPID = _pyupm_bmp280.BMP280_CHIPID
BME280_DEFAULT_I2C_BUS = _pyupm_bmp280.BME280_DEFAULT_I2C_BUS
BME280_DEFAULT_SPI_BUS = _pyupm_bmp280.BME280_DEFAULT_SPI_BUS
BME280_DEFAULT_ADDR = _pyupm_bmp280.BME280_DEFAULT_ADDR
BME280_CHIPID = _pyupm_bmp280.BME280_CHIPID
BMP280_SEA_LEVEL_HPA = _pyupm_bmp280.BMP280_SEA_LEVEL_HPA
BMP280_RESET_BYTE = _pyupm_bmp280.BMP280_RESET_BYTE
BMP280_REG_CALIB00 = _pyupm_bmp280.BMP280_REG_CALIB00
BMP280_REG_CALIB01 = _pyupm_bmp280.BMP280_REG_CALIB01
BMP280_REG_CALIB02 = _pyupm_bmp280.BMP280_REG_CALIB02
BMP280_REG_CALIB03 = _pyupm_bmp280.BMP280_REG_CALIB03
BMP280_REG_CALIB04 = _pyupm_bmp280.BMP280_REG_CALIB04
BMP280_REG_CALIB05 = _pyupm_bmp280.BMP280_REG_CALIB05
BMP280_REG_CALIB06 = _pyupm_bmp280.BMP280_REG_CALIB06
BMP280_REG_CALIB07 = _pyupm_bmp280.BMP280_REG_CALIB07
BMP280_REG_CALIB08 = _pyupm_bmp280.BMP280_REG_CALIB08
BMP280_REG_CALIB09 = _pyupm_bmp280.BMP280_REG_CALIB09
BMP280_REG_CALIB10 = _pyupm_bmp280.BMP280_REG_CALIB10
BMP280_REG_CALIB11 = _pyupm_bmp280.BMP280_REG_CALIB11
BMP280_REG_CALIB12 = _pyupm_bmp280.BMP280_REG_CALIB12
BMP280_REG_CALIB13 = _pyupm_bmp280.BMP280_REG_CALIB13
BMP280_REG_CALIB14 = _pyupm_bmp280.BMP280_REG_CALIB14
BMP280_REG_CALIB15 = _pyupm_bmp280.BMP280_REG_CALIB15
BMP280_REG_CALIB16 = _pyupm_bmp280.BMP280_REG_CALIB16
BMP280_REG_CALIB17 = _pyupm_bmp280.BMP280_REG_CALIB17
BMP280_REG_CALIB18 = _pyupm_bmp280.BMP280_REG_CALIB18
BMP280_REG_CALIB19 = _pyupm_bmp280.BMP280_REG_CALIB19
BMP280_REG_CALIB20 = _pyupm_bmp280.BMP280_REG_CALIB20
BMP280_REG_CALIB21 = _pyupm_bmp280.BMP280_REG_CALIB21
BMP280_REG_CALIB22 = _pyupm_bmp280.BMP280_REG_CALIB22
BMP280_REG_CALIB23 = _pyupm_bmp280.BMP280_REG_CALIB23
BMP280_REG_CALIB24 = _pyupm_bmp280.BMP280_REG_CALIB24
BMP280_REG_CALIB25 = _pyupm_bmp280.BMP280_REG_CALIB25
BMP280_REG_CHIPID = _pyupm_bmp280.BMP280_REG_CHIPID
BMP280_REG_RESET = _pyupm_bmp280.BMP280_REG_RESET
BMP280_REG_STATUS = _pyupm_bmp280.BMP280_REG_STATUS
BMP280_REG_CTRL_MEAS = _pyupm_bmp280.BMP280_REG_CTRL_MEAS
BMP280_REG_CONFIG = _pyupm_bmp280.BMP280_REG_CONFIG
BMP280_REG_PRESSURE_MSB = _pyupm_bmp280.BMP280_REG_PRESSURE_MSB
BMP280_REG_PRESSURE_LSB = _pyupm_bmp280.BMP280_REG_PRESSURE_LSB
BMP280_REG_PRESSURE_XLSB = _pyupm_bmp280.BMP280_REG_PRESSURE_XLSB
BMP280_REG_TEMPERATURE_MSB = _pyupm_bmp280.BMP280_REG_TEMPERATURE_MSB
BMP280_REG_TEMPERATURE_LSB = _pyupm_bmp280.BMP280_REG_TEMPERATURE_LSB
BMP280_REG_TEMPERATURE_XLSB = _pyupm_bmp280.BMP280_REG_TEMPERATURE_XLSB
BMP280_CONFIG_SPI3W_EN = _pyupm_bmp280.BMP280_CONFIG_SPI3W_EN
BMP280_CONFIG_FILTER0 = _pyupm_bmp280.BMP280_CONFIG_FILTER0
BMP280_CONFIG_FILTER1 = _pyupm_bmp280.BMP280_CONFIG_FILTER1
BMP280_CONFIG_FILTER2 = _pyupm_bmp280.BMP280_CONFIG_FILTER2
_BMP280_CONFIG_FILTER_MASK = _pyupm_bmp280._BMP280_CONFIG_FILTER_MASK
_BMP280_CONFIG_FILTER_SHIFT = _pyupm_bmp280._BMP280_CONFIG_FILTER_SHIFT
BMP280_CONFIG_T_SB0 = _pyupm_bmp280.BMP280_CONFIG_T_SB0
BMP280_CONFIG_T_SB1 = _pyupm_bmp280.BMP280_CONFIG_T_SB1
BMP280_CONFIG_T_SB2 = _pyupm_bmp280.BMP280_CONFIG_T_SB2
_BMP280_CONFIG_T_SB_MASK = _pyupm_bmp280._BMP280_CONFIG_T_SB_MASK
_BMP280_CONFIG_T_SB_SHIFT = _pyupm_bmp280._BMP280_CONFIG_T_SB_SHIFT
BMP280_FILTER_OFF = _pyupm_bmp280.BMP280_FILTER_OFF
BMP280_FILTER_2 = _pyupm_bmp280.BMP280_FILTER_2
BMP280_FILTER_4 = _pyupm_bmp280.BMP280_FILTER_4
BMP280_FILTER_8 = _pyupm_bmp280.BMP280_FILTER_8
BMP280_FILTER_16 = _pyupm_bmp280.BMP280_FILTER_16
BMP280_T_SB_0_5 = _pyupm_bmp280.BMP280_T_SB_0_5
BMP280_T_SB_62_5 = _pyupm_bmp280.BMP280_T_SB_62_5
BMP280_T_SB_125 = _pyupm_bmp280.BMP280_T_SB_125
BMP280_T_SB_250 = _pyupm_bmp280.BMP280_T_SB_250
BMP280_T_SB_500 = _pyupm_bmp280.BMP280_T_SB_500
BMP280_T_SB_1000 = _pyupm_bmp280.BMP280_T_SB_1000
BMP280_T_SB_2000 = _pyupm_bmp280.BMP280_T_SB_2000
BMP280_T_SB_4000 = _pyupm_bmp280.BMP280_T_SB_4000
BMP280_CTRL_MEAS_MODE0 = _pyupm_bmp280.BMP280_CTRL_MEAS_MODE0
BMP280_CTRL_MEAS_MODE1 = _pyupm_bmp280.BMP280_CTRL_MEAS_MODE1
_BMP280_CTRL_MEAS_MODE_MASK = _pyupm_bmp280._BMP280_CTRL_MEAS_MODE_MASK
_BMP280_CTRL_MEAS_MODE_SHIFT = _pyupm_bmp280._BMP280_CTRL_MEAS_MODE_SHIFT
BMP280_CTRL_MEAS_OSRS_P0 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_P0
BMP280_CTRL_MEAS_OSRS_P1 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_P1
BMP280_CTRL_MEAS_OSRS_P2 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_P2
_BMP280_CTRL_MEAS_OSRS_P_MASK = _pyupm_bmp280._BMP280_CTRL_MEAS_OSRS_P_MASK
_BMP280_CTRL_MEAS_OSRS_P_SHIFT = _pyupm_bmp280._BMP280_CTRL_MEAS_OSRS_P_SHIFT
BMP280_CTRL_MEAS_OSRS_T0 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_T0
BMP280_CTRL_MEAS_OSRS_T1 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_T1
BMP280_CTRL_MEAS_OSRS_T2 = _pyupm_bmp280.BMP280_CTRL_MEAS_OSRS_T2
_BMP280_CTRL_MEAS_OSRS_T_MASK = _pyupm_bmp280._BMP280_CTRL_MEAS_OSRS_T_MASK
_BMP280_CTRL_MEAS_OSRS_T_SHIFT = _pyupm_bmp280._BMP280_CTRL_MEAS_OSRS_T_SHIFT
BMP280_MODE_SLEEP = _pyupm_bmp280.BMP280_MODE_SLEEP
BMP280_MODE_FORCED = _pyupm_bmp280.BMP280_MODE_FORCED
BMP280_MODE_NORMAL = _pyupm_bmp280.BMP280_MODE_NORMAL
BMP280_OSRS_P_SKIPPED = _pyupm_bmp280.BMP280_OSRS_P_SKIPPED
BMP280_OSRS_P_OVERSAMPLING_1 = _pyupm_bmp280.BMP280_OSRS_P_OVERSAMPLING_1
BMP280_OSRS_P_OVERSAMPLING_2 = _pyupm_bmp280.BMP280_OSRS_P_OVERSAMPLING_2
BMP280_OSRS_P_OVERSAMPLING_4 = _pyupm_bmp280.BMP280_OSRS_P_OVERSAMPLING_4
BMP280_OSRS_P_OVERSAMPLING_8 = _pyupm_bmp280.BMP280_OSRS_P_OVERSAMPLING_8
BMP280_OSRS_P_OVERSAMPLING_16 = _pyupm_bmp280.BMP280_OSRS_P_OVERSAMPLING_16
BMP280_OSRS_T_SKIPPED = _pyupm_bmp280.BMP280_OSRS_T_SKIPPED
BMP280_OSRS_T_OVERSAMPLING_1 = _pyupm_bmp280.BMP280_OSRS_T_OVERSAMPLING_1
BMP280_OSRS_T_OVERSAMPLING_2 = _pyupm_bmp280.BMP280_OSRS_T_OVERSAMPLING_2
BMP280_OSRS_T_OVERSAMPLING_4 = _pyupm_bmp280.BMP280_OSRS_T_OVERSAMPLING_4
BMP280_OSRS_T_OVERSAMPLING_8 = _pyupm_bmp280.BMP280_OSRS_T_OVERSAMPLING_8
BMP280_OSRS_T_OVERSAMPLING_16 = _pyupm_bmp280.BMP280_OSRS_T_OVERSAMPLING_16
BMP280_STATUS_IM_UPDATE = _pyupm_bmp280.BMP280_STATUS_IM_UPDATE
BMP280_STATUS_MEASURING = _pyupm_bmp280.BMP280_STATUS_MEASURING
BMP280_USAGE_MODE_HANDHELD_LOW_POWER = _pyupm_bmp280.BMP280_USAGE_MODE_HANDHELD_LOW_POWER
BMP280_USAGE_MODE_HANDHELD_DYNAMIC = _pyupm_bmp280.BMP280_USAGE_MODE_HANDHELD_DYNAMIC
BMP280_USAGE_MODE_WEATHER_MONITOR = _pyupm_bmp280.BMP280_USAGE_MODE_WEATHER_MONITOR
BMP280_USAGE_MODE_FLOOR_CHG_DETECT = _pyupm_bmp280.BMP280_USAGE_MODE_FLOOR_CHG_DETECT
BMP280_USAGE_MODE_DROP_DETECT = _pyupm_bmp280.BMP280_USAGE_MODE_DROP_DETECT
BMP280_USAGE_MODE_INDOOR_NAV = _pyupm_bmp280.BMP280_USAGE_MODE_INDOOR_NAV
BME280_REG_CALIB_DIG_H1 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H1
BME280_REG_CALIB_DIG_H2_LSB = _pyupm_bmp280.BME280_REG_CALIB_DIG_H2_LSB
BME280_REG_CALIB_DIG_H2_MSB = _pyupm_bmp280.BME280_REG_CALIB_DIG_H2_MSB
BME280_REG_CALIB_DIG_H3 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H3
BME280_REG_CALIB_DIG_H4_0 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H4_0
BME280_REG_CALIB_DIG_H4_1 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H4_1
BME280_REG_CALIB_DIG_H5_0 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H5_0
BME280_REG_CALIB_DIG_H5_1 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H5_1
BME280_REG_CALIB_DIG_H6 = _pyupm_bmp280.BME280_REG_CALIB_DIG_H6
BME280_REG_CTRL_HUM = _pyupm_bmp280.BME280_REG_CTRL_HUM
BME280_REG_HUMIDITY_MSB = _pyupm_bmp280.BME280_REG_HUMIDITY_MSB
BME280_REG_HUMIDITY_LSB = _pyupm_bmp280.BME280_REG_HUMIDITY_LSB
BME280_CTRL_HUM_OSRS_H0 = _pyupm_bmp280.BME280_CTRL_HUM_OSRS_H0
BME280_CTRL_HUM_OSRS_H1 = _pyupm_bmp280.BME280_CTRL_HUM_OSRS_H1
BME280_CTRL_HUM_OSRS_H2 = _pyupm_bmp280.BME280_CTRL_HUM_OSRS_H2
_BME280_CTRL_HUM_OSRS_H_MASK = _pyupm_bmp280._BME280_CTRL_HUM_OSRS_H_MASK
_BME280_CTRL_HUM_OSRS_H_SHIFT = _pyupm_bmp280._BME280_CTRL_HUM_OSRS_H_SHIFT
BME280_OSRS_H_SKIPPED = _pyupm_bmp280.BME280_OSRS_H_SKIPPED
BME280_OSRS_H_OVERSAMPLING_1 = _pyupm_bmp280.BME280_OSRS_H_OVERSAMPLING_1
BME280_OSRS_H_OVERSAMPLING_2 = _pyupm_bmp280.BME280_OSRS_H_OVERSAMPLING_2
BME280_OSRS_H_OVERSAMPLING_4 = _pyupm_bmp280.BME280_OSRS_H_OVERSAMPLING_4
BME280_OSRS_H_OVERSAMPLING_8 = _pyupm_bmp280.BME280_OSRS_H_OVERSAMPLING_8
BME280_OSRS_H_OVERSAMPLING_16 = _pyupm_bmp280.BME280_OSRS_H_OVERSAMPLING_16
class BMP280(upm.pyupm_interfaces.iPressure, upm.pyupm_interfaces.iTemperature):
    __swig_setmethods__ = {}
    for _s in [upm.pyupm_interfaces.iPressure, upm.pyupm_interfaces.iTemperature]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, BMP280, name, value)
    __swig_getmethods__ = {}
    for _s in [upm.pyupm_interfaces.iPressure, upm.pyupm_interfaces.iTemperature]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, BMP280, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _pyupm_bmp280.new_BMP280(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_bmp280.delete_BMP280
    __del__ = lambda self: None

    def update(self):
        return _pyupm_bmp280.BMP280_update(self)

    def getChipID(self):
        return _pyupm_bmp280.BMP280_getChipID(self)

    def reset(self):
        return _pyupm_bmp280.BMP280_reset(self)

    def getTemperature(self, *args):
        return _pyupm_bmp280.BMP280_getTemperature(self, *args)

    def getPressure(self):
        return _pyupm_bmp280.BMP280_getPressure(self)

    def setSeaLevelPreassure(self, seaLevelhPA=1013.25):
        return _pyupm_bmp280.BMP280_setSeaLevelPreassure(self, seaLevelhPA)

    def getAltitude(self):
        return _pyupm_bmp280.BMP280_getAltitude(self)

    def setUsageMode(self, mode):
        return _pyupm_bmp280.BMP280_setUsageMode(self, mode)

    def setOversampleRateTemperature(self, rate):
        return _pyupm_bmp280.BMP280_setOversampleRateTemperature(self, rate)

    def setOversampleRatePressure(self, rate):
        return _pyupm_bmp280.BMP280_setOversampleRatePressure(self, rate)

    def setTimerStandby(self, tsb):
        return _pyupm_bmp280.BMP280_setTimerStandby(self, tsb)

    def setFilter(self, filter):
        return _pyupm_bmp280.BMP280_setFilter(self, filter)

    def setMeasureMode(self, mode):
        return _pyupm_bmp280.BMP280_setMeasureMode(self, mode)

    def getModuleName(self):
        return _pyupm_bmp280.BMP280_getModuleName(self)

    def getTemperatureCelsius(self):
        return _pyupm_bmp280.BMP280_getTemperatureCelsius(self)

    def getPressurePa(self):
        return _pyupm_bmp280.BMP280_getPressurePa(self)
BMP280_swigregister = _pyupm_bmp280.BMP280_swigregister
BMP280_swigregister(BMP280)

class BME280(BMP280, upm.pyupm_interfaces.iHumidity):
    __swig_setmethods__ = {}
    for _s in [BMP280, upm.pyupm_interfaces.iHumidity]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, BME280, name, value)
    __swig_getmethods__ = {}
    for _s in [BMP280, upm.pyupm_interfaces.iHumidity]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, BME280, name)
    __repr__ = _swig_repr

    def __init__(self, *args):
        this = _pyupm_bmp280.new_BME280(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_bmp280.delete_BME280
    __del__ = lambda self: None

    def getHumidity(self):
        return _pyupm_bmp280.BME280_getHumidity(self)

    def setOversampleRateHumidity(self, rate):
        return _pyupm_bmp280.BME280_setOversampleRateHumidity(self, rate)

    def getModuleName(self):
        return _pyupm_bmp280.BME280_getModuleName(self)

    def getHumidityRelative(self):
        return _pyupm_bmp280.BME280_getHumidityRelative(self)
BME280_swigregister = _pyupm_bmp280.BME280_swigregister
BME280_swigregister(BME280)

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


