Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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_CTRL_REG1_A   0x20
 
#define LSM303DLHC_REG_CTRL_REG2_A   0x21
 
#define LSM303DLHC_REG_CTRL_REG3_A   0x22
 
#define LSM303DLHC_REG_CTRL_REG4_A   0x23
 
#define LSM303DLHC_REG_CTRL_REG5_A   0x24
 
#define LSM303DLHC_REG_CTRL_REG6_A   0x25
 
#define LSM303DLHC_REG_REF_DATA_CAP_A   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_REG_A   0x2E
 
#define LSM303DLHC_REG_FIFO_SRC_REG_A   0x2F
 
#define LSM303DLHC_REG_INT1_CFG_A   0x30
 
#define LSM303DLHC_REG_INT1_SRC_A   0x31
 
#define LSM303DLHC_REG_INT1_THS_A   0x32
 
#define LSM303DLHC_REG_INT1_DURATION_A   0x33
 
#define LSM303DLHC_REG_INT2_CFG_A   0x34
 
#define LSM303DLHC_REG_INT2_SRC_A   0x35
 
#define LSM303DLHC_REG_INT2_THS_A   0x36
 
#define LSM303DLHC_REG_INT2_DURATION_A   0x37
 
#define LSM303DLHC_REG_CLICK_CFG_A   0x38
 
#define LSM303DLHC_REG_CLICK_SRC_A   0x39
 
#define LSM303DLHC_REG_CLICK_THS_A   0x3A
 
#define LSM303DLHC_REG_TIME_LIMIT_A   0x3B
 
#define LSM303DLHC_REG_TIME_LATENCY_A   0x3C
 
#define LSM303DLHC_REG_TIME_WINDOW_A   0x3D
 
#define LSM303DLHC_REG_CRA_REG_M   0x00
 
#define LSM303DLHC_REG_CRB_REG_M   0x01
 
#define LSM303DLHC_REG_MR_REG_M   0x02
 
#define LSM303DLHC_REG_OUT_X_H_M   0x03
 
#define LSM303DLHC_REG_OUT_X_L_M   0x04
 
#define LSM303DLHC_REG_OUT_Z_H_M   0x05
 
#define LSM303DLHC_REG_OUT_Z_L_M   0x06
 
#define LSM303DLHC_REG_OUT_Y_H_M   0x07
 
#define LSM303DLHC_REG_OUT_Y_L_M   0x08
 
#define LSM303DLHC_REG_SR_REG_M   0x09
 
#define LSM303DLHC_REG_IRA_REG_M   0x0A
 
#define LSM303DLHC_REG_IRB_REG_M   0x0B
 
#define LSM303DLHC_REG_IRC_REG_M   0x0C
 
#define LSM303DLHC_REG_TEMP_OUT_H_M   0x31
 
#define LSM303DLHC_REG_TEMP_OUT_L_M   0x32
 
#define LSM303DLHC_ODR_MASK   0xF0
 
#define LSM303DLHC_LPen   (1 << 3)
 
#define LSM303DLHC_Xen   (1 << 0)
 
#define LSM303DLHC_Yen   (1 << 1)
 
#define LSM303DLHC_Zen   (1 << 2)
 
#define LSM303DLHC_FS_MASK   0x30
 
#define LSM303DLHC_HR   (1 << 3)
 
#define LSM303DLHC_BDU   (1 << 7)
 
#define LSM303DLHC_I1_DRDY1   (1 << 4)
 
#define LSM303DLHC_DO0_MASK   0x1C
 
#define LSM303DLHC_GN_MASK   0xE0
 
#define LSM303DLHC_MD_MASK   0x03
 

Detailed Description

Register defs for ST LSM303DLHC 3D accelerometer and magnetometer.

Definition in file lsm303dlhc_regs.h.

Macro Definition Documentation

#define LSM303DLHC_ACC_ADDR   0x32
#define LSM303DLHC_BDU   (1 << 7)

Definition at line 90 of file lsm303dlhc_regs.h.

