Paparazzi UAS  v5.18.0_stable
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 
116 };
117 
131 };
132 
133 
142 };
143 
159 };
160 
169 };
170 
171 
173 #define LSM6_WHO_I_AM 0x69
174 
175 #endif // LSM6_REGS_H
LSM6_ODR_XL_416HZ
@ LSM6_ODR_XL_416HZ
Definition: lsm6ds33_regs.h:154
LSM6_ODR_G_1_6KHZ
@ LSM6_ODR_G_1_6KHZ
Definition: lsm6ds33_regs.h:130
LSM6_ODR_XL_26HZ
@ LSM6_ODR_XL_26HZ
Definition: lsm6ds33_regs.h:150
LSM6_ODR_XL_3_3KHZ
@ LSM6_ODR_XL_3_3KHZ
Definition: lsm6ds33_regs.h:157
Lsm6AccelODR
Lsm6AccelODR
Selectable accel ODR.
Definition: lsm6ds33_regs.h:147
LSM6_ODR_G_13HZ
@ LSM6_ODR_G_13HZ
Definition: lsm6ds33_regs.h:123
Lsm6AccelBw
Lsm6AccelBw
Anti-aliasing filter bandwith.
Definition: lsm6ds33_regs.h:164
LSM6_ODR_XL_52HZ
@ LSM6_ODR_XL_52HZ
Definition: lsm6ds33_regs.h:151
LSM6_ODR_G_416HZ
@ LSM6_ODR_G_416HZ
Definition: lsm6ds33_regs.h:128
Lsm6GyroODR
Lsm6GyroODR
Selectable gyro ODR.
Definition: lsm6ds33_regs.h:121
LSM6_ODR_XL_6_6KHZ
@ LSM6_ODR_XL_6_6KHZ
Definition: lsm6ds33_regs.h:158
Lsm6AccelRanges
Lsm6AccelRanges
Selectable accel range.
Definition: lsm6ds33_regs.h:137
LSM6_FS_G_245
@ LSM6_FS_G_245
Definition: lsm6ds33_regs.h:112
LSM6_BW_XL_50HZ
@ LSM6_BW_XL_50HZ
Definition: lsm6ds33_regs.h:168
LSM6_ODR_XL_208HZ
@ LSM6_ODR_XL_208HZ
Definition: lsm6ds33_regs.h:153
LSM6_FS_G_500
@ LSM6_FS_G_500
Definition: lsm6ds33_regs.h:113
LSM6_FS_XL_4G
@ LSM6_FS_XL_4G
Definition: lsm6ds33_regs.h:139
LSM6_ODR_XL_104HZ
@ LSM6_ODR_XL_104HZ
Definition: lsm6ds33_regs.h:152
LSM6_FS_XL_8G
@ LSM6_FS_XL_8G
Definition: lsm6ds33_regs.h:140
LSM6_ODR_G_52HZ
@ LSM6_ODR_G_52HZ
Definition: lsm6ds33_regs.h:125
LSM6_ODR_XL_1_6KHZ
@ LSM6_ODR_XL_1_6KHZ
Definition: lsm6ds33_regs.h:156
LSM6_ODR_G_PWR_DWN
@ LSM6_ODR_G_PWR_DWN
Definition: lsm6ds33_regs.h:122
LSM6_ODR_XL_PWR_DWN
@ LSM6_ODR_XL_PWR_DWN
Definition: lsm6ds33_regs.h:148
Lsm6GyroRanges
Lsm6GyroRanges
Selectable gyro range.
Definition: lsm6ds33_regs.h:111
LSM6_ODR_XL_833HZ
@ LSM6_ODR_XL_833HZ
Definition: lsm6ds33_regs.h:155
LSM6_ODR_XL_13HZ
@ LSM6_ODR_XL_13HZ
Definition: lsm6ds33_regs.h:149
LSM6_FS_XL_2G
@ LSM6_FS_XL_2G
Definition: lsm6ds33_regs.h:138
LSM6_FS_G_2000
@ LSM6_FS_G_2000
Definition: lsm6ds33_regs.h:115
LSM6_BW_XL_100HZ
@ LSM6_BW_XL_100HZ
Definition: lsm6ds33_regs.h:167
LSM6_BW_XL_200HZ
@ LSM6_BW_XL_200HZ
Definition: lsm6ds33_regs.h:166
LSM6_ODR_G_208HZ
@ LSM6_ODR_G_208HZ
Definition: lsm6ds33_regs.h:127
LSM6_ODR_G_833HZ
@ LSM6_ODR_G_833HZ
Definition: lsm6ds33_regs.h:129
LSM6_FS_G_1000
@ LSM6_FS_G_1000
Definition: lsm6ds33_regs.h:114
LSM6_BW_XL_400HZ
@ LSM6_BW_XL_400HZ
Definition: lsm6ds33_regs.h:165
LSM6_ODR_G_26HZ
@ LSM6_ODR_G_26HZ
Definition: lsm6ds33_regs.h:124
LSM6_ODR_G_104HZ
@ LSM6_ODR_G_104HZ
Definition: lsm6ds33_regs.h:126
LSM6_FS_XL_16G
@ LSM6_FS_XL_16G
Definition: lsm6ds33_regs.h:141