Source code for pyupm_lsm9ds0

# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# 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
if 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_lsm9ds0', [dirname(__file__)])
        except ImportError:
            import _pyupm_lsm9ds0
            return _pyupm_lsm9ds0
        if fp is not None:
            try:
                _mod = imp.load_module('_pyupm_lsm9ds0', fp, pathname, description)
            finally:
                fp.close()
            return _mod
    _pyupm_lsm9ds0 = swig_import_helper()
    del swig_import_helper
else:
    import _pyupm_lsm9ds0
del version_info
try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.


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_nondynamic(self, class_type, name, static=1):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    if (not static):
        return object.__getattr__(self, name)
    else:
        raise AttributeError(name)

def _swig_getattr(self, class_type, name):
    return _swig_getattr_nondynamic(self, class_type, name, 0)


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except AttributeError:
    class _object:
        pass
    _newclass = 0



def getVersion():
    return _pyupm_lsm9ds0.getVersion()
getVersion = _pyupm_lsm9ds0.getVersion

def new_floatp():
    return _pyupm_lsm9ds0.new_floatp()
new_floatp = _pyupm_lsm9ds0.new_floatp

def copy_floatp(value):
    return _pyupm_lsm9ds0.copy_floatp(value)
copy_floatp = _pyupm_lsm9ds0.copy_floatp

def delete_floatp(obj):
    return _pyupm_lsm9ds0.delete_floatp(obj)
delete_floatp = _pyupm_lsm9ds0.delete_floatp

def floatp_assign(obj, value):
    return _pyupm_lsm9ds0.floatp_assign(obj, value)
floatp_assign = _pyupm_lsm9ds0.floatp_assign

def floatp_value(obj):
    return _pyupm_lsm9ds0.floatp_value(obj)
floatp_value = _pyupm_lsm9ds0.floatp_value

_pyupm_lsm9ds0.LSM9DS0_I2C_BUS_swigconstant(_pyupm_lsm9ds0)
LSM9DS0_I2C_BUS = _pyupm_lsm9ds0.LSM9DS0_I2C_BUS

_pyupm_lsm9ds0.LSM9DS0_DEFAULT_XM_ADDR_swigconstant(_pyupm_lsm9ds0)
LSM9DS0_DEFAULT_XM_ADDR = _pyupm_lsm9ds0.LSM9DS0_DEFAULT_XM_ADDR