#define LSM303DLHC_DO0_MASK   0x1C

Definition at line 94 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_mag_set_default_config().

#define LSM303DLHC_FS_MASK   0x30

Definition at line 88 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_GN_MASK   0xE0

Definition at line 95 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_mag_set_default_config().

#define LSM303DLHC_HR   (1 << 3)

Definition at line 89 of file lsm303dlhc_regs.h.

#define LSM303DLHC_I1_DRDY1   (1 << 4)

Definition at line 92 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_LPen   (1 << 3)

Definition at line 83 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_MAG_ADDR   0x3C

Definition at line 32 of file lsm303dlhc_regs.h.

#define LSM303DLHC_MD_MASK   0x03

Definition at line 96 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_mag_set_default_config().

#define LSM303DLHC_ODR_MASK   0xF0

Definition at line 82 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CLICK_CFG_A   0x38

Definition at line 59 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_CLICK_SRC_A   0x39

Definition at line 60 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_CLICK_THS_A   0x3A

Definition at line 61 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_CRA_REG_M   0x00

Definition at line 65 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CRB_REG_M   0x01

Definition at line 66 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CTRL_REG1_A   0x20

Definition at line 35 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CTRL_REG2_A   0x21

Definition at line 36 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_CTRL_REG3_A   0x22

Definition at line 37 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CTRL_REG4_A   0x23

Definition at line 38 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_CTRL_REG5_A   0x24

Definition at line 39 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_CTRL_REG6_A   0x25

Definition at line 40 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_FIFO_CTRL_REG_A   0x2E

Definition at line 49 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_FIFO_SRC_REG_A   0x2F

Definition at line 50 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT1_CFG_A   0x30

Definition at line 51 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT1_DURATION_A   0x33

Definition at line 54 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT1_SRC_A   0x31

Definition at line 52 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT1_THS_A   0x32

Definition at line 53 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT2_CFG_A   0x34

Definition at line 55 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT2_DURATION_A   0x37

Definition at line 58 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT2_SRC_A   0x35

Definition at line 56 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_INT2_THS_A   0x36

Definition at line 57 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_IRA_REG_M   0x0A

Definition at line 75 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_IRB_REG_M   0x0B

Definition at line 76 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_IRC_REG_M   0x0C

Definition at line 77 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_MR_REG_M   0x02

Definition at line 67 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_REG_OUT_X_H_A   0x29

Definition at line 44 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_X_H_M   0x03

Definition at line 68 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_read().

#define LSM303DLHC_REG_OUT_X_L_A   0x28

Definition at line 43 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_read().

#define LSM303DLHC_REG_OUT_X_L_M   0x04

Definition at line 69 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Y_H_A   0x2B

Definition at line 46 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Y_H_M   0x07

Definition at line 72 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Y_L_A   0x2A

Definition at line 45 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Y_L_M   0x08

Definition at line 73 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Z_H_A   0x2D

Definition at line 48 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Z_H_M   0x05

Definition at line 70 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Z_L_A   0x2C

Definition at line 47 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_OUT_Z_L_M   0x06

Definition at line 71 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_REF_DATA_CAP_A   0x26

Definition at line 41 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_SR_REG_M   0x09

Definition at line 74 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_STATUS_REG_A   0x27

Definition at line 42 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_TEMP_OUT_H_M   0x31

Definition at line 78 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_TEMP_OUT_L_M   0x32

Definition at line 79 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_TIME_LATENCY_A   0x3C

Definition at line 63 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_TIME_LIMIT_A   0x3B

Definition at line 62 of file lsm303dlhc_regs.h.

#define LSM303DLHC_REG_TIME_WINDOW_A   0x3D

Definition at line 64 of file lsm303dlhc_regs.h.

#define LSM303DLHC_Xen   (1 << 0)

Definition at line 84 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_Yen   (1 << 1)

Definition at line 85 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().

#define LSM303DLHC_Zen   (1 << 2)

Definition at line 86 of file lsm303dlhc_regs.h.

Referenced by lsm303dlhc_send_config().