Command definition for the LIS2DH12 accelerometer. More...

Detailed Description

Command definition for the LIS2DH12 accelerometer.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de

Definition in file lis2dh12_internal.h.

Go to the source code of this file.

LIS2DH12 registers

#define REG_STATUS_REG_AUX   (0x07)
 
#define REG_OUT_TEMP_L   (0x0C)
 
#define REG_OUT_TEMP_H   (0x0D)
 
#define REG_WHO_AM_I   (0x0F)
 
#define REG_CTRL_REG0   (0x1E)
 
#define REG_TEMP_CFG_REG   (0x1F)
 
#define REG_CTRL_REG1   (0x20)
 
#define REG_CTRL_REG2   (0x21)
 
#define REG_CTRL_REG3   (0x22)
 
#define REG_CTRL_REG4   (0x23)
 
#define REG_CTRL_REG5   (0x24)
 
#define REG_CTRL_REG6   (0x25)
 
#define REG_REFERENCE   (0x26)
 
#define REG_STATUS_REG   (0x27)
 
#define REG_OUT_X_L   (0x28)
 
#define REG_OUT_X_H   (0x29)
 
#define REG_OUT_Y_L   (0x2A)
 
#define REG_OUT_Y_H   (0x2B)
 
#define REG_OUT_Z_L   (0x2C)
 
#define REG_OUT_Z_H   (0x2D)
 
#define REG_FIFO_CTRL_REG   (0x2E)
 
#define REG_FIFO_SRC_REG   (0x2F)
 
#define REG_INT1_CFG   (0x30)
 
#define REG_INT1_SRC   (0x31)
 
#define REG_INT1_THS   (0x32)
 
#define REG_INT1_DURATION   (0x33)
 
#define REG_INT2_CFG   (0x34)
 
#define REG_INT2_SRC   (0x35)
 
#define REG_INT2_THS   (0x36)
 
#define REG_INT2_DURATION   (0x37)
 
#define REG_CLICK_CFG   (0x38)
 
#define REG_CLICK_SRC   (0x39)
 
#define REG_CLICK_THS   (0x3A)
 
#define REG_TIME_LIMIT   (0x3B)
 
#define REG_TIME_LATENCY   (0x3C)
 
#define REG_TIME_WINDOW   (0x3D)
 
#define REG_ACT_THS   (0x3E)
 
#define REG_ACT_DUR   (0x3F)
 

Selected register values

#define WHO_AM_I_VAL   (0x33)
 
#define CTRL_REG0_DEFAULT   (0x10)
 

Macro Definition Documentation

◆ CTRL_REG0_DEFAULT

#define CTRL_REG0_DEFAULT   (0x10)

Definition at line 75 of file lis2dh12_internal.h.

◆ REG_ACT_DUR

#define REG_ACT_DUR   (0x3F)

Definition at line 67 of file lis2dh12_internal.h.

◆ REG_ACT_THS

#define REG_ACT_THS   (0x3E)

Definition at line 66 of file lis2dh12_internal.h.

◆ REG_CLICK_CFG

#define REG_CLICK_CFG   (0x38)

Definition at line 60 of file lis2dh12_internal.h.

◆ REG_CLICK_SRC

#define REG_CLICK_SRC   (0x39)

Definition at line 61 of file lis2dh12_internal.h.

◆ REG_CLICK_THS

#define REG_CLICK_THS   (0x3A)

Definition at line 62 of file lis2dh12_internal.h.

◆ REG_CTRL_REG0

#define REG_CTRL_REG0   (0x1E)

Definition at line 34 of file lis2dh12_internal.h.

◆ REG_CTRL_REG1

#define REG_CTRL_REG1   (0x20)

Definition at line 36 of file lis2dh12_internal.h.

◆ REG_CTRL_REG2

#define REG_CTRL_REG2   (0x21)

Definition at line 37 of file lis2dh12_internal.h.

◆ REG_CTRL_REG3

#define REG_CTRL_REG3   (0x22)

Definition at line 38 of file lis2dh12_internal.h.

◆ REG_CTRL_REG4

#define REG_CTRL_REG4   (0x23)

Definition at line 39 of file lis2dh12_internal.h.

◆ REG_CTRL_REG5

#define REG_CTRL_REG5   (0x24)

