Internal configuration for LSM6DSXX devices. More...
Internal configuration for LSM6DSXX devices.
Definition in file lsm6dsxx_internal.h.
Go to the source code of this file.
Macros | |
#define | LSM6DS33_WHO_AM_I (0b01101001) |
WHO_AM_I value for the LSM6DS33. | |
#define | LSM6DSL_WHO_AM_I (0b01101010) |
WHO_AM_I value for the LSM6DSL and LSM6DS3TR-C. | |
#define | LSM6DSXX_TEMP_OFFSET (25) |
Offset for temperature calculation. | |
#define | LSM6DSXX_BOOT_WAIT_MS (15) |
Reboot wait interval in ms (15ms) | |
LSM6DS33 specific registers | |
#define | LSM6DS33_REG_ORIENT_CFG_G (0x0B) |
CTRL_x registers | |
#define | LSM6DSXX_CTRL_ODR_SHIFT (4) |
#define | LSM6DSXX_CTRL_ODR_MASK (0xF0) |
#define | LSM6DSXX_CTRL_FS_SHIFT (2) |
#define | LSM6DSXX_CTRL_FS_MASK (0x0C) |
#define | LSM6DSXX_CTRL3_C_BOOT (0x80) |
FIFO_CTRL_x registers | |
#define | LSM6DSXX_FIFO_CTRL5_CONTINUOUS_MODE (0x6) |
#define | LSM6DSXX_FIFO_CTRL5_FIFO_ODR_SHIFT (3) |
#define | LSM6DSXX_FIFO_CTRL3_GYRO_DEC_SHIFT (3) |
#define LSM6DS33_REG_ORIENT_CFG_G (0x0B) |
Definition at line 142 of file lsm6dsxx_internal.h.
#define LSM6DS33_WHO_AM_I (0b01101001) |
WHO_AM_I value for the LSM6DS33.
Definition at line 148 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_DRDY_PULSE_CFG_G (0x0B) |
Definition at line 102 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_FUNC_SRC_2 (0x54) |
Definition at line 122 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_MASTER_CMD_CODE (0x60) |
Definition at line 124 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_MASTER_CONFIG (0x1A) |
Definition at line 103 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_X_H (0x67) |
Definition at line 127 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_X_L (0x66) |
Definition at line 126 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_Y_H (0x69) |
Definition at line 129 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_Y_L (0x68) |
Definition at line 128 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_Z_H (0x6B) |
Definition at line 131 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_OUT_MAG_RAW_Z_L (0x6A) |
Definition at line 130 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENS_SYNC_SPI_ERR_CODE (0x61) |
Definition at line 125 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSOR_SYC_RES_RATIO (0x05) |
Definition at line 101 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSOR_SYNC_TIME_FRAME (0x04) |
Definition at line 100 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB10_REG (0x37) |
Definition at line 113 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB11_REG (0x38) |
Definition at line 114 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB12_REG (0x39) |
Definition at line 115 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB13_REG (0x4D) |
Definition at line 116 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB14_REG (0x4E) |
Definition at line 117 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB15_REG (0x4F) |
Definition at line 118 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB16_REG (0x50) |
Definition at line 119 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB17_REG (0x51) |
Definition at line 120 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB18_REG (0x52) |
Definition at line 121 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB1_REG (0x2E) |
Definition at line 104 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB2_REG (0x2F) |
Definition at line 105 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB3_REG (0x30) |
Definition at line 106 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB4_REG (0x31) |
Definition at line 107 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB5_REG (0x32) |
Definition at line 108 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB6_REG (0x33) |
Definition at line 109 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB7_REG (0x34) |
Definition at line 110 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB8_REG (0x35) |
Definition at line 111 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_SENSORHUB9_REG (0x36) |
Definition at line 112 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_WRIST_TILT_IA (0x55) |
Definition at line 123 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_X_OFS_USR (0x73) |
Definition at line 132 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_Y_OFS_USR (0x74) |
Definition at line 133 of file lsm6dsxx_internal.h.
#define LSM6DSL_REG_Z_OFS_USR (0x75) |
Definition at line 134 of file lsm6dsxx_internal.h.
#define LSM6DSL_WHO_AM_I (0b01101010) |
WHO_AM_I value for the LSM6DSL and LSM6DS3TR-C.
Definition at line 153 of file lsm6dsxx_internal.h.
#define LSM6DSXX_BOOT_WAIT_MS (15) |
Reboot wait interval in ms (15ms)
Definition at line 185 of file lsm6dsxx_internal.h.
#define LSM6DSXX_CTRL3_C_BOOT (0x80) |
Definition at line 164 of file lsm6dsxx_internal.h.
#define LSM6DSXX_CTRL_FS_MASK (0x0C) |
Definition at line 162 of file lsm6dsxx_internal.h.
#define LSM6DSXX_CTRL_FS_SHIFT (2) |
Definition at line 161 of file lsm6dsxx_internal.h.
#define LSM6DSXX_CTRL_ODR_MASK (0xF0) |
Definition at line 160 of file lsm6dsxx_internal.h.
#define LSM6DSXX_CTRL_ODR_SHIFT (4) |
Definition at line 159 of file lsm6dsxx_internal.h.
#define LSM6DSXX_FIFO_CTRL3_GYRO_DEC_SHIFT (3) |
Definition at line 174 of file lsm6dsxx_internal.h.
#define LSM6DSXX_FIFO_CTRL5_CONTINUOUS_MODE (0x6) |
Definition at line 171 of file lsm6dsxx_internal.h.
#define LSM6DSXX_FIFO_CTRL5_FIFO_ODR_SHIFT (3) |
Definition at line 172 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL10_C (0x19) |
Definition at line 53 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL1_XL (0x10) |
Definition at line 44 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL2_G (0x11) |
Definition at line 45 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL3_C (0x12) |
Definition at line 46 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL4_C (0x13) |
Definition at line 47 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL5_C (0x14) |
Definition at line 48 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL6_C (0x15) |
Definition at line 49 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL7_G (0x16) |
Definition at line 50 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL8_XL (0x17) |
Definition at line 51 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_CTRL9_XL (0x18) |
Definition at line 52 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_D6D_SRC (0x1D) |
Definition at line 56 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_CTRL1 (0x06) |
Definition at line 36 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_CTRL2 (0x07) |
Definition at line 37 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_CTRL3 (0x08) |
Definition at line 38 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_CTRL4 (0x09) |
Definition at line 39 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_CTRL5 (0x0A) |
Definition at line 40 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_DATA_OUT_H (0x3F) |
Definition at line 77 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_DATA_OUT_L (0x3E) |
Definition at line 76 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_STATUS1 (0x3A) |
Definition at line 72 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_STATUS2 (0x3B) |
Definition at line 73 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_STATUS3 (0x3C) |
Definition at line 74 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FIFO_STATUS4 (0x3D) |
Definition at line 75 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FREE_FALL (0x5D) |
Definition at line 91 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FUNC_CFG_ACCESS (0x01) |
Definition at line 35 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_FUNC_SR_1 (0x53) |
Definition at line 85 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_INT1_CTRL (0x0D) |
Definition at line 41 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_INT2_CTRL (0x0E) |
Definition at line 42 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_INT_DUR2 (0x5A) |
Definition at line 88 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_MD1_CFG (0x5E) |
Definition at line 92 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_MD2_CFG (0x5F) |
Definition at line 93 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUT_TEMP_H (0x21) |
Definition at line 59 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUT_TEMP_L (0x20) |
Definition at line 58 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTX_H_G (0x23) |
Definition at line 61 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTX_H_XL (0x29) |
Definition at line 67 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTX_L_G (0x22) |
Definition at line 60 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTX_L_XL (0x28) |
Definition at line 66 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTY_H_G (0x25) |
Definition at line 63 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTY_H_XL (0x2B) |
Definition at line 69 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTY_L_G (0x24) |
Definition at line 62 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTY_L_XL (0x2A) |
Definition at line 68 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTZ_H_G (0x27) |
Definition at line 65 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTZ_H_XL (0x2D) |
Definition at line 71 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTZ_L_G (0x26) |
Definition at line 64 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_OUTZ_L_XL (0x2C) |
Definition at line 70 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_STATUS_REG (0x1E) |
Definition at line 57 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_STEP_COUNTER_H (0x4C) |
Definition at line 84 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_STEP_COUNTER_L (0x4B) |
Definition at line 83 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_STEP_TIMESTAMP_H (0x4A) |
Definition at line 82 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_STEP_TIMESTAMP_L (0x49) |
Definition at line 81 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TAP_CFG (0x58) |
Definition at line 86 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TAP_SRC (0x1C) |
Definition at line 55 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TAP_THS_6D (0x59) |
Definition at line 87 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TIMESTAMP0_REG (0x40) |
Definition at line 78 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TIMESTAMP1_REG (0x41) |
Definition at line 79 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_TIMESTAMP2_REG (0x42) |
Definition at line 80 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_WAKE_UP_DUR (0x5C) |
Definition at line 90 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_WAKE_UP_SRC (0x1B) |
Definition at line 54 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_WAKE_UP_THS (0x5B) |
Definition at line 89 of file lsm6dsxx_internal.h.
#define LSM6DSXX_REG_WHO_AM_I (0x0F) |
Definition at line 43 of file lsm6dsxx_internal.h.
#define LSM6DSXX_TEMP_OFFSET (25) |
Offset for temperature calculation.
Definition at line 180 of file lsm6dsxx_internal.h.