# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# 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):
    raise RuntimeError("Python 2.7 or later required")

# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _pyupm_bmp280
else:
    import _pyupm_bmp280

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "thisown":
            self.this.own(value)
        elif name == "this":
            set(self, name, value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


import upm.pyupm_interfaces

def getVersion():
    return _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):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        _pyupm_bmp280.BMP280_swiginit(self, _pyupm_bmp280.new_BMP280(*args))
    __swig_destroy__ = _pyupm_bmp280.delete_BMP280

    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)

# Register BMP280 in _pyupm_bmp280:
_pyupm_bmp280.BMP280_swigregister(BMP280)

class BME280(BMP280, upm.pyupm_interfaces.iHumidity):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        _pyupm_bmp280.BME280_swiginit(self, _pyupm_bmp280.new_BME280(*args))
    __swig_destroy__ = _pyupm_bmp280.delete_BME280

    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)

# Register BME280 in _pyupm_bmp280:
_pyupm_bmp280.BME280_swigregister(BME280)



