forked from glasnier/altimu10-rpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLPS331.h
executable file
·43 lines (28 loc) · 1004 Bytes
/
LPS331.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef LPS331_h
#define LPS331_h
#include <stdint.h>
// Register addresses
#define PRE_ADDRESS (0xBA >> 1) // <=> 0x5D <=> 1011101b
#define LPS331_REF_P_XL 0x08
#define LPS331_REF_P_L 0x09
#define LPS331_REF_P_H 0x0A
#define LPS331_WHO_AM_I 0x0F
#define LPS331_RES_CONF 0x10
#define LPS331_CTRL_REG1 0x20
#define LPS331_CTRL_REG2 0x21
#define LPS331_CTRL_REG3 0x22
#define LPS331_INT_CFG_REG 0x23
#define LPS331_INT_SOURCE_REG 0x24
#define LPS331_THS_P_LOW_REG 0x25
#define LPS331_THS_P_HIGH_REG 0x26
#define LPS331_STATUS_REG 0x27
#define LPS331_PRESS_OUT_XL 0x28
#define LPS331_PRESS_OUT_L 0x29
#define LPS331_PRESS_OUT_H 0x2A
#define LPS331_TEMP_OUT_L 0x2B
#define LPS331_TEMP_OUT_H 0x2C
#define LPS331_AMP_CRTL 0x30
#define LPS331_DELTA_PRESS_XL 0x3C
#define LPS331_DELTA_PRESS_L 0x3D
#define LPS331_DELTA_PRESS_H 0x3E
#endif