Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
lsm303dlhc_regs.h File Reference

Register defs for ST LSM303DLHC 3D accelerometer and magnetometer. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LSM303DLHC_ACC_ADDR   0x32
 
#define LSM303DLHC_MAG_ADDR   0x3C
 
#define LSM303DLHC_REG_TEMP_OUT_L_M   0x05
 
#define LSM303DLHC_REG_TEMP_OUT_H_M   0x06
 
#define LSM303DLHC_REG_STATUS_REG_M   0x07
 
#define LSM303DLHC_REG_OUT_X_L_M   0x08
 
#define LSM303DLHC_REG_OUT_X_H_M   0x09
 
#define LSM303DLHC_REG_OUT_Y_L_M   0x0A
 
#define LSM303DLHC_REG_OUT_Y_H_M   0x0B
 
#define LSM303DLHC_REG_OUT_Z_L_M   0x0C
 
#define LSM303DLHC_REG_OUT_Z_H_M   0x0D
 
#define LSM303DLHC_REG_WHO_AM_I   0x0F
 
#define LSM303DLHC_REG_INT_CTRL_M   0x12
 
#define LSM303DLHC_REG_INT_SRC_M   0x13
 
#define LSM303DLHC_REG_INT_THS_L_M   0x14
 
#define LSM303DLHC_REG_INT_THS_H_M   0x15
 
#define LSM303DLHC_REG_OFFSET_X_L_M   0x16
 
#define LSM303DLHC_REG_OFFSET_X_H_M   0x17
 
#define LSM303DLHC_REG_OFFSET_Y_L_M   0x18
 
#define LSM303DLHC_REG_OFFSET_Y_H_M   0x19
 
#define LSM303DLHC_REG_OFFSET_Z_L_M   0x1A
 
#define LSM303DLHC_REG_OFFSET_Z_H_M   0x1B
 
#define LSM303DLHC_REG_REFERENCE_X   0x1C
 
#define LSM303DLHC_REG_REFERENCE_Y   0x1D
 
#define LSM303DLHC_REG_REFERENCE_Z   0x1E
 
#define LSM303DLHC_REG_CTRL0   0x1F
 
#define LSM303DLHC_REG_CTRL1   0x20
 
#define LSM303DLHC_REG_CTRL2   0x21
 
#define LSM303DLHC_REG_CTRL3   0x22
 
#define LSM303DLHC_REG_CTRL4   0x23
 
#define LSM303DLHC_REG_CTRL5   0x24
 
#define LSM303DLHC_REG_CTRL6   0x25
 
#define LSM303DLHC_REG_CTRL7   0x26
 
#define LSM303DLHC_REG_STATUS_REG_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
 
#define LSM303DLHC_REG_FIFO_CTRL   0x2E
 
#define LSM303DLHC_REG_FIFO_SRC   0x2F
 
#define LSM303DLHC_REG_INT_CFG   0x30
 
#define LSM303DLHC_REG_INT_SRC1   0x31
 
#define LSM303DLHC_REG_INT_THS1   0x32
 
#define LSM303DLHC_REG_INT_DUR1   0x33
 
#define LSM303DLHC_REG_INT_CFG2   0x34
 
#define LSM303DLHC_REG_INT_SRC2   0x35
 
#define LSM303DLHC_REG_INT_THS2   0x36
 
#define LSM303DLHC_REG_INT_DUR2   0x37
 
#define LSM303DLHC_REG_CLICK_CFG   0x38
 
#define LSM303DLHC_REG_CLICK_SRC   0x39
 
#define LSM303DLHC_REG_CLICK_THS   0x3A
 
#define LSM303DLHC_REG_TIME_LIMIT   0x3B
 
#define LSM303DLHC_REG_TIME_LATENCY   0x3C
 
#define LSM303DLHC_REG_TIME_WINDOW   0x3D
 
#define LSM303DLHC_ACT_THS   0x3E
 
