Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
lsm6ds33_regs.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Alexis Cornard <alexiscornard@gmail.com>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
30 #ifndef LSM6_REGS_H
31 #define LSM6_REGS_H
32 
33 // I2C Address
34 #define LSM6_ADDR 0xD6
35 
36 /* Registers */
37 #define LSM6_REG_FUNC_CFG_ACCESS 0x01
38 
39 #define LSM6_REG_FIFO_CTRL1 0x06
40 #define LSM6_REG_FIFO_CTRL2 0x07
41 #define LSM6_REG_FIFO_CTRL3 0x08
42 #define LSM6_REG_FIFO_CTRL4 0x09
43 #define LSM6_REG_FIFO_CTRL5 0x0A
44 #define LSM6_REG_ORIENT_CFG_G 0x0B
45 
46 #define LSM6_REG_INT1_CTRL 0x0D
47 #define LSM6_REG_INT2_CTRL 0x0E
48 #define LSM6_REG_WHO_AM_I 0x0F
49 #define LSM6_REG_CTRL1_XL 0x10
50 #define LSM6_REG_CTRL2_G 0x11
51 #define LSM6_REG_CTRL3_C 0x12
52 #define LSM6_REG_CTRL4_C 0x13
53 #define LSM6_REG_CTRL5_C 0x14
54 #define LSM6_REG_CTRL6_C 0x15
55 #define LSM6_REG_CTRL7_G 0x16
56 #define LSM6_REG_CTRL8_XL 0x17
57 #define LSM6_REG_CTRL9_XL 0x18
58 #define LSM6_REG_CTRL10_C 0x19
59 
60 #define LSM6_REG_WAKE_UP_SRC 0x1B
61 #define LSM6_REG_TAP_SRC 0x1C
62 #define LSM6_REG_D6D_SRC 0x1D
63 #define LSM6_REG_STATUS_REG 0x1E
64 
65 #define LSM6_REG_OUT_TEMP_L 0x20
66 #define LSM6_REG_OUT_TEMP_H 0x21
67 #define LSM6_REG_OUTX_L_G 0x22
68 #define LSM6_REG_OUTX_H_G 0x23
69 #define LSM6_REG_OUTY_L_G 0x24
70 #define LSM6_REG_OUTY_H_G 0x25
71 #define LSM6_REG_OUTZ_L_G 0x26
72 #define LSM6_REG_OUTZ_H_G 0x27
73 #define LSM6_REG_OUTX_L_XL 0x28
74 #define LSM6_REG_OUTX_H_XL 0x29
75 #define LSM6_REG_OUTY_L_XL 0x2A
76 #define LSM6_REG_OUTY_H_XL 0x2B
77 #define LSM6_REG_OUTZ_L_XL 0x2C
78 #define LSM6_REG_OUTZ_H_XL 0x2D
79 
80 
81 #define LSM6_REG_FIFO_STATUS1 0x3A
82 #define LSM6_REG_FIFO_STATUS2 0x3B
83 #define LSM6_REG_FIFO_STATUS3 0x3C
84 #define LSM6_REG_FIFO_STATUS4 0x3D
85 #define LSM6_REG_FIFO_DATA_OUTL 0x3E
86 #define LSM6_REG_FIFO_DATA_OUTX 0x3F
87 #define LSM6_REG_TIMESTAMP0_REG 0x40
88 #define LSM6_REG_TIMESTAMP1_REG 0x41
89 #define LSM6_REG_TIMESTAMP2_REG 0x42
90 
91 #define LSM6_REG_STEP_TIMESTAMP_L 0x49
92 #define LSM6_REG_STEP_TIMESTAMP_H 0x4A
93 #define LSM6_REG_STEP_COUNTER_L 0x4B
94 #define LSM6_REG_STEP_COUNTER_H 0x4C
95 
96 #define LSM6_REG_FUNC_SRC 0x53
97 
98 #define LSM6_REG_TAP_CFG 0x58
99 #define LSM6_REG_TAP_THS_6D 0x59
100 #define LSM6_REG_INT_DUR2 0x5A
101 #define LSM6_REG_WAKE_UP_THS 0x5B
102 #define LSM6_REG_WAKE_UP_DUR 0x5C
103 #define LSM6_REG_FREE_FALL 0x5D
104 #define LSM6_REG_MD1_CFG 0x5E
105 #define LSM6_REG_MD2_CFG 0x5F
106 
107 
115  LSM6_FS_G_2000 = 0x03
116 };
117 
130  LSM6_ODR_G_1_6KHZ = 0x08
131 };
132 
133 
141  LSM6_FS_XL_16G = 0x01
142 };
143 
158  LSM6_ODR_XL_6_6KHZ = 0x0A
159 };
160 
168  LSM6_BW_XL_50HZ = 0x03
169 };
170 
171 
173 #define LSM6_WHO_I_AM 0x69
174 
175 #endif // LSM6_REGS_H
Lsm6AccelODR
Selectable accel ODR.
@ LSM6_ODR_XL_13HZ
@ LSM6_ODR_XL_3_3KHZ
@ LSM6_ODR_XL_208HZ
@ LSM6_ODR_XL_1_6KHZ
@ LSM6_ODR_XL_416HZ
@ LSM6_ODR_XL_104HZ
@ LSM6_ODR_XL_6_6KHZ
@ LSM6_ODR_XL_833HZ
@ LSM6_ODR_XL_52HZ
@ LSM6_ODR_XL_26HZ
@ LSM6_ODR_XL_PWR_DWN
Lsm6GyroRanges
Selectable gyro range.
@ LSM6_FS_G_245
@ LSM6_FS_G_1000
@ LSM6_FS_G_500
@ LSM6_FS_G_2000
Lsm6AccelBw
Anti-aliasing filter bandwith.
@ LSM6_BW_XL_50HZ
@ LSM6_BW_XL_400HZ
@ LSM6_BW_XL_200HZ
@ LSM6_BW_XL_100HZ
Lsm6AccelRanges
Selectable accel range.
@ LSM6_FS_XL_8G
@ LSM6_FS_XL_4G
@ LSM6_FS_XL_16G
@ LSM6_FS_XL_2G
Lsm6GyroODR
Selectable gyro ODR.
@ LSM6_ODR_G_208HZ
@ LSM6_ODR_G_833HZ
@ LSM6_ODR_G_52HZ
@ LSM6_ODR_G_1_6KHZ
@ LSM6_ODR_G_13HZ
@ LSM6_ODR_G_26HZ
@ LSM6_ODR_G_416HZ
@ LSM6_ODR_G_104HZ
@ LSM6_ODR_G_PWR_DWN