-
Notifications
You must be signed in to change notification settings - Fork 2
/
Book.py
85 lines (85 loc) · 1.79 KB
/
Book.py
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
addressbook = {
'MAG_ADDRESS': 0x1E,
'ACC_ADDRESS': 0x1E,
'GYR_ADDRESS' : 0x6A,
#LSM9DS0 Gyro Registers
'WHO_AM_I_G': 0x0F,
'CTRL_REG1_G': 0x20,
'CTRL_REG2_G': 0x21,
'CTRL_REG3_G': 0x22,
'CTRL_REG4_G': 0x23,
'CTRL_REG5_G': 0x24,
'REFERENCE_G': 0x25,
'STATUS_REG_G': 0x27,
'OUT_X_L_G': 0x28,
'OUT_X_H_G': 0x29,
'OUT_Y_L_G': 0x2A,
'OUT_Y_H_G': 0x2B,
'OUT_Z_L_G': 0x2C,
'OUT_Z_H_G': 0x2D,
'FIFO_CTRL_REG_G': 0x2E,
'FIFO_SRC_REG_G': 0x2F,
'INT1_CFG_G': 0x30 ,
'INT1_SRC_G' : 0x31 ,
'INT1_THS_XH_G': 0x32,
'INT1_THS_XL_G': 0x33,
'INT1_THS_YH_G': 0x34,
'INT1_THS_YL_G': 0x35,
'INT1_THS_ZH_G': 0x36,
'INT1_THS_ZL_G': 0x37,
'INT1_DURATION_G': 0x38,
#LSM9DS0 Accel and Magneto Registers
'OUT_TEMP_L_XM': 0x05,
'OUT_TEMP_H_XM': 0x06,
'STATUS_REG_M': 0x07,
'OUT_X_L_M': 0x08,
'OUT_X_H_M': 0x09,
'OUT_Y_L_M': 0x0A,
'OUT_Y_H_M': 0x0B,
'OUT_Z_L_M': 0x0C,
'OUT_Z_H_M': 0x0D,
'WHO_AM_I_XM': 0x0F,
'INT_CTRL_REG_M': 0x12,
'INT_SRC_REG_M': 0x13,
'INT_THS_L_M': 0x14,
'INT_THS_H_M': 0x15,
'OFFSET_X_L_M': 0x16,
'OFFSET_X_H_M': 0x17,
'OFFSET_Y_L_M': 0x18,
'OFFSET_Y_H_M': 0x19,
'OFFSET_Z_L_M': 0x1A,
'OFFSET_Z_H_M': 0x1B,
'REFERENCE_X': 0x1C,
'REFERENCE_Y': 0x1D,
'REFERENCE_Z': 0x1E,
'CTRL_REG0_XM': 0x1F,
'CTRL_REG1_XM': 0x20,
'CTRL_REG2_XM': 0x21,
'CTRL_REG3_XM': 0x22,
'CTRL_REG4_XM': 0x23,
'CTRL_REG5_XM': 0x24,
'CTRL_REG6_XM': 0x25,
'CTRL_REG7_XM': 0x26,
'STATUS_REG_A': 0x27,
'OUT_X_L_A': 0x28,
'OUT_X_H_A': 0x29,
'OUT_Y_L_A': 0x2A,
'OUT_Y_H_A': 0x2B,
'OUT_Z_L_A': 0x2C,
'OUT_Z_H_A': 0x2D,
'FIFO_CTRL_REG': 0x2E,
'FIFO_SRC_REG': 0x2F,
'INT_GEN_1_REG': 0x30,
'INT_GEN_1_SRC': 0x31,
'INT_GEN_1_THS': 0x32,
'INT_GEN_1_DURATION': 0x33,
'INT_GEN_2_REG': 0x34,
'INT_GEN_2_SRC': 0x35,
'INT_GEN_2_THS': 0x36,
'INT_GEN_2_DURATION': 0x37,
'CLICK_CFG': 0x38,
'CLICK_SRC': 0x39,
'CLICK_THS': 0x3A,
'TIME_LIMIT': 0x3B,
'TIME_LATENCY': 0x3C,
'TIME_WINDOW': 0x3D}