_pyupm_lsm9ds0.LSM9DS0_DEFAULT_GYRO_ADDR_swigconstant(_pyupm_lsm9ds0)
LSM9DS0_DEFAULT_GYRO_ADDR = _pyupm_lsm9ds0.LSM9DS0_DEFAULT_GYRO_ADDR
[docs]class LSM9DS0(_object): """ API for the LSM9DS0 3-axis Gyroscope, Accelerometer, and Magnetometer. ID: lsm9ds0 Name: Triaxial Gyroscope/accelerometer/magnetometer Sensor Category: accelerometer compass Manufacturer: sparkfun stmicro Connection: i2c gpio Link:https://www.sparkfun.com/products/13033 The LSM9DS0 is a system- in-package featuring a 3D digital linear acceleration sensor, a 3D digital angular rate sensor, and a 3D digital magnetic sensor. The LSM9DS0 has a linear acceleration full scale of 2g/4g/6g/8g/16g, a magnetic field full scale of 2/4/8/12 gauss and an angular rate of 245/500/2000 dps. While not all of the functionality of this device is supported initially, methods and register definitions are provided that should allow an end user to implement whatever features are required. This driver was developed on a Sparkfun 9DOF edison block. LSM9DS0 Sensor image provided by SparkFun* underCC BY-NC-SA-3.0. C++ includes: lsm9ds0.hpp """ __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, LSM9DS0, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, LSM9DS0, name) __repr__ = _swig_repr REG_WHO_AM_I_G = _pyupm_lsm9ds0.LSM9DS0_REG_WHO_AM_I_G REG_CTRL_REG1_G = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG1_G REG_CTRL_REG2_G = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG2_G REG_CTRL_REG3_G = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG3_G REG_CTRL_REG4_G = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG4_G REG_CTRL_REG5_G = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG5_G REG_REFERENCE_G = _pyupm_lsm9ds0.LSM9DS0_REG_REFERENCE_G REG_STATUS_REG_G = _pyupm_lsm9ds0.LSM9DS0_REG_STATUS_REG_G REG_OUT_X_L_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_L_G REG_OUT_X_H_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_H_G REG_OUT_Y_L_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_L_G REG_OUT_Y_H_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_H_G REG_OUT_Z_L_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_L_G REG_OUT_Z_H_G = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_H_G REG_FIFO_CTRL_REG_G = _pyupm_lsm9ds0.LSM9DS0_REG_FIFO_CTRL_REG_G REG_FIFO_SRC_REG_G = _pyupm_lsm9ds0.LSM9DS0_REG_FIFO_SRC_REG_G REG_INT1_CFG_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_CFG_G REG_INT1_SRC_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_SRC_G REG_INT1_TSH_XH_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_XH_G REG_INT1_TSH_XL_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_XL_G REG_INT1_TSH_YH_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_YH_G REG_INT1_TSH_YL_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_YL_G REG_INT1_TSH_ZH_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_ZH_G REG_INT1_TSH_ZL_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_TSH_ZL_G REG_INT1_DURATION_G = _pyupm_lsm9ds0.LSM9DS0_REG_INT1_DURATION_G CTRL_REG1_G_YEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_YEN CTRL_REG1_G_XEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_XEN CTRL_REG1_G_ZEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_ZEN CTRL_REG1_G_PD = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_PD CTRL_REG1_G_BW0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_BW0 CTRL_REG1_G_BW1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_BW1 _CTRL_REG1_G_BW_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_BW_MASK _CTRL_REG1_G_BW_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_BW_SHIFT CTRL_REG1_G_DR0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_DR0 CTRL_REG1_G_DR1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_DR1 _CTRL_REG1_G_DR_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_DR_MASK _CTRL_REG1_G_DR_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_DR_SHIFT CTRL_REG1_G_ODR0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_ODR0 CTRL_REG1_G_ODR1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_ODR1 CTRL_REG1_G_ODR2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_ODR2 CTRL_REG1_G_ODR3 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_G_ODR3 _CTRL_REG1_G_ODR_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_ODR_MASK _CTRL_REG1_G_ODR_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_G_ODR_SHIFT G_ODR_95_12_5 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_95_12_5 G_ODR_95_25 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_95_25 G_ODR_190_12_5 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_190_12_5 G_ODR_190_25 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_190_25 G_ODR_190_50 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_190_50 G_ODR_190_70 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_190_70 G_ODR_380_20 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_380_20 G_ODR_380_25 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_380_25 G_ODR_380_50 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_380_50 G_ODR_380_100 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_380_100 G_ODR_760_30 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_760_30 G_ODR_760_35 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_760_35 G_ODR_760_50 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_760_50 G_ODR_760_100 = _pyupm_lsm9ds0.LSM9DS0_G_ODR_760_100 CTRL_REG2_G_HPCF0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPCF0 CTRL_REG2_G_HPCF1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPCF1 CTRL_REG2_G_HPCF2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPCF2 CTRL_REG2_G_HPCF3 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPCF3 _CTRL_REG2_G_HPCF_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_G_HPCF_MASK _CTRL_REG2_G_HPCF_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_G_HPCF_SHIFT CTRL_REG2_G_HPM0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPM0 CTRL_REG2_G_HPM1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_G_HPM1 _CTRL_REG2_G_HPM_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_G_HPM_MASK _CTRL_REG2_G_HPM_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_G_HPM_SHIFT G_HPCF_7_2 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_7_2 G_HPCF_3_5 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_3_5 G_HPCF_1_8 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_1_8 G_HPCF_0_9 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_9 G_HPCF_0_45 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_45 G_HPCF_0_18 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_18 G_HPCF_0_09 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_09 G_HPCF_0_045 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_045 G_HPCF_0_018 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_018 G_HPCF_0_009 = _pyupm_lsm9ds0.LSM9DS0_G_HPCF_0_009 G_HPM_NORMAL_RESET_HPF = _pyupm_lsm9ds0.LSM9DS0_G_HPM_NORMAL_RESET_HPF G_HPM_REFERENCE = _pyupm_lsm9ds0.LSM9DS0_G_HPM_REFERENCE G_HPM_NORMAL = _pyupm_lsm9ds0.LSM9DS0_G_HPM_NORMAL G_HPM_AUTORESET_ON_INTR = _pyupm_lsm9ds0.LSM9DS0_G_HPM_AUTORESET_ON_INTR CTRL_REG3_G_I2_EMPTY = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I2_EMPTY CTRL_REG3_G_I2_ORUN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I2_ORUN CTRL_REG3_G_I2_WTM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I2_WTM CTRL_REG3_G_I2_DRDY = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I2_DRDY CTRL_REG3_G_PP_OD = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_PP_OD CTRL_REG3_G_H_LACTIVE = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_H_LACTIVE CTRL_REG3_G_I1_BOOT = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I1_BOOT CTRL_REG3_G_I1_INT1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_G_I1_INT1 CTRL_REG4_G_SIM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_SIM CTRL_REG4_G_ST0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_ST0 CTRL_REG4_G_ST1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_ST1 _CTRL_REG4_G_ST_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG4_G_ST_MASK _CTRL_REG4_G_ST_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG4_G_ST_SHIFT CTRL_REG4_G_FS0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_FS0 CTRL_REG4_G_FS1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_FS1 _CTRL_REG4_G_FS_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG4_G_FS_MASK _CTRL_REG4_G_FS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG4_G_FS_SHIFT CTRL_REG4_G_BLE = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_BLE CTRL_REG4_G_BDU = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_G_BDU G_ST_NORMAL = _pyupm_lsm9ds0.LSM9DS0_G_ST_NORMAL G_ST_SELFTEST0 = _pyupm_lsm9ds0.LSM9DS0_G_ST_SELFTEST0 G_ST_SELFTEST1 = _pyupm_lsm9ds0.LSM9DS0_G_ST_SELFTEST1 G_FS_245 = _pyupm_lsm9ds0.LSM9DS0_G_FS_245 G_FS_500 = _pyupm_lsm9ds0.LSM9DS0_G_FS_500 G_FS_2000 = _pyupm_lsm9ds0.LSM9DS0_G_FS_2000 CTRL_REG5_G_OUTSEL0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_OUTSEL0 CTRL_REG5_G_OUTSEL1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_OUTSEL1 _CTRL_REG5_G_OUTSEL_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_G_OUTSEL_MASK _CTRL_REG5_G_OUTSEL_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_G_OUTSEL_SHIFT CTRL_REG5_G_INT1SEL0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_INT1SEL0 CTRL_REG5_G_INT1SEL1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_INT1SEL1 _CTRL_REG5_G_INT1SEL_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_G_INT1SEL_MASK _CTRL_REG5_G_INT1SEL_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_G_INT1SEL_SHIFT CTRL_REG5_G_HPEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_HPEN CTRL_REG5_G_FIFO_EN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_FIFO_EN CTRL_REG5_G_BOOT = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_G_BOOT G_INT1OUTSEL_0 = _pyupm_lsm9ds0.LSM9DS0_G_INT1OUTSEL_0 G_INT1OUTSEL_1 = _pyupm_lsm9ds0.LSM9DS0_G_INT1OUTSEL_1 G_INT1OUTSEL_2 = _pyupm_lsm9ds0.LSM9DS0_G_INT1OUTSEL_2 G_INT1OUTSEL_3 = _pyupm_lsm9ds0.LSM9DS0_G_INT1OUTSEL_3 STATUS_REG_G_XDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_XDA STATUS_REG_G_YDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_YDA STATUS_REG_G_ZDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_ZDA STATUS_REG_G_ZYXDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_ZYXDA STATUS_REG_G_XOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_XOR STATUS_REG_G_YOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_YOR STATUS_REG_G_ZOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_ZOR STATUS_REG_G_ZYXOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_G_ZYXOR FIFO_CTRL_REG_G_WTM0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM0 FIFO_CTRL_REG_G_WTM1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM1 FIFO_CTRL_REG_G_WTM2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM2 FIFO_CTRL_REG_G_WTM3 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM3 FIFO_CTRL_REG_G_WTM4 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM4 _FIFO_CTRL_REG_G_WTM_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_WTM_MASK _FIFO_CTRL_REG_G_WTM_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_WTM_SHIFT FIFO_CTRL_REG_G_FM0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FM0 FIFO_CTRL_REG_G_FM1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FM1 FIFO_CTRL_REG_G_FM2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FM2 _FIFO_CTRL_REG_G_FM_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_FM_MASK _FIFO_CTRL_REG_G_FM_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_FM_SHIFT G_FM_BYPASS = _pyupm_lsm9ds0.LSM9DS0_G_FM_BYPASS G_FM_FIFO = _pyupm_lsm9ds0.LSM9DS0_G_FM_FIFO G_FM_STREAM = _pyupm_lsm9ds0.LSM9DS0_G_FM_STREAM G_FM_STREAM2FIFO = _pyupm_lsm9ds0.LSM9DS0_G_FM_STREAM2FIFO G_FM_BYPASS2STREAM = _pyupm_lsm9ds0.LSM9DS0_G_FM_BYPASS2STREAM FIFO_CTRL_REG_G_FSS0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FSS0 FIFO_CTRL_REG_G_FSS1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FSS1 FIFO_CTRL_REG_G_FSS2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FSS2 FIFO_CTRL_REG_G_FSS3 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FSS3 FIFO_CTRL_REG_G_FSS4 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_FSS4 _FIFO_CTRL_REG_G_FSS_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_FSS_MASK _FIFO_CTRL_REG_G_FSS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_G_FSS_SHIFT FIFO_CTRL_REG_G_EMPTY = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_EMPTY FIFO_CTRL_REG_G_OVRN = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_OVRN FIFO_CTRL_REG_G_WTM = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_G_WTM INT1_CFG_G_XLIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_XLIE INT1_CFG_G_XHIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_XHIE INT1_CFG_G_YLIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_YLIE INT1_CFG_G_YHIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_YHIE INT1_CFG_G_ZLIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_ZLIE INT1_CFG_G_ZHIE = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_ZHIE INT1_CFG_G_LIR = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_LIR INT1_CFG_G_ANDOR = _pyupm_lsm9ds0.LSM9DS0_INT1_CFG_G_ANDOR INT1_SRC_G_XL = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_XL INT1_SRC_G_XH = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_XH INT1_SRC_G_YL = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_YL INT1_SRC_G_YH = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_YH INT1_SRC_G_ZL = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_ZL INT1_SRC_G_ZH = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_ZH INT1_SRC_G_IA = _pyupm_lsm9ds0.LSM9DS0_INT1_SRC_G_IA REG_OUT_TEMP_L_XM = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_TEMP_L_XM REG_OUT_TEMP_H_XM = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_TEMP_H_XM REG_STATUS_REG_M = _pyupm_lsm9ds0.LSM9DS0_REG_STATUS_REG_M REG_OUT_X_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_L_M REG_OUT_X_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_H_M REG_OUT_Y_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_L_M REG_OUT_Y_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_H_M REG_OUT_Z_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_L_M REG_OUT_Z_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_H_M REG_WHO_AM_I_XM = _pyupm_lsm9ds0.LSM9DS0_REG_WHO_AM_I_XM REG_INT_CTRL_REG_M = _pyupm_lsm9ds0.LSM9DS0_REG_INT_CTRL_REG_M REG_INT_SRC_REG_M = _pyupm_lsm9ds0.LSM9DS0_REG_INT_SRC_REG_M REG_INT_THS_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_INT_THS_L_M REG_INT_THS_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_INT_THS_H_M REG_OFFSET_X_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_X_L_M REG_OFFSET_X_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_X_H_M REG_OFFSET_Y_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_Y_L_M REG_OFFSET_Y_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_Y_H_M REG_OFFSET_Z_L_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_Z_L_M REG_OFFSET_Z_H_M = _pyupm_lsm9ds0.LSM9DS0_REG_OFFSET_Z_H_M REG_REFERENCE_X = _pyupm_lsm9ds0.LSM9DS0_REG_REFERENCE_X REG_REFERENCE_Y = _pyupm_lsm9ds0.LSM9DS0_REG_REFERENCE_Y REG_REFERENCE_Z = _pyupm_lsm9ds0.LSM9DS0_REG_REFERENCE_Z REG_CTRL_REG0_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG0_XM REG_CTRL_REG1_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG1_XM REG_CTRL_REG2_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG2_XM REG_CTRL_REG3_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG3_XM REG_CTRL_REG4_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG4_XM REG_CTRL_REG5_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG5_XM REG_CTRL_REG6_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG6_XM REG_CTRL_REG7_XM = _pyupm_lsm9ds0.LSM9DS0_REG_CTRL_REG7_XM REG_STATUS_REG_A = _pyupm_lsm9ds0.LSM9DS0_REG_STATUS_REG_A REG_OUT_X_L_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_L_A REG_OUT_X_H_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_X_H_A REG_OUT_Y_L_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_L_A REG_OUT_Y_H_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Y_H_A REG_OUT_Z_L_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_L_A REG_OUT_Z_H_A = _pyupm_lsm9ds0.LSM9DS0_REG_OUT_Z_H_A REG_FIFO_CTRL_REG = _pyupm_lsm9ds0.LSM9DS0_REG_FIFO_CTRL_REG REG_FIFO_SRC_REG = _pyupm_lsm9ds0.LSM9DS0_REG_FIFO_SRC_REG REG_INT_GEN_1_REG = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_1_REG REG_INT_GEN_1_SRC = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_1_SRC REG_INT_GEN_1_THS = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_1_THS REG_INT_GEN_1_DURATION = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_1_DURATION REG_INT_GEN_2_REG = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_2_REG REG_INT_GEN_2_SRC = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_2_SRC REG_INT_GEN_2_THS = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_2_THS REG_INT_GEN_2_DURATION = _pyupm_lsm9ds0.LSM9DS0_REG_INT_GEN_2_DURATION REG_CLICK_CFG = _pyupm_lsm9ds0.LSM9DS0_REG_CLICK_CFG REG_CLICK_SRC = _pyupm_lsm9ds0.LSM9DS0_REG_CLICK_SRC REG_CLICK_THS = _pyupm_lsm9ds0.LSM9DS0_REG_CLICK_THS REG_TIME_LIMIT = _pyupm_lsm9ds0.LSM9DS0_REG_TIME_LIMIT REG_TIME_LATENCY = _pyupm_lsm9ds0.LSM9DS0_REG_TIME_LATENCY REG_TIME_WINDOW = _pyupm_lsm9ds0.LSM9DS0_REG_TIME_WINDOW REG_ACT_THS = _pyupm_lsm9ds0.LSM9DS0_REG_ACT_THS REG_ACT_DUR = _pyupm_lsm9ds0.LSM9DS0_REG_ACT_DUR STATUS_REG_M_XMDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_XMDA STATUS_REG_M_YMDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_YMDA STATUS_REG_M_ZMDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_ZMDA STATUS_REG_M_ZYXMDA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_ZYXMDA STATUS_REG_M_XMOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_XMOR STATUS_REG_M_YMOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_YMOR STATUS_REG_M_ZMOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_ZMOR STATUS_REG_M_ZYXMOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_M_ZYXMOR INT_CTRL_REG_M_MIEN = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_MIEN INT_CTRL_REG_M_4D = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_4D INT_CTRL_REG_M_IEL = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_IEL INT_CTRL_REG_M_IEA = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_IEA INT_CTRL_REG_M_PP_OD = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_PP_OD INT_CTRL_REG_M_ZMIEN = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_ZMIEN INT_CTRL_REG_M_YMIEN = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_YMIEN INT_CTRL_REG_M_XMIEN = _pyupm_lsm9ds0.LSM9DS0_INT_CTRL_REG_M_XMIEN INT_SRC_REG_M_MINT = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_MINT INT_SRC_REG_M_MROI = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_MROI INT_SRC_REG_M_NTH_Z = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_NTH_Z INT_SRC_REG_M_NTH_Y = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_NTH_Y INT_SRC_REG_M_NTH_X = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_NTH_X INT_SRC_REG_M_PTH_Z = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_PTH_Z INT_SRC_REG_M_PTH_Y = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_PTH_Y INT_SRC_REG_M_PTH_X = _pyupm_lsm9ds0.LSM9DS0_INT_SRC_REG_M_PTH_X CTRL_REG0_XM_HPIS2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_HPIS2 CTRL_REG0_XM_HPIS1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_HPIS1 CTRL_REG0_XM_HP_CLICK = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_HP_CLICK CTRL_REG0_XM_WTM_LEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_WTM_LEN CTRL_REG0_XM_FIFO_EN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_FIFO_EN CTRL_REG0_XM_BOOT = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG0_XM_BOOT CTRL_REG1_XM_AXEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AXEN CTRL_REG1_XM_AYEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AYEN CTRL_REG1_XM_AZEN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AZEN CTRL_REG1_XM_BDU = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_BDU CTRL_REG1_XM_AODR0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AODR0 CTRL_REG1_XM_AODR1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AODR1 CTRL_REG1_XM_AODR2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AODR2 CTRL_REG1_XM_AODR3 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG1_XM_AODR3 _CTRL_REG1_XM_AODR_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_XM_AODR_MASK _CTRL_REG1_XM_AODR_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG1_XM_AODR_SHIFT XM_AODR_PWRDWN = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_PWRDWN XM_AODR_3_125 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_3_125 XM_AODR_6_25 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_6_25 XM_AODR_12_5 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_12_5 XM_AODR_25 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_25 XM_AODR_50 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_50 XM_AODR_100 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_100 XM_AODR_200 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_200 XM_AODR_400 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_400 XM_AODR_800 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_800 XM_AODR_1000 = _pyupm_lsm9ds0.LSM9DS0_XM_AODR_1000 CTRL_REG2_XM_SIM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_SIM CTRL_REG2_XM_AST0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_AST0 CTRL_REG2_XM_AST1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_AST1 _CTRL_REG2_XM_AST_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_AST_MASK _CTRL_REG2_XM_AST_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_AST_SHIFT CTRL_REG2_XM_AFS0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_AFS0 CTRL_REG2_XM_AFS1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_AFS1 CTRL_REG2_XM_AFS2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_AFS2 _CTRL_REG2_XM_AFS_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_AFS_MASK _CTRL_REG2_XM_AFS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_AFS_SHIFT CTRL_REG2_XM_ABW0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_ABW0 CTRL_REG2_XM_ABW1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG2_XM_ABW1 _CTRL_REG2_XM_ABW_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_ABW_MASK _CTRL_REG2_XM_ABW_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG2_XM_ABW_SHIFT XM_AST_NORMAL = _pyupm_lsm9ds0.LSM9DS0_XM_AST_NORMAL XM_AST_POS_SIGN = _pyupm_lsm9ds0.LSM9DS0_XM_AST_POS_SIGN XM_AST_NEG_SIGN = _pyupm_lsm9ds0.LSM9DS0_XM_AST_NEG_SIGN XM_AFS_2 = _pyupm_lsm9ds0.LSM9DS0_XM_AFS_2 XM_AFS_4 = _pyupm_lsm9ds0.LSM9DS0_XM_AFS_4 XM_AFS_6 = _pyupm_lsm9ds0.LSM9DS0_XM_AFS_6 XM_AFS_8 = _pyupm_lsm9ds0.LSM9DS0_XM_AFS_8 XM_AFS_16 = _pyupm_lsm9ds0.LSM9DS0_XM_AFS_16 XM_ABW_773 = _pyupm_lsm9ds0.LSM9DS0_XM_ABW_773 XM_ABW_194 = _pyupm_lsm9ds0.LSM9DS0_XM_ABW_194 XM_ABW_362 = _pyupm_lsm9ds0.LSM9DS0_XM_ABW_362 XM_ABW_50 = _pyupm_lsm9ds0.LSM9DS0_XM_ABW_50 CTRL_REG3_XM_P1_EMPTY = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_EMPTY CTRL_REG3_XM_P1_DRDYM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_DRDYM CTRL_REG3_XM_P1_DRDYA = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_DRDYA CTRL_REG3_XM_P1_INTM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_INTM CTRL_REG3_XM_P1_INT2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_INT2 CTRL_REG3_XM_P1_INT1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_INT1 CTRL_REG3_XM_P1_TAP = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_TAP CTRL_REG3_XM_P1_BOOT = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG3_XM_P1_BOOT CTRL_REG4_XM_P2_WTM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_WTM CTRL_REG4_XM_P2_OVERRUN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_OVERRUN CTRL_REG4_XM_P2_DRDYM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_DRDYM CTRL_REG4_XM_P2_DRDYA = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_DRDYA CTRL_REG4_XM_P2_INTM = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_INTM CTRL_REG4_XM_P2_INT2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_INT2 CTRL_REG4_XM_P2_INT1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_INT1 CTRL_REG4_XM_P2_TAP = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG4_XM_P2_TAP CTRL_REG5_XM_LIR1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_LIR1 CTRL_REG5_XM_LIR2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_LIR2 CTRL_REG5_XM_ODR0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_ODR0 CTRL_REG5_XM_ODR1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_ODR1 CTRL_REG5_XM_ODR2 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_ODR2 _CTRL_REG5_XM_ODR_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_XM_ODR_MASK _CTRL_REG5_XM_ODR_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_XM_ODR_SHIFT CTRL_REG5_XM_RES0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_RES0 CTRL_REG5_XM_RES1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_RES1 _CTRL_REG5_XM_RES_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_XM_RES_MASK _CTRL_REG5_XM_RES_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG5_XM_RES_SHIFT CTRL_REG5_XM_TEMP_EN = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG5_XM_TEMP_EN XM_ODR_3_125 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_3_125 XM_ODR_6_25 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_6_25 XM_ODR_12_5 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_12_5 XM_ODR_25 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_25 XM_ODR_50 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_50 XM_ODR_100 = _pyupm_lsm9ds0.LSM9DS0_XM_ODR_100 XM_RES_LOW = _pyupm_lsm9ds0.LSM9DS0_XM_RES_LOW XM_RES_HIGH = _pyupm_lsm9ds0.LSM9DS0_XM_RES_HIGH CTRL_REG6_XM_MFS0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG6_XM_MFS0 CTRL_REG6_XM_MFS1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG6_XM_MFS1 _CTRL_REG6_XM_MFS_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG6_XM_MFS_MASK _CTRL_REG6_XM_MFS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG6_XM_MFS_SHIFT XM_MFS_2 = _pyupm_lsm9ds0.LSM9DS0_XM_MFS_2 XM_MFS_4 = _pyupm_lsm9ds0.LSM9DS0_XM_MFS_4 XM_MFS_8 = _pyupm_lsm9ds0.LSM9DS0_XM_MFS_8 XM_MFS_12 = _pyupm_lsm9ds0.LSM9DS0_XM_MFS_12 CTRL_REG7_XM_MD0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_MD0 CTRL_REG7_XM_MD1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_MD1 _CTRL_REG7_XM_MD_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG7_XM_MD_MASK _CTRL_REG7_XM_MD_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG7_XM_MD_SHIFT CTRL_REG7_XM_MLP = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_MLP CTRL_REG7_XM_AFDS = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_AFDS CTRL_REG7_XM_AHPM0 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_AHPM0 CTRL_REG7_XM_AHPM1 = _pyupm_lsm9ds0.LSM9DS0_CTRL_REG7_XM_AHPM1 _CTRL_REG7_XM_AHPM_MASK = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG7_XM_AHPM_MASK _CTRL_REG7_XM_AHPM_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CTRL_REG7_XM_AHPM_SHIFT XM_MD_CONTINUOUS = _pyupm_lsm9ds0.LSM9DS0_XM_MD_CONTINUOUS XM_MD_SINGLE = _pyupm_lsm9ds0.LSM9DS0_XM_MD_SINGLE XM_MD_POWERDOWN = _pyupm_lsm9ds0.LSM9DS0_XM_MD_POWERDOWN XM_AHPM_NORMAL_REF = _pyupm_lsm9ds0.LSM9DS0_XM_AHPM_NORMAL_REF XM_AHPM_REFERENCE = _pyupm_lsm9ds0.LSM9DS0_XM_AHPM_REFERENCE XM_AHPM_NORMAL = _pyupm_lsm9ds0.LSM9DS0_XM_AHPM_NORMAL XM_AHPM_AUTORESET = _pyupm_lsm9ds0.LSM9DS0_XM_AHPM_AUTORESET STATUS_REG_A_XADA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_XADA STATUS_REG_A_YADA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_YADA STATUS_REG_A_ZADA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_ZADA STATUS_REG_A_ZYXADA = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_ZYXADA STATUS_REG_A_XAOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_XAOR STATUS_REG_A_YAOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_YAOR STATUS_REG_A_ZAOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_ZAOR STATUS_REG_A_ZYXAOR = _pyupm_lsm9ds0.LSM9DS0_STATUS_REG_A_ZYXAOR FIFO_CTRL_REG_FTH0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FTH0 FIFO_CTRL_REG_FTH1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FTH1 FIFO_CTRL_REG_FTH2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FTH2 FIFO_CTRL_REG_FTH3 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FTH3 FIFO_CTRL_REG_FTH4 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FTH4 _FIFO_CTRL_REG_FTH_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FTH_MASK _FIFO_CTRL_REG_FTH_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FTH_SHIFT FIFO_CTRL_REG_FM0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FM0 FIFO_CTRL_REG_FM1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FM1 FIFO_CTRL_REG_FM2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FM2 _FIFO_CTRL_REG_FM_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FM_MASK _FIFO_CTRL_REG_FM_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FM_SHIFT FM_BYPASS = _pyupm_lsm9ds0.LSM9DS0_FM_BYPASS FM_FIFO = _pyupm_lsm9ds0.LSM9DS0_FM_FIFO FM_STREAM = _pyupm_lsm9ds0.LSM9DS0_FM_STREAM FM_STREAM2FIFO = _pyupm_lsm9ds0.LSM9DS0_FM_STREAM2FIFO FM_BYPASS2STREAM = _pyupm_lsm9ds0.LSM9DS0_FM_BYPASS2STREAM FIFO_CTRL_REG_FSS0 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FSS0 FIFO_CTRL_REG_FSS1 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FSS1 FIFO_CTRL_REG_FSS2 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FSS2 FIFO_CTRL_REG_FSS3 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FSS3 FIFO_CTRL_REG_FSS4 = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_FSS4 _FIFO_CTRL_REG_FSS_MASK = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FSS_MASK _FIFO_CTRL_REG_FSS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__FIFO_CTRL_REG_FSS_SHIFT FIFO_CTRL_REG_EMPTY = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_EMPTY FIFO_CTRL_REG_OVRN = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_OVRN FIFO_CTRL_REG_WTM = _pyupm_lsm9ds0.LSM9DS0_FIFO_CTRL_REG_WTM INT_GEN_X_REG_XLIE_XDOWNE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_XLIE_XDOWNE INT_GEN_X_REG_XHIE_XUPE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_XHIE_XUPE INT_GEN_X_REG_YLIE_YDOWNE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_YLIE_YDOWNE INT_GEN_X_REG_YHIE_YUPE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_YHIE_YUPE INT_GEN_X_REG_ZLIE_ZDOWNE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_ZLIE_ZDOWNE INT_GEN_X_REG_ZHIE_ZUPE = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_ZHIE_ZUPE INT_GEN_X_REG_6D = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_6D INT_GEN_X_REG_AOI = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_REG_AOI INT_GEN_X_SRC_XL = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_XL INT_GEN_X_SRC_XH = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_XH INT_GEN_X_SRC_YL = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_YL INT_GEN_X_SRC_YH = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_YH INT_GEN_X_SRC_ZL = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_ZL INT_GEN_X_SRC_ZH = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_ZH INT_GEN_X_SRC_IA = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_SRC_IA INT_GEN_X_THS0 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS0 INT_GEN_X_THS1 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS1 INT_GEN_X_THS2 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS2 INT_GEN_X_THS3 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS3 INT_GEN_X_THS4 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS4 INT_GEN_X_THS5 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS5 INT_GEN_X_THS6 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_THS6 _INT_GEN_X_THS_MASK = _pyupm_lsm9ds0.LSM9DS0__INT_GEN_X_THS_MASK _INT_GEN_X_THS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__INT_GEN_X_THS_SHIFT INT_GEN_X_DUR0 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR0 INT_GEN_X_DUR1 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR1 INT_GEN_X_DUR2 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR2 INT_GEN_X_DUR3 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR3 INT_GEN_X_DUR4 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR4 INT_GEN_X_DUR5 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR5 INT_GEN_X_DUR6 = _pyupm_lsm9ds0.LSM9DS0_INT_GEN_X_DUR6 _INT_GEN_X_DUR_MASK = _pyupm_lsm9ds0.LSM9DS0__INT_GEN_X_DUR_MASK _INT_GEN_X_DUR_SHIFT = _pyupm_lsm9ds0.LSM9DS0__INT_GEN_X_DUR_SHIFT CLICK_CONFIG_XS = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_XS CLICK_CONFIG_XD = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_XD CLICK_CONFIG_YS = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_YS CLICK_CONFIG_YD = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_YD CLICK_CONFIG_ZS = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_ZS CLICK_CONFIG_ZD = _pyupm_lsm9ds0.LSM9DS0_CLICK_CONFIG_ZD CLICK_SRC_X = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_X CLICK_SRC_Y = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_Y CLICK_SRC_Z = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_Z CLICK_SRC_SIGN = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_SIGN CLICK_SRC_SCLICK = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_SCLICK CLICK_SRC_DCLICK = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_DCLICK CLICK_SRC_IA = _pyupm_lsm9ds0.LSM9DS0_CLICK_SRC_IA CLICK_THS_THS0 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS0 CLICK_THS_THS1 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS1 CLICK_THS_THS2 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS2 CLICK_THS_THS3 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS3 CLICK_THS_THS4 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS4 CLICK_THS_THS5 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS5 CLICK_THS_THS6 = _pyupm_lsm9ds0.LSM9DS0_CLICK_THS_THS6 _CLICK_THS_THS_MASK = _pyupm_lsm9ds0.LSM9DS0__CLICK_THS_THS_MASK _CLICK_THS_THS_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CLICK_THS_THS_SHIFT CLICK_TIME_LIMIT_TLI0 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI0 CLICK_TIME_LIMIT_TLI1 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI1 CLICK_TIME_LIMIT_TLI2 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI2 CLICK_TIME_LIMIT_TLI3 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI3 CLICK_TIME_LIMIT_TLI4 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI4 CLICK_TIME_LIMIT_TLI5 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI5 CLICK_TIME_LIMIT_TLI6 = _pyupm_lsm9ds0.LSM9DS0_CLICK_TIME_LIMIT_TLI6 _CLICK_TIME_LIMIT_TLI_MASK = _pyupm_lsm9ds0.LSM9DS0__CLICK_TIME_LIMIT_TLI_MASK _CLICK_TIME_LIMIT_TLI_SHIFT = _pyupm_lsm9ds0.LSM9DS0__CLICK_TIME_LIMIT_TLI_SHIFT ACT_THS_ACTH0 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH0 ACT_THS_ACTH1 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH1 ACT_THS_ACTH2 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH2 ACT_THS_ACTH3 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH3 ACT_THS_ACTH4 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH4 ACT_THS_ACTH5 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH5 ACT_THS_ACTH6 = _pyupm_lsm9ds0.LSM9DS0_ACT_THS_ACTH6 _ACT_THS_ACTH_MASK = _pyupm_lsm9ds0.LSM9DS0__ACT_THS_ACTH_MASK _ACT_THS_ACTH_SHIFT = _pyupm_lsm9ds0.LSM9DS0__ACT_THS_ACTH_SHIFT DEV_GYRO = _pyupm_lsm9ds0.LSM9DS0_DEV_GYRO DEV_XM = _pyupm_lsm9ds0.LSM9DS0_DEV_XM INTERRUPT_G_INT = _pyupm_lsm9ds0.LSM9DS0_INTERRUPT_G_INT INTERRUPT_G_DRDY = _pyupm_lsm9ds0.LSM9DS0_INTERRUPT_G_DRDY INTERRUPT_XM_GEN1 = _pyupm_lsm9ds0.LSM9DS0_INTERRUPT_XM_GEN1 INTERRUPT_XM_GEN2 = _pyupm_lsm9ds0.LSM9DS0_INTERRUPT_XM_GEN2 def __init__(self, bus=1, raw=False, gAddress=0x6b, xmAddress=0x1d): """ LSM9DS0(int bus=LSM9DS0_I2C_BUS, bool raw=false, uint8_t gAddress=LSM9DS0_DEFAULT_GYRO_ADDR, uint8_t xmAddress=LSM9DS0_DEFAULT_XM_ADDR) lsm9ds0 constructor Parameters: ----------- bus: i2c bus to use raw: bypass board definition file, set to true if using Sparkfun 9DOF Block on an Intel Edison Arduino board gAddress: the gyroscope address for this device xmAddress: the accelerometer/magnetometer address for this device """ this = _pyupm_lsm9ds0.new_LSM9DS0(bus, raw, gAddress, xmAddress) try: self.this.append(this) except Exception: self.this = this __swig_destroy__ = _pyupm_lsm9ds0.delete_LSM9DS0 __del__ = lambda self: None
[docs] def init(self): """ bool init() set up initial values and start operation true if successful """ return _pyupm_lsm9ds0.LSM9DS0_init(self)
[docs] def update(self): """ void update() update the accelerometer, gyroscope, magnetometer and termperature values. """ return _pyupm_lsm9ds0.LSM9DS0_update(self)
[docs] def updateGyroscope(self): """ void updateGyroscope() update the gyroscope values only """ return _pyupm_lsm9ds0.LSM9DS0_updateGyroscope(self)
[docs] def updateAccelerometer(self): """ void updateAccelerometer() update the accelerometer values only """ return _pyupm_lsm9ds0.LSM9DS0_updateAccelerometer(self)
[docs] def updateMagnetometer(self): """ void updateMagnetometer() update the magnetometer values only """ return _pyupm_lsm9ds0.LSM9DS0_updateMagnetometer(self)
[docs] def updateTemperature(self): """ void updateTemperature() update the temperature value only """ return _pyupm_lsm9ds0.LSM9DS0_updateTemperature(self)
[docs] def readReg(self, dev, reg): """ uint8_t readReg(DEVICE_T dev, uint8_t reg) read a register Parameters: ----------- dev: the device to access (XM or G) reg: the register to read the value of the register """ return _pyupm_lsm9ds0.LSM9DS0_readReg(self, dev, reg)
[docs] def readRegs(self, dev, reg, buffer, len): """ void readRegs(DEVICE_T dev, uint8_t reg, uint8_t *buffer, int len) read contiguous register into a buffer Parameters: ----------- dev: the device to access (XM or G) reg: the register to start reading at buf: the buffer to store the results len: the number of registers to read the value of the register """ return _pyupm_lsm9ds0.LSM9DS0_readRegs(self, dev, reg, buffer, len)
[docs] def writeReg(self, dev, reg, val): """ bool writeReg(DEVICE_T dev, uint8_t reg, uint8_t val) write to a register Parameters: ----------- dev: the device to access (XM or G) reg: the register to write to val: the value to write true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_writeReg(self, dev, reg, val)
[docs] def setGyroscopePowerDown(self, enable): """ bool setGyroscopePowerDown(bool enable) enable or disable the gyro power down mode Parameters: ----------- enable: true to put device to sleep, false to wake up true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setGyroscopePowerDown(self, enable)
[docs] def setGyroscopeEnableAxes(self, axes): """ bool setGyroscopeEnableAxes(uint8_t axes) enable or disable gyroscope axes. If all axis are disabled, and powerdown mode is not set, then the gyro goes into sleep mode. Parameters: ----------- axes: bit mask of valid axes, (CTRL_REG1_G_YEN, ...) true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setGyroscopeEnableAxes(self, axes)
[docs] def setGyroscopeODR(self, odr): """ bool setGyroscopeODR(G_ODR_T odr) set the gyroscope Output Data Rate (ODR) Parameters: ----------- odr: one of the G_ODR_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setGyroscopeODR(self, odr)
[docs] def setGyroscopeScale(self, scale): """ bool setGyroscopeScale(G_FS_T scale) set the scaling mode of the gyroscope Parameters: ----------- scale: one of the G_FS_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setGyroscopeScale(self, scale)
[docs] def setAccelerometerEnableAxes(self, axes): """ bool setAccelerometerEnableAxes(uint8_t axes) enable or disable accelerometer axes. Parameters: ----------- axes: bit mask of valid axes, (CTRL_REG1_XM_AXEN, ...) true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setAccelerometerEnableAxes(self, axes)
[docs] def setAccelerometerODR(self, odr): """ bool setAccelerometerODR(XM_AODR_T odr) set the accelerometer Output Data Rate (ODR) Parameters: ----------- odr: one of the XM_AODR_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setAccelerometerODR(self, odr)
[docs] def setAccelerometerScale(self, scale): """ bool setAccelerometerScale(XM_AFS_T scale) set the scaling mode of the accelerometer Parameters: ----------- scale: one of the XM_AFS_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setAccelerometerScale(self, scale)
[docs] def setMagnetometerResolution(self, res): """ bool setMagnetometerResolution(XM_RES_T res) set the magnetometer resolution Parameters: ----------- res: one of the XM_RES_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerResolution(self, res)
[docs] def setMagnetometerODR(self, odr): """ bool setMagnetometerODR(XM_ODR_T odr) set the magnetometer Output Data Rate (ODR) Parameters: ----------- odr: one of the XM_ODR_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerODR(self, odr)
[docs] def setMagnetometerMode(self, mode): """ bool setMagnetometerMode(XM_MD_T mode) set the magnetometer sensor mode Parameters: ----------- mode: one of the XM_MD_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerMode(self, mode)
[docs] def setMagnetometerLPM(self, enable): """ bool setMagnetometerLPM(bool enable) enable or disable magnetometer low power mode (LPM). When in low power mode, the magnetometer updates at 3.125Hz, regardless of it's ODR setting. Parameters: ----------- enable: true to enable LPM, false otherwise true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerLPM(self, enable)
[docs] def setMagnetometerScale(self, scale): """ bool setMagnetometerScale(XM_MFS_T scale) set the scaling mode of the magnetometer Parameters: ----------- scale: one of the XM_MFS_T values true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerScale(self, scale)
[docs] def getAccelerometer(self, *args): """ std::vector< float > getAccelerometer() get the accelerometer values in gravities std::vector containing X, Y, Z acceleration values """ return _pyupm_lsm9ds0.LSM9DS0_getAccelerometer(self, *args)
[docs] def getGyroscope(self, *args): """ std::vector< float > getGyroscope() get the gyroscope values in degrees per second std::vector containing X, Y, Z gyroscope values """ return _pyupm_lsm9ds0.LSM9DS0_getGyroscope(self, *args)
[docs] def getMagnetometer(self, *args): """ std::vector< float > getMagnetometer() get the magnetometer values in gauss std::vector containing X, Y, Z magnetometer values """ return _pyupm_lsm9ds0.LSM9DS0_getMagnetometer(self, *args)
[docs] def getTemperature(self): """ float getTemperature() get the temperature value. Unfortunately the datasheet does not provide a mechanism to convert the temperature value into the correct value, so I made a 'guess'. If it's wrong, and you figure it out, send a patch! the temperature value in degrees Celsius """ return _pyupm_lsm9ds0.LSM9DS0_getTemperature(self)
[docs] def enableTemperatureSensor(self, enable): """ bool enableTemperatureSensor(bool enable) enable onboard temperature measurement sensor Parameters: ----------- enable: true to enable temperature sensor, false to disable true if successful, false otherwise """ return _pyupm_lsm9ds0.LSM9DS0_enableTemperatureSensor(self, enable)
[docs] def getGyroscopeStatus(self): """ uint8_t getGyroscopeStatus() return the gyroscope status register bitmask of STATUS_REG_G_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getGyroscopeStatus(self)
[docs] def getMagnetometerStatus(self): """ uint8_t getMagnetometerStatus() return the magnetometer status register bitmask of STATUS_REG_M_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getMagnetometerStatus(self)
[docs] def getAccelerometerStatus(self): """ uint8_t getAccelerometerStatus() return the accelerometer status register bitmask of STATUS_REG_A_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getAccelerometerStatus(self)
[docs] def getGyroscopeInterruptConfig(self): """ uint8_t getGyroscopeInterruptConfig() return the gyroscope interrupt config register bitmask of INT1_CFG_G_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getGyroscopeInterruptConfig(self)
[docs] def setGyroscopeInterruptConfig(self, enables): """ bool setGyroscopeInterruptConfig(uint8_t enables) set the gyroscope interrupt config register Parameters: ----------- enables: bitmask of INT1_CFG_G_BITS_T values true if successful """ return _pyupm_lsm9ds0.LSM9DS0_setGyroscopeInterruptConfig(self, enables)
[docs] def getGyroscopeInterruptSrc(self): """ uint8_t getGyroscopeInterruptSrc() return the gyroscope interrupt src register bitmask of INT1_SRC_G_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getGyroscopeInterruptSrc(self)
[docs] def getMagnetometerInterruptControl(self): """ uint8_t getMagnetometerInterruptControl() return the magnetometer interrupt control register bitmask of INT_CTRL_REG_M_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getMagnetometerInterruptControl(self)
[docs] def setMagnetometerInterruptControl(self, enables): """ bool setMagnetometerInterruptControl(uint8_t enables) set the magnetometer interrupt control register Parameters: ----------- enables: bitmask of INT_CTRL_REG_M_BITS_T values true if successful """ return _pyupm_lsm9ds0.LSM9DS0_setMagnetometerInterruptControl(self, enables)
[docs] def getMagnetometerInterruptSrc(self): """ uint8_t getMagnetometerInterruptSrc() return the magnetometer interrupt src register bitmask of INT_SRC_REG_M_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getMagnetometerInterruptSrc(self)
[docs] def getInterruptGen1(self): """ uint8_t getInterruptGen1() return the inertial interrupt generator 1 register bitmask of INT_GEN_X_REG_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getInterruptGen1(self)
[docs] def setInterruptGen1(self, enables): """ bool setInterruptGen1(uint8_t enables) set the inertial interrupt generator 1 register Parameters: ----------- enables: bitmask of INT_GEN_X_REG_BITS_T values true if successful """ return _pyupm_lsm9ds0.LSM9DS0_setInterruptGen1(self, enables)
[docs] def getInterruptGen1Src(self): """ uint8_t getInterruptGen1Src() return the inertial interrupt generator 1 src register bitmask of INT_GEN_X_SRC_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getInterruptGen1Src(self)
[docs] def getInterruptGen2(self): """ uint8_t getInterruptGen2() return the inertial interrupt generator 2 register bitmask of INT_GEN_X_REG_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getInterruptGen2(self)
[docs] def setInterruptGen2(self, enables): """ bool setInterruptGen2(uint8_t enables) set the inertial interrupt generator 2 register Parameters: ----------- enables: bitmask of INT_GEN_X_REG_BITS_T values true if successful """ return _pyupm_lsm9ds0.LSM9DS0_setInterruptGen2(self, enables)
[docs] def getInterruptGen2Src(self): """ uint8_t getInterruptGen2Src() return the inertial interrupt generator 2 src register bitmask of INT_GEN_X_SRC_BITS_T bits """ return _pyupm_lsm9ds0.LSM9DS0_getInterruptGen2Src(self)
[docs] def installISR(self, intr, gpio, level, isr, arg): """ void installISR(INTERRUPT_PINS_T intr, int gpio, mraa::Edge level, void(*isr)(void *), void *arg) install an interrupt handler. Parameters: ----------- intr: one of the INTERRUPT_PINS_T values specifying which interrupt pin out of 4 you are installing gpio: gpio pin to use as interrupt pin level: the interrupt trigger level (one of mraa::Edge values). Make sure that you have configured the interrupt pin properly for whatever level you choose. isr: the interrupt handler, accepting a void * argument arg: the argument to pass the the interrupt handler """ return _pyupm_lsm9ds0.LSM9DS0_installISR(self, intr, gpio, level, isr, arg)
[docs] def uninstallISR(self, intr): """ void uninstallISR(INTERRUPT_PINS_T intr) uninstall a previously installed interrupt handler Parameters: ----------- intr: one of the INTERRUPT_PINS_T values specifying which interrupt pin out of 4 you are uninstalling """ return _pyupm_lsm9ds0.LSM9DS0_uninstallISR(self, intr)
LSM9DS0_swigregister = _pyupm_lsm9ds0.LSM9DS0_swigregister LSM9DS0_swigregister(LSM9DS0) # This file is compatible with both classic and new-style classes.