# 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_adis16448
else:
    import _pyupm_adis16448

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



def getVersion():
    return _pyupm_adis16448.getVersion()
FLASH_CNT = _pyupm_adis16448.FLASH_CNT
XGYRO_OUT = _pyupm_adis16448.XGYRO_OUT
YGYRO_OUT = _pyupm_adis16448.YGYRO_OUT
ZGYRO_OUT = _pyupm_adis16448.ZGYRO_OUT
XACCL_OUT = _pyupm_adis16448.XACCL_OUT
YACCL_OUT = _pyupm_adis16448.YACCL_OUT
ZACCL_OUT = _pyupm_adis16448.ZACCL_OUT
XMAGN_OUT = _pyupm_adis16448.XMAGN_OUT
YMAGN_OUT = _pyupm_adis16448.YMAGN_OUT
ZMAGN_OUT = _pyupm_adis16448.ZMAGN_OUT
BARO_OUT = _pyupm_adis16448.BARO_OUT
TEMP_OUT = _pyupm_adis16448.TEMP_OUT
XGYRO_OFF = _pyupm_adis16448.XGYRO_OFF
YGYRO_OFF = _pyupm_adis16448.YGYRO_OFF
ZGYRO_OFF = _pyupm_adis16448.ZGYRO_OFF
XACCL_OFF = _pyupm_adis16448.XACCL_OFF
YACCL_OFF = _pyupm_adis16448.YACCL_OFF
ZACCL_OFF = _pyupm_adis16448.ZACCL_OFF
XMAGN_HIC = _pyupm_adis16448.XMAGN_HIC
YMAGN_HIC = _pyupm_adis16448.YMAGN_HIC
ZMAGN_HIC = _pyupm_adis16448.ZMAGN_HIC
XMAGN_SIC = _pyupm_adis16448.XMAGN_SIC
YMAGN_SIC = _pyupm_adis16448.YMAGN_SIC
ZMAGN_SIC = _pyupm_adis16448.ZMAGN_SIC
GPIO_CTRL = _pyupm_adis16448.GPIO_CTRL
MSC_CTRL = _pyupm_adis16448.MSC_CTRL
SMPL_PRD = _pyupm_adis16448.SMPL_PRD
SENS_AVG = _pyupm_adis16448.SENS_AVG
SEQ_CNT = _pyupm_adis16448.SEQ_CNT
DIAG_STAT = _pyupm_adis16448.DIAG_STAT
GLOB_CMD = _pyupm_adis16448.GLOB_CMD
ALM_MAG1 = _pyupm_adis16448.ALM_MAG1
ALM_MAG2 = _pyupm_adis16448.ALM_MAG2
ALM_SMPL1 = _pyupm_adis16448.ALM_SMPL1
ALM_SMPL2 = _pyupm_adis16448.ALM_SMPL2
ALM_CTRL = _pyupm_adis16448.ALM_CTRL
LOT_ID1 = _pyupm_adis16448.LOT_ID1
LOT_ID2 = _pyupm_adis16448.LOT_ID2
PROD_ID = _pyupm_adis16448.PROD_ID
SERIAL_NUM = _pyupm_adis16448.SERIAL_NUM
class ADIS16448(object):
    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_adis16448.ADIS16448_swiginit(self, _pyupm_adis16448.new_ADIS16448(*args))
    __swig_destroy__ = _pyupm_adis16448.delete_ADIS16448

    def resetDUT(self):
        return _pyupm_adis16448.ADIS16448_resetDUT(self)

    def configSPI(self):
        return _pyupm_adis16448.ADIS16448_configSPI(self)

    def regRead(self, regAddr):
        return _pyupm_adis16448.ADIS16448_regRead(self, regAddr)

    def regWrite(self, regAddr, regData):
        return _pyupm_adis16448.ADIS16448_regWrite(self, regAddr, regData)

    def accelScale(self, sensorData):
        return _pyupm_adis16448.ADIS16448_accelScale(self, sensorData)

    def gyroScale(self, sensorData):
        return _pyupm_adis16448.ADIS16448_gyroScale(self, sensorData)

    def tempScale(self, sensorData):
        return _pyupm_adis16448.ADIS16448_tempScale(self, sensorData)

    def pressureScale(self, sensorData):
        return _pyupm_adis16448.ADIS16448_pressureScale(self, sensorData)

    def magnetometerScale(self, sensorData):
        return _pyupm_adis16448.ADIS16448_magnetometerScale(self, sensorData)

# Register ADIS16448 in _pyupm_adis16448:
_pyupm_adis16448.ADIS16448_swigregister(ADIS16448)



