Definitions for the LSM303DLHC 3D accelerometer/magnetometer. More...
Definitions for the LSM303DLHC 3D accelerometer/magnetometer.
Definition in file lsm303dlhc-internal.h.
Go to the source code of this file.
LSM303DLHC accelerometer registers | |
#define | LSM303DLHC_REG_CTRL1_A (0x20) |
#define | LSM303DLHC_REG_CTRL2_A (0x21) |
#define | LSM303DLHC_REG_CTRL3_A (0x22) |
#define | LSM303DLHC_REG_CTRL4_A (0x23) |
#define | LSM303DLHC_REG_CTRL5_A (0x24) |
#define | LSM303DLHC_REG_CTRL6_A (0x25) |
#define | LSM303DLHC_REG_REFERENCE_A (0x26) |
#define | LSM303DLHC_REG_STATUS_A (0x27) |
#define | LSM303DLHC_REG_OUT_X_L_A (0x28) |
#define | LSM303DLHC_REG_OUT_X_H_A (0x29) |
#define | LSM303DLHC_REG_OUT_Y_L_A (0x2a) |
#define | LSM303DLHC_REG_OUT_Y_H_A (0x2b) |
#define | LSM303DLHC_REG_OUT_Z_L_A (0x2c) |
#define | LSM303DLHC_REG_OUT_Z_H_A (0x2d) |
Masks for the LSM303DLHC CTRL1_A register | |
#define | LSM303DLHC_CTRL1_A_XEN (0x01) |
#define | LSM303DLHC_CTRL1_A_YEN (0x02) |
#define | LSM303DLHC_CTRL1_A_ZEN (0x04) |
#define | LSM303DLHC_CTRL1_A_LOW_POWER (0x08) |
#define | LSM303DLHC_CTRL1_A_POWEROFF (0x00) |
#define | LSM303DLHC_CTRL1_A_1HZ (0x10) |
#define | LSM303DLHC_CTRL1_A_10HZ (0x20) |
#define | LSM303DLHC_CTRL1_A_25HZ (0x30) |
#define | LSM303DLHC_CTRL1_A_50HZ (0x40) |
#define | LSM303DLHC_CTRL1_A_100HZ (0x50) |
#define | LSM303DLHC_CTRL1_A_200HZ (0x60) |
#define | LSM303DLHC_CTRL1_A_400HZ (0x70) |
#define | LSM303DLHC_CTRL1_A_1620HZ (0x80) |
#define | LSM303DLHC_CTRL1_A_N1344HZ_L5376HZ (0x90) |
Masks for the LSM303DLHC CTRL3_A register | |
#define | LSM303DLHC_CTRL3_A_I1_CLICK (0x80) |
#define | LSM303DLHC_CTRL3_A_I1_AOI1 (0x40) |
#define | LSM303DLHC_CTRL3_A_I1_AOI2 (0x20) |
#define | LSM303DLHC_CTRL3_A_I1_DRDY1 (0x10) |
#define | LSM303DLHC_CTRL3_A_I1_DRDY2 (0x80) |
#define | LSM303DLHC_CTRL3_A_I1_WTM (0x40) |
#define | LSM303DLHC_CTRL3_A_I1_OVERRUN (0x20) |
#define | LSM303DLHC_CTRL3_A_I1_NONE (0x00) |
Masks for the LSM303DLHC CTRL4_A register | |
#define | LSM303DLHC_CTRL4_A_BDU (0x80) |
#define | LSM303DLHC_CTRL4_A_BLE (0x40) |
#define | LSM303DLHC_CTRL4_A_SCALE_2G (0x00) |
#define | LSM303DLHC_CTRL4_A_SCALE_4G (0x10) |
#define | LSM303DLHC_CTRL4_A_SCALE_8G (0x20) |
#define | LSM303DLHC_CTRL4_A_SCALE_16G (0x30) |
#define | LSM303DLHC_CTRL4_A_HR (0x04) |
#define | LSM303DLHC_REG_CTRL5_A_BOOT (0x80) |
#define | LSM303DLHC_REG_CTRL5_A_FIFO_EN (0x40) |
Masks for the LSM303DLHC STATUS_A register | |
#define | LSM303DLHC_STATUS_ZYXOR (0x80) |
#define | LSM303DLHC_STATUS_ZOR (0x40) |
#define | LSM303DLHC_STATUS_YOR (0x20) |
#define | LSM303DLHC_STATUS_XOR (0x10) |
#define | LSM303DLHC_STATUS_ZYXDA (0x08) |
#define | LSM303DLHC_STATUS_ZDA (0x04) |
#define | LSM303DLHC_STATUS_YDA (0x02) |
#define | LSM303DLHC_STATUS_XDA (0x01) |
LSM303DLHC magnetometer registers | |
#define | LSM303DLHC_REG_CRA_M (0x00) |
#define | LSM303DLHC_REG_CRB_M (0x01) |
#define | LSM303DLHC_REG_MR_M (0x02) |
#define | LSM303DLHC_REG_OUT_X_H_M (0x03) |
#define | LSM303DLHC_REG_OUT_X_L_M (0x04) |
#define | LSM303DLHC_REG_OUT_Y_H_M (0x05) |
#define | LSM303DLHC_REG_OUT_Y_L_M (0x06) |
#define | LSM303DLHC_REG_OUT_Z_H_M (0x07) |
#define | LSM303DLHC_REG_OUT_Z_L_M (0x08) |
#define | LSM303DLHC_REG_SR_M (0x09) |
#define | LSM303DLHC_REG_TEMP_OUT_L (0x32) |
#define | LSM303DLHC_REG_TEMP_OUT_H (0x31) |
Masks for the LSM303DLHC CRA_REG_M register | |
#define | LSM303DLHC_TEMP_EN (0x80) |
#define | LSM303DLHC_TEMP_DIS (0x00) |
#define | LSM303DLHC_TEMP_SAMPLE_0_75HZ (0x00) |
#define | LSM303DLHC_TEMP_SAMPLE_1_5HZ (0x04) |
#define | LSM303DLHC_TEMP_SAMPLE_3HZ (0x08) |
#define | LSM303DLHC_TEMP_SAMPLE_7_5HZ (0x0c) |
#define | LSM303DLHC_TEMP_SAMPLE_15HZ (0x10) |
#define | LSM303DLHC_TEMP_SAMPLE_30HZ (0x14) |
#define | LSM303DLHC_TEMP_SAMPLE_75HZ (0x18) |
#define | LSM303DLHC_TEMP_SAMPLE_220HZ (0x1c) |
Masks for the LSM303DLHC CRB_REG_M register | |
#define | LSM303DLHC_GAIN_1 (0x20) |
#define | LSM303DLHC_GAIN_2 (0x40) |
#define | LSM303DLHC_GAIN_3 (0x60) |
#define | LSM303DLHC_GAIN_4 (0x80) |
#define | LSM303DLHC_GAIN_5 (0xa0) |
#define | LSM303DLHC_GAIN_6 (0xc0) |
#define | LSM303DLHC_GAIN_7 (0xe0) |
Masks for the LSM303DLHC MR_REG_M register | |
#define | LSM303DLHC_MAG_MODE_CONTINUOUS (0x00) |
#define | LSM303DLHC_MAG_MODE_SINGLE (0x01) |
#define | LSM303DLHC_MAG_MODE_SLEEP (0x02) |
#define LSM303DLHC_CTRL1_A_100HZ (0x50) |
Definition at line 60 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_10HZ (0x20) |
Definition at line 57 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_1620HZ (0x80) |
Definition at line 63 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_1HZ (0x10) |
Definition at line 56 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_200HZ (0x60) |
Definition at line 61 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_25HZ (0x30) |
Definition at line 58 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_400HZ (0x70) |
Definition at line 62 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_50HZ (0x40) |
Definition at line 59 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_LOW_POWER (0x08) |
Definition at line 54 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_N1344HZ_L5376HZ (0x90) |
Definition at line 64 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_POWEROFF (0x00) |
Definition at line 55 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_XEN (0x01) |
Definition at line 51 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_YEN (0x02) |
Definition at line 52 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL1_A_ZEN (0x04) |
Definition at line 53 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_AOI1 (0x40) |
Definition at line 72 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_AOI2 (0x20) |
Definition at line 73 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_CLICK (0x80) |
Definition at line 71 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_DRDY1 (0x10) |
Definition at line 74 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_DRDY2 (0x80) |
Definition at line 75 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_NONE (0x00) |
Definition at line 78 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_OVERRUN (0x20) |
Definition at line 77 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL3_A_I1_WTM (0x40) |
Definition at line 76 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_BDU (0x80) |
Definition at line 85 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_BLE (0x40) |
Definition at line 86 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_HR (0x04) |
Definition at line 91 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_SCALE_16G (0x30) |
Definition at line 90 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_SCALE_2G (0x00) |
Definition at line 87 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_SCALE_4G (0x10) |
Definition at line 88 of file lsm303dlhc-internal.h.
#define LSM303DLHC_CTRL4_A_SCALE_8G (0x20) |
Definition at line 89 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_1 (0x20) |
Definition at line 155 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_2 (0x40) |
Definition at line 156 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_3 (0x60) |
Definition at line 157 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_4 (0x80) |
Definition at line 158 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_5 (0xa0) |
Definition at line 159 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_6 (0xc0) |
Definition at line 160 of file lsm303dlhc-internal.h.
#define LSM303DLHC_GAIN_7 (0xe0) |
Definition at line 161 of file lsm303dlhc-internal.h.
#define LSM303DLHC_MAG_MODE_CONTINUOUS (0x00) |
Definition at line 168 of file lsm303dlhc-internal.h.
#define LSM303DLHC_MAG_MODE_SINGLE (0x01) |
Definition at line 169 of file lsm303dlhc-internal.h.
#define LSM303DLHC_MAG_MODE_SLEEP (0x02) |
Definition at line 170 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CRA_M (0x00) |
Definition at line 120 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CRB_M (0x01) |
Definition at line 121 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL1_A (0x20) |
Definition at line 31 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL2_A (0x21) |
Definition at line 32 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL3_A (0x22) |
Definition at line 33 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL4_A (0x23) |
Definition at line 34 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL5_A (0x24) |
Definition at line 35 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL5_A_BOOT (0x80) |
Definition at line 112 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL5_A_FIFO_EN (0x40) |
Definition at line 113 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_CTRL6_A (0x25) |
Definition at line 36 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_MR_M (0x02) |
Definition at line 122 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_X_H_A (0x29) |
Definition at line 40 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_X_H_M (0x03) |
Definition at line 123 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_X_L_A (0x28) |
Definition at line 39 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_X_L_M (0x04) |
Definition at line 124 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Y_H_A (0x2b) |
Definition at line 42 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Y_H_M (0x05) |
Definition at line 125 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Y_L_A (0x2a) |
Definition at line 41 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Y_L_M (0x06) |
Definition at line 126 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Z_H_A (0x2d) |
Definition at line 44 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Z_H_M (0x07) |
Definition at line 127 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Z_L_A (0x2c) |
Definition at line 43 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_OUT_Z_L_M (0x08) |
Definition at line 128 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_REFERENCE_A (0x26) |
Definition at line 37 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_SR_M (0x09) |
Definition at line 129 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_STATUS_A (0x27) |
Definition at line 38 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_TEMP_OUT_H (0x31) |
Definition at line 131 of file lsm303dlhc-internal.h.
#define LSM303DLHC_REG_TEMP_OUT_L (0x32) |
Definition at line 130 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_XDA (0x01) |
Definition at line 105 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_XOR (0x10) |
Definition at line 101 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_YDA (0x02) |
Definition at line 104 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_YOR (0x20) |
Definition at line 100 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_ZDA (0x04) |
Definition at line 103 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_ZOR (0x40) |
Definition at line 99 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_ZYXDA (0x08) |
Definition at line 102 of file lsm303dlhc-internal.h.
#define LSM303DLHC_STATUS_ZYXOR (0x80) |
Definition at line 98 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_DIS (0x00) |
Definition at line 139 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_EN (0x80) |
Definition at line 138 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_0_75HZ (0x00) |
Definition at line 141 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_15HZ (0x10) |
Definition at line 145 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_1_5HZ (0x04) |
Definition at line 142 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_220HZ (0x1c) |
Definition at line 148 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_30HZ (0x14) |
Definition at line 146 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_3HZ (0x08) |
Definition at line 143 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_75HZ (0x18) |
Definition at line 147 of file lsm303dlhc-internal.h.
#define LSM303DLHC_TEMP_SAMPLE_7_5HZ (0x0c) |
Definition at line 144 of file lsm303dlhc-internal.h.