lis2dh12_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
19 #ifndef LIS2DH12_INTERNAL_H
20 #define LIS2DH12_INTERNAL_H
21 
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define REG_STATUS_REG_AUX (0x07)
32 #define REG_OUT_TEMP_L (0x0C)
33 #define REG_OUT_TEMP_H (0x0D)
34 #define REG_WHO_AM_I (0x0F)
35 #define REG_CTRL_REG0 (0x1E)
36 #define REG_TEMP_CFG_REG (0x1F)
37 #define REG_CTRL_REG1 (0x20)
38 #define REG_CTRL_REG2 (0x21)
39 #define REG_CTRL_REG3 (0x22)
40 #define REG_CTRL_REG4 (0x23)
41 #define REG_CTRL_REG5 (0x24)
42 #define REG_CTRL_REG6 (0x25)
43 #define REG_REFERENCE (0x26)
44 #define REG_STATUS_REG (0x27)
45 #define REG_OUT_X_L (0x28)
46 #define REG_OUT_X_H (0x29)
47 #define REG_OUT_Y_L (0x2A)
48 #define REG_OUT_Y_H (0x2B)
49 #define REG_OUT_Z_L (0x2C)
50 #define REG_OUT_Z_H (0x2D)
51 #define REG_FIFO_CTRL_REG (0x2E)
52 #define REG_FIFO_SRC_REG (0x2F)
53 #define REG_INT1_CFG (0x30)
54 #define REG_INT1_SRC (0x31)
55 #define REG_INT1_THS (0x32)
56 #define REG_INT1_DURATION (0x33)
57 #define REG_INT2_CFG (0x34)
58 #define REG_INT2_SRC (0x35)
59 #define REG_INT2_THS (0x36)
60 #define REG_INT2_DURATION (0x37)
61 #define REG_CLICK_CFG (0x38)
62 #define REG_CLICK_SRC (0x39)
63 #define REG_CLICK_THS (0x3A)
64 #define REG_TIME_LIMIT (0x3B)
65 #define REG_TIME_LATENCY (0x3C)
66 #define REG_TIME_WINDOW (0x3D)
67 #define REG_ACT_THS (0x3E)
68 #define REG_ACT_DUR (0x3F)
69 
75 #define WHO_AM_I_VAL (0x33)
76 
78 #ifdef __cplusplus
79 }
80 #endif
81 
82 #endif /* LIS2DH12_INTERNAL_H */
83