lps331ap-internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 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 LPS331AP_INTERNAL_H
20 #define LPS331AP_INTERNAL_H
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
30 #define LPS331AP_AUTO_INC 0x80
31 #define LPS331AP_REG_REF_P_XL 0x08
32 #define LPS331AP_REG_REF_P_L 0x09
33 #define LPS331AP_REG_REF_P_H 0x0a
34 #define LPS331AP_REG_WHO_AM_I 0x0f
35 #define LPS331AP_REG_RES_CONF 0x10
36 #define LPS331AP_REG_CTRL_REG1 0x20
37 #define LPS331AP_REG_CTRL_REG2 0x21
38 #define LPS331AP_REG_CTRL_REG3 0x22
39 #define LPS331AP_REG_INT_CFG_REG 0x23
40 #define LPS331AP_REG_INT_SOURCE_REG 0x24
41 #define LPS331AP_REG_THS_P_LOW_REG 0x25
42 #define LPS331AP_REG_THS_P_HIGH_REG 0x26
43 #define LPS331AP_REG_STATUS_REG 0x27
44 #define LPS331AP_REG_PRESS_OUT_XL 0x28
45 #define LPS331AP_REG_PRESS_OUT_L 0x29
46 #define LPS331AP_REG_PRESS_OUT_H 0x2a
47 #define LPS331AP_REG_TEMP_OUT_L 0x2b
48 #define LPS331AP_REG_TEMP_OUT_H 0x2c
49 #define LPS331AP_REG_AMP_CTRL 0x30
50 
56 #define LPS331AP_CTRL_REG1_PD 0x80
57 #define LPS331AP_CTRL_REG1_ODR 0x70
58 #define LPS331AP_CTRL_REG1_ODR_POS 4
59 #define LPS331AP_CTRL_REG1_DIFF_EN 0x08
60 #define LPS331AP_CTRL_REG1_DBDU 0x04
61 #define LPS331AP_CTRL_REG1_DELTA_EN 0x02
62 #define LPS331AP_CTRL_REG1_SIM 0x01
63 
65 #ifdef __cplusplus
66 }
67 #endif
68 
69 #endif /* LPS331AP_INTERNAL_H */
70