#define LSM303DLHC_ACT_DUR   0x3F
 
#define LSM303DLHC_REG_STATUS_ZYXADA   0x08
 
#define LSM303DLHC_REG_STATUS_ZYXMDA   0x08
 
#define LSM303DLHC_WHO_I_AM   0x49
 
#define LSM303DLHC_Xen   (0x01 << 0)
 
#define LSM303DLHC_Yen   (0x01 << 1)
 
#define LSM303DLHC_Zen   (0x01 << 2)
 
#define LSM303DLHC_BDU   (0x01 << 3)
 
#define LSM303DLHC_AODR_MASK   (0x0F << 4)
 
#define LSM303DLHC_SIM   (0x01 << 0)
 
#define LSM303DLHC_AST   (0x01 << 1)
 
#define LSM303DLHC_FS_MASK   (0x07 << 3)
 
#define LSM303DLHC_ABW_MASK   (0x03 << 6)
 
#define LSM303DLHC_I1_DRDY_A   (0x01 << 2)
 
#define LSM303DLHC_I2_DRDY_A   (0x01 << 3)
 
#define LSM303DLHC_I2_DRDY_M   (0x01 << 2)
 
#define LSM303DLHC_TEMP_EN   (0x01 << 7)
 
#define LSM303DLHC_M_RES   (0x07 << 5)
 
#define LSM303DLHC_M_ODR_MASK   (0x15 << 2)
 
#define LSM303DLHC_M_LIR_MASK   (0x7 << 0)
 
#define LSM303DLHC_MFS_MASK   (0x07 << 5)
 
#define LSM303DLHC_AHPM_MASK   (0x07 << 6)
 
#define LSM303DLHC_AFDS   (0x01 << 5)
 
#define LSM303DLHC_T_ONLY   (0x01 << 4)
 
#define LSM303DLHC_MLP   (0x01 << 2)
 
#define LSM303DLHC_MD_MASK   (0x07 << 0)
 

Detailed Description

Register defs for ST LSM303DLHC 3D accelerometer and magnetometer.

Definition in file lsm303dlhc_regs.h.

Macro Definition Documentation

◆ LSM303DLHC_ABW_MASK

#define LSM303DLHC_ABW_MASK   (0x03 << 6)

Definition at line 116 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_ACC_ADDR

#define LSM303DLHC_ACC_ADDR   0x32

Definition at line 31 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_ACT_DUR

#define LSM303DLHC_ACT_DUR   0x3F

Definition at line 97 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_ACT_THS

#define LSM303DLHC_ACT_THS   0x3E

Definition at line 96 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_AFDS

#define LSM303DLHC_AFDS   (0x01 << 5)

Definition at line 138 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_AHPM_MASK

#define LSM303DLHC_AHPM_MASK   (0x07 << 6)

Definition at line 137 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_AODR_MASK

#define LSM303DLHC_AODR_MASK   (0x0F << 4)

Definition at line 110 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_AST

#define LSM303DLHC_AST   (0x01 << 1)

Definition at line 114 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_BDU

#define LSM303DLHC_BDU   (0x01 << 3)

Definition at line 109 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_FS_MASK

#define LSM303DLHC_FS_MASK   (0x07 << 3)

Definition at line 115 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_I1_DRDY_A

#define LSM303DLHC_I1_DRDY_A   (0x01 << 2)

Definition at line 119 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_I2_DRDY_A

#define LSM303DLHC_I2_DRDY_A   (0x01 << 3)

Definition at line 123 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_I2_DRDY_M

#define LSM303DLHC_I2_DRDY_M   (0x01 << 2)

Definition at line 124 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_M_LIR_MASK

#define LSM303DLHC_M_LIR_MASK   (0x7 << 0)

Definition at line 131 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_M_ODR_MASK

#define LSM303DLHC_M_ODR_MASK   (0x15 << 2)