Definition at line 40 of file lis2dh12_internal.h.

◆ REG_CTRL_REG6

#define REG_CTRL_REG6   (0x25)

Definition at line 41 of file lis2dh12_internal.h.

◆ REG_FIFO_CTRL_REG

#define REG_FIFO_CTRL_REG   (0x2E)

Definition at line 50 of file lis2dh12_internal.h.

◆ REG_FIFO_SRC_REG

#define REG_FIFO_SRC_REG   (0x2F)

Definition at line 51 of file lis2dh12_internal.h.

◆ REG_INT1_CFG

#define REG_INT1_CFG   (0x30)

Definition at line 52 of file lis2dh12_internal.h.

◆ REG_INT1_DURATION

#define REG_INT1_DURATION   (0x33)

Definition at line 55 of file lis2dh12_internal.h.

◆ REG_INT1_SRC

#define REG_INT1_SRC   (0x31)

Definition at line 53 of file lis2dh12_internal.h.

◆ REG_INT1_THS

#define REG_INT1_THS   (0x32)

Definition at line 54 of file lis2dh12_internal.h.

◆ REG_INT2_CFG

#define REG_INT2_CFG   (0x34)

Definition at line 56 of file lis2dh12_internal.h.

◆ REG_INT2_DURATION

#define REG_INT2_DURATION   (0x37)

Definition at line 59 of file lis2dh12_internal.h.

◆ REG_INT2_SRC

#define REG_INT2_SRC   (0x35)

Definition at line 57 of file lis2dh12_internal.h.

◆ REG_INT2_THS

#define REG_INT2_THS   (0x36)

Definition at line 58 of file lis2dh12_internal.h.

◆ REG_OUT_TEMP_H

#define REG_OUT_TEMP_H   (0x0D)

Definition at line 32 of file lis2dh12_internal.h.

◆ REG_OUT_TEMP_L

#define REG_OUT_TEMP_L   (0x0C)

Definition at line 31 of file lis2dh12_internal.h.

◆ REG_OUT_X_H

#define REG_OUT_X_H   (0x29)

Definition at line 45 of file lis2dh12_internal.h.

◆ REG_OUT_X_L

#define REG_OUT_X_L   (0x28)

Definition at line 44 of file lis2dh12_internal.h.

◆ REG_OUT_Y_H

#define REG_OUT_Y_H   (0x2B)

Definition at line 47 of file lis2dh12_internal.h.

◆ REG_OUT_Y_L

#define REG_OUT_Y_L   (0x2A)

Definition at line 46 of file lis2dh12_internal.h.

◆ REG_OUT_Z_H

#define REG_OUT_Z_H   (0x2D)

Definition at line 49 of file lis2dh12_internal.h.

◆ REG_OUT_Z_L

#define REG_OUT_Z_L   (0x2C)

Definition at line 48 of file lis2dh12_internal.h.

◆ REG_REFERENCE

#define REG_REFERENCE   (0x26)

Definition at line 42 of file lis2dh12_internal.h.

◆ REG_STATUS_REG

#define REG_STATUS_REG   (0x27)

Definition at line 43 of file lis2dh12_internal.h.

◆ REG_STATUS_REG_AUX

#define REG_STATUS_REG_AUX   (0x07)

Definition at line 30 of file lis2dh12_internal.h.

◆ REG_TEMP_CFG_REG

#define REG_TEMP_CFG_REG   (0x1F)

Definition at line 35 of file lis2dh12_internal.h.

◆ REG_TIME_LATENCY

#define REG_TIME_LATENCY   (0x3C)

Definition at line 64 of file lis2dh12_internal.h.

◆ REG_TIME_LIMIT

#define REG_TIME_LIMIT   (0x3B)

Definition at line 63 of file lis2dh12_internal.h.

◆ REG_TIME_WINDOW

#define REG_TIME_WINDOW   (0x3D)

Definition at line 65 of file lis2dh12_internal.h.

◆ REG_WHO_AM_I

#define REG_WHO_AM_I   (0x0F)

Definition at line 33 of file lis2dh12_internal.h.

◆ WHO_AM_I_VAL

#define WHO_AM_I_VAL   (0x33)

Definition at line 74 of file lis2dh12_internal.h.