# 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_rsc')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('_pyupm_rsc')
    _pyupm_rsc = 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_rsc', [dirname(__file__)])
        except ImportError:
            import _pyupm_rsc
            return _pyupm_rsc
        try:
            _mod = imp.load_module('_pyupm_rsc', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    _pyupm_rsc = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_rsc
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_rsc.getVersion()
getVersion = _pyupm_rsc.getVersion
RSC_CATALOG_LISTING_MSB = _pyupm_rsc.RSC_CATALOG_LISTING_MSB
RSC_CATALOG_LISTING_LSB = _pyupm_rsc.RSC_CATALOG_LISTING_LSB
RSC_SERIAL_NO_YYYY_MSB = _pyupm_rsc.RSC_SERIAL_NO_YYYY_MSB
RSC_SERIAL_NO_YYYY_LSB = _pyupm_rsc.RSC_SERIAL_NO_YYYY_LSB
RSC_SERIAL_NO_DDD_MSB = _pyupm_rsc.RSC_SERIAL_NO_DDD_MSB
RSC_SERIAL_NO_DDD_LSB = _pyupm_rsc.RSC_SERIAL_NO_DDD_LSB
RSC_SERIAL_NO_XXXX_MSB = _pyupm_rsc.RSC_SERIAL_NO_XXXX_MSB
RSC_SERIAL_NO_XXXX_LSB = _pyupm_rsc.RSC_SERIAL_NO_XXXX_LSB
RSC_PRESSURE_RANGE_LSB = _pyupm_rsc.RSC_PRESSURE_RANGE_LSB
RSC_PRESSURE_RANGE_MSB = _pyupm_rsc.RSC_PRESSURE_RANGE_MSB
RSC_PRESSURE_MINIMUM_LSB = _pyupm_rsc.RSC_PRESSURE_MINIMUM_LSB
RSC_PRESSURE_MINIMUM_MSB = _pyupm_rsc.RSC_PRESSURE_MINIMUM_MSB
RSC_PRESSURE_UNIT_MSB = _pyupm_rsc.RSC_PRESSURE_UNIT_MSB
RSC_PRESSURE_UNIT_LSB = _pyupm_rsc.RSC_PRESSURE_UNIT_LSB
RSC_PRESSURE_REFERENCE = _pyupm_rsc.RSC_PRESSURE_REFERENCE
RSC_ADC_CONDIG_00 = _pyupm_rsc.RSC_ADC_CONDIG_00
RSC_ADC_CONDIG_01 = _pyupm_rsc.RSC_ADC_CONDIG_01
RSC_ADC_CONDIG_02 = _pyupm_rsc.RSC_ADC_CONDIG_02
RSC_ADC_CONDIG_03 = _pyupm_rsc.RSC_ADC_CONDIG_03
RSC_OFFSET_COEFFICIENT_0_LSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_0_LSB
RSC_OFFSET_COEFFICIENT_0_MSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_0_MSB
RSC_OFFSET_COEFFICIENT_1_LSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_1_LSB
RSC_OFFSET_COEFFICIENT_1_MSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_1_MSB
RSC_OFFSET_COEFFICIENT_2_LSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_2_LSB
RSC_OFFSET_COEFFICIENT_2_MSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_2_MSB
RSC_OFFSET_COEFFICIENT_3_LSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_3_LSB
RSC_OFFSET_COEFFICIENT_3_MSB = _pyupm_rsc.RSC_OFFSET_COEFFICIENT_3_MSB
RSC_SPAN_COEFFICIENT_0_LSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_0_LSB
RSC_SPAN_COEFFICIENT_0_MSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_0_MSB
RSC_SPAN_COEFFICIENT_1_LSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_1_LSB
RSC_SPAN_COEFFICIENT_1_MSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_1_MSB
RSC_SPAN_COEFFICIENT_2_LSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_2_LSB
RSC_SPAN_COEFFICIENT_2_MSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_2_MSB
RSC_SPAN_COEFFICIENT_3_LSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_3_LSB
RSC_SPAN_COEFFICIENT_3_MSB = _pyupm_rsc.RSC_SPAN_COEFFICIENT_3_MSB
RSC_SHAPE_COEFFICIENT_0_LSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_0_LSB
RSC_SHAPE_COEFFICIENT_0_MSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_0_MSB
RSC_SHAPE_COEFFICIENT_1_LSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_1_LSB
RSC_SHAPE_COEFFICIENT_1_MSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_1_MSB
RSC_SHAPE_COEFFICIENT_2_LSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_2_LSB
RSC_SHAPE_COEFFICIENT_2_MSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_2_MSB
RSC_SHAPE_COEFFICIENT_3_LSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_3_LSB
RSC_SHAPE_COEFFICIENT_3_MSB = _pyupm_rsc.RSC_SHAPE_COEFFICIENT_3_MSB
RSC_CHECKSUM_LSB = _pyupm_rsc.RSC_CHECKSUM_LSB
RSC_CHECKSUM_MSB = _pyupm_rsc.RSC_CHECKSUM_MSB
RSC_EEPROM_ADDRESS_SPACE_SIZE = _pyupm_rsc.RSC_EEPROM_ADDRESS_SPACE_SIZE
RSC_EEPROM_STANDARD_ARGUMENT_LENGTH = _pyupm_rsc.RSC_EEPROM_STANDARD_ARGUMENT_LENGTH
RSC_READ_EEPROM_INSTRUCTION = _pyupm_rsc.RSC_READ_EEPROM_INSTRUCTION
RSC_EEPROM_ADDRESS_LOWER_BYTE_MASK = _pyupm_rsc.RSC_EEPROM_ADDRESS_LOWER_BYTE_MASK
RSC_EEPROM_ADDRESS_9TH_BIT_MASK = _pyupm_rsc.RSC_EEPROM_ADDRESS_9TH_BIT_MASK
RSC_SENSOR_NAME_LEN = _pyupm_rsc.RSC_SENSOR_NAME_LEN
RSC_SENSOR_NUMBER_LEN = _pyupm_rsc.RSC_SENSOR_NUMBER_LEN
RSC_PRESSURE_RANGE_LEN = _pyupm_rsc.RSC_PRESSURE_RANGE_LEN
RSC_PRESSURE_MINIMUM_LEN = _pyupm_rsc.RSC_PRESSURE_MINIMUM_LEN
RSC_PRESSURE_UNIT_LEN = _pyupm_rsc.RSC_PRESSURE_UNIT_LEN
RSC_SENSOR_TYPE_LEN = _pyupm_rsc.RSC_SENSOR_TYPE_LEN
RSC_COEFF_T_ROW_NO = _pyupm_rsc.RSC_COEFF_T_ROW_NO
RSC_COEFF_T_COL_NO = _pyupm_rsc.RSC_COEFF_T_COL_NO
RSC_COEFF_ADDRESS_SPACE_SIZE = _pyupm_rsc.RSC_COEFF_ADDRESS_SPACE_SIZE
RSC_ADC_RESET_COMMAND = _pyupm_rsc.RSC_ADC_RESET_COMMAND
RSC_DATA_RATE_SHIFT = _pyupm_rsc.RSC_DATA_RATE_SHIFT
RSC_DATA_RATE_MASK = _pyupm_rsc.RSC_DATA_RATE_MASK
RSC_ADC_REG_MASK = _pyupm_rsc.RSC_ADC_REG_MASK
RSC_ADC_NUM_BYTES_MASK = _pyupm_rsc.RSC_ADC_NUM_BYTES_MASK
RSC_OPERATING_MODE_MASK = _pyupm_rsc.RSC_OPERATING_MODE_MASK
RSC_OPERATING_MODE_SHIFT = _pyupm_rsc.RSC_OPERATING_MODE_SHIFT
RSC_SET_BITS_MASK = _pyupm_rsc.RSC_SET_BITS_MASK
RSC_ADC_WREG = _pyupm_rsc.RSC_ADC_WREG
MSEC_PER_SEC = _pyupm_rsc.MSEC_PER_SEC
READ = _pyupm_rsc.READ
WRITE = _pyupm_rsc.WRITE
N_DR_20_SPS = _pyupm_rsc.N_DR_20_SPS
N_DR_45_SPS = _pyupm_rsc.N_DR_45_SPS
N_DR_90_SPS = _pyupm_rsc.N_DR_90_SPS
N_DR_175_SPS = _pyupm_rsc.N_DR_175_SPS
N_DR_330_SPS = _pyupm_rsc.N_DR_330_SPS
N_DR_600_SPS = _pyupm_rsc.N_DR_600_SPS
N_DR_1000_SPS = _pyupm_rsc.N_DR_1000_SPS
N_DR_NA = _pyupm_rsc.N_DR_NA
F_DR_40_SPS = _pyupm_rsc.F_DR_40_SPS
F_DR_90_SPS = _pyupm_rsc.F_DR_90_SPS
F_DR_180_SPS = _pyupm_rsc.F_DR_180_SPS
F_DR_350_SPS = _pyupm_rsc.F_DR_350_SPS
F_DR_660_SPS = _pyupm_rsc.F_DR_660_SPS
F_DR_1200_SPS = _pyupm_rsc.F_DR_1200_SPS
F_DR_2000_SPS = _pyupm_rsc.F_DR_2000_SPS
F_DR_NA = _pyupm_rsc.F_DR_NA
NORMAL_MODE = _pyupm_rsc.NORMAL_MODE
NA_MODE = _pyupm_rsc.NA_MODE
FAST_MODE = _pyupm_rsc.FAST_MODE
PASCAL = _pyupm_rsc.PASCAL
KPASCAL = _pyupm_rsc.KPASCAL
MPASCAL = _pyupm_rsc.MPASCAL
PSI = _pyupm_rsc.PSI
INH2O = _pyupm_rsc.INH2O
BAR = _pyupm_rsc.BAR
mBAR = _pyupm_rsc.mBAR
DIFFERENTIAL = _pyupm_rsc.DIFFERENTIAL
ABSOLUTE = _pyupm_rsc.ABSOLUTE
GAUGE = _pyupm_rsc.GAUGE
OFFSET = _pyupm_rsc.OFFSET
SPAN = _pyupm_rsc.SPAN
SHAPE = _pyupm_rsc.SHAPE
PRESSURE = _pyupm_rsc.PRESSURE
TEMPERATURE = _pyupm_rsc.TEMPERATURE
EEPROM = _pyupm_rsc.EEPROM
ADC = _pyupm_rsc.ADC
class RSC(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, RSC, 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, RSC, name)
    __repr__ = _swig_repr

    def __init__(self, bus, cs_ee_pin, cs_adc_pin):
        this = _pyupm_rsc.new_RSC(bus, cs_ee_pin, cs_adc_pin)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
    __swig_destroy__ = _pyupm_rsc.delete_RSC
    __del__ = lambda self: None

    def getSensorName(self):
        return _pyupm_rsc.RSC_getSensorName(self)

    def getSensorSerialNumber(self):
        return _pyupm_rsc.RSC_getSensorSerialNumber(self)

    def getPressureRange(self):
        return _pyupm_rsc.RSC_getPressureRange(self)

    def getMinimumPressure(self):
        return _pyupm_rsc.RSC_getMinimumPressure(self)

    def getPressureUnit(self):
        return _pyupm_rsc.RSC_getPressureUnit(self)

    def getPressureType(self):
        return _pyupm_rsc.RSC_getPressureType(self)

    def getInitialADCState(self):
        return _pyupm_rsc.RSC_getInitialADCState(self)

    def updateCoefficients(self):
        return _pyupm_rsc.RSC_updateCoefficients(self)

    def setupADC(self, adc_init_values):
        return _pyupm_rsc.RSC_setupADC(self, adc_init_values)

    def getTemperature(self):
        return _pyupm_rsc.RSC_getTemperature(self)

    def getPressure(self):
        return _pyupm_rsc.RSC_getPressure(self)

    def setMode(self, mode):
        return _pyupm_rsc.RSC_setMode(self, mode)

    def setDataRate(self, dr):
        return _pyupm_rsc.RSC_setDataRate(self, dr)
RSC_swigregister = _pyupm_rsc.RSC_swigregister
RSC_swigregister(RSC)

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