Definition at line 130 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_M_RES

#define LSM303DLHC_M_RES   (0x07 << 5)

Definition at line 129 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_MAG_ADDR

#define LSM303DLHC_MAG_ADDR   0x3C

Definition at line 32 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_MD_MASK

#define LSM303DLHC_MD_MASK   (0x07 << 0)

Definition at line 141 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_MFS_MASK

#define LSM303DLHC_MFS_MASK   (0x07 << 5)

Definition at line 134 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_MLP

#define LSM303DLHC_MLP   (0x01 << 2)

Definition at line 140 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CLICK_CFG

#define LSM303DLHC_REG_CLICK_CFG   0x38

Definition at line 90 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CLICK_SRC

#define LSM303DLHC_REG_CLICK_SRC   0x39

Definition at line 91 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CLICK_THS

#define LSM303DLHC_REG_CLICK_THS   0x3A

Definition at line 92 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL0

#define LSM303DLHC_REG_CTRL0   0x1F

Definition at line 63 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL1

#define LSM303DLHC_REG_CTRL1   0x20

Definition at line 64 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL2

#define LSM303DLHC_REG_CTRL2   0x21

Definition at line 65 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL3

#define LSM303DLHC_REG_CTRL3   0x22

Definition at line 66 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL4

#define LSM303DLHC_REG_CTRL4   0x23

Definition at line 67 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL5

#define LSM303DLHC_REG_CTRL5   0x24

Definition at line 68 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL6

#define LSM303DLHC_REG_CTRL6   0x25

Definition at line 69 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_CTRL7

#define LSM303DLHC_REG_CTRL7   0x26

Definition at line 70 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_FIFO_CTRL

#define LSM303DLHC_REG_FIFO_CTRL   0x2E

Definition at line 80 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_FIFO_SRC

#define LSM303DLHC_REG_FIFO_SRC   0x2F

Definition at line 81 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_CFG

#define LSM303DLHC_REG_INT_CFG   0x30

Definition at line 82 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_CFG2

#define LSM303DLHC_REG_INT_CFG2   0x34

Definition at line 86 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_CTRL_M

#define LSM303DLHC_REG_INT_CTRL_M   0x12

Definition at line 50 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_DUR1

#define LSM303DLHC_REG_INT_DUR1   0x33

Definition at line 85 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_DUR2

#define LSM303DLHC_REG_INT_DUR2   0x37

Definition at line 89 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_SRC1

#define LSM303DLHC_REG_INT_SRC1   0x31

Definition at line 83 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_SRC2

#define LSM303DLHC_REG_INT_SRC2   0x35

Definition at line 87 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_SRC_M

#define LSM303DLHC_REG_INT_SRC_M   0x13

Definition at line 51 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_THS1

#define LSM303DLHC_REG_INT_THS1   0x32

Definition at line 84 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_THS2

#define LSM303DLHC_REG_INT_THS2   0x36

Definition at line 88 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_THS_H_M

#define LSM303DLHC_REG_INT_THS_H_M   0x15

Definition at line 53 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_INT_THS_L_M

#define LSM303DLHC_REG_INT_THS_L_M   0x14

Definition at line 52 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_X_H_M

#define LSM303DLHC_REG_OFFSET_X_H_M   0x17

Definition at line 55 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_X_L_M

#define LSM303DLHC_REG_OFFSET_X_L_M   0x16

Definition at line 54 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_Y_H_M

#define LSM303DLHC_REG_OFFSET_Y_H_M   0x19

Definition at line 57 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_Y_L_M

#define LSM303DLHC_REG_OFFSET_Y_L_M   0x18

Definition at line 56 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_Z_H_M

#define LSM303DLHC_REG_OFFSET_Z_H_M   0x1B

Definition at line 59 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OFFSET_Z_L_M

#define LSM303DLHC_REG_OFFSET_Z_L_M   0x1A

Definition at line 58 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_X_H_A

#define LSM303DLHC_REG_OUT_X_H_A   0x29

Definition at line 74 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_X_H_M

#define LSM303DLHC_REG_OUT_X_H_M   0x09

Definition at line 42 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_X_L_A

#define LSM303DLHC_REG_OUT_X_L_A   0x28

Definition at line 73 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_X_L_M

#define LSM303DLHC_REG_OUT_X_L_M   0x08

Definition at line 41 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Y_H_A

#define LSM303DLHC_REG_OUT_Y_H_A   0x2B

Definition at line 76 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Y_H_M

#define LSM303DLHC_REG_OUT_Y_H_M   0x0B

Definition at line 44 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Y_L_A

#define LSM303DLHC_REG_OUT_Y_L_A   0x2A

Definition at line 75 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Y_L_M

#define LSM303DLHC_REG_OUT_Y_L_M   0x0A

Definition at line 43 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Z_H_A

#define LSM303DLHC_REG_OUT_Z_H_A   0x2D

Definition at line 78 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Z_H_M

#define LSM303DLHC_REG_OUT_Z_H_M   0x0D

Definition at line 46 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Z_L_A

#define LSM303DLHC_REG_OUT_Z_L_A   0x2C

Definition at line 77 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_OUT_Z_L_M

#define LSM303DLHC_REG_OUT_Z_L_M   0x0C

Definition at line 45 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_REFERENCE_X

#define LSM303DLHC_REG_REFERENCE_X   0x1C

Definition at line 60 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_REFERENCE_Y

#define LSM303DLHC_REG_REFERENCE_Y   0x1D

Definition at line 61 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_REFERENCE_Z

#define LSM303DLHC_REG_REFERENCE_Z   0x1E

Definition at line 62 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_STATUS_REG_A

#define LSM303DLHC_REG_STATUS_REG_A   0x27

Definition at line 72 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_STATUS_REG_M

#define LSM303DLHC_REG_STATUS_REG_M   0x07

Definition at line 40 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_STATUS_ZYXADA

#define LSM303DLHC_REG_STATUS_ZYXADA   0x08

Definition at line 99 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_STATUS_ZYXMDA

#define LSM303DLHC_REG_STATUS_ZYXMDA   0x08

Definition at line 100 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_TEMP_OUT_H_M

#define LSM303DLHC_REG_TEMP_OUT_H_M   0x06

Definition at line 38 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_TEMP_OUT_L_M

#define LSM303DLHC_REG_TEMP_OUT_L_M   0x05

Definition at line 37 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_TIME_LATENCY

#define LSM303DLHC_REG_TIME_LATENCY   0x3C

Definition at line 94 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_TIME_LIMIT

#define LSM303DLHC_REG_TIME_LIMIT   0x3B

Definition at line 93 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_TIME_WINDOW

#define LSM303DLHC_REG_TIME_WINDOW   0x3D

Definition at line 95 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_REG_WHO_AM_I

#define LSM303DLHC_REG_WHO_AM_I   0x0F

Definition at line 48 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_SIM

#define LSM303DLHC_SIM   (0x01 << 0)

Definition at line 113 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_T_ONLY

#define LSM303DLHC_T_ONLY   (0x01 << 4)

Definition at line 139 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_TEMP_EN

#define LSM303DLHC_TEMP_EN   (0x01 << 7)

Definition at line 128 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_WHO_I_AM

#define LSM303DLHC_WHO_I_AM   0x49

Definition at line 102 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_Xen

#define LSM303DLHC_Xen   (0x01 << 0)

Definition at line 106 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_Yen

#define LSM303DLHC_Yen   (0x01 << 1)

Definition at line 107 of file lsm303dlhc_regs.h.

◆ LSM303DLHC_Zen

#define LSM303DLHC_Zen   (0x01 << 2)

Definition at line 108 of file lsm303dlhc_regs.h.