Paparazzi UAS  v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
lsm6ds33_regs.h File Reference

Register defs for ST LSM6DS33 3D accelerometer and gyroscope. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LSM6_ADDR   0xD6
 
#define LSM6_REG_FUNC_CFG_ACCESS   0x01
 
#define LSM6_REG_FIFO_CTRL1   0x06
 
#define LSM6_REG_FIFO_CTRL2   0x07
 
#define LSM6_REG_FIFO_CTRL3   0x08
 
#define LSM6_REG_FIFO_CTRL4   0x09
 
#define LSM6_REG_FIFO_CTRL5   0x0A
 
#define LSM6_REG_ORIENT_CFG_G   0x0B
 
#define LSM6_REG_INT1_CTRL   0x0D
 
#define LSM6_REG_INT2_CTRL   0x0E
 
#define LSM6_REG_WHO_AM_I   0x0F
 
#define LSM6_REG_CTRL1_XL   0x10
 
#define LSM6_REG_CTRL2_G   0x11
 
#define LSM6_REG_CTRL3_C   0x12
 
#define LSM6_REG_CTRL4_C   0x13
 
#define LSM6_REG_CTRL5_C   0x14
 
#define LSM6_REG_CTRL6_C   0x15
 
#define LSM6_REG_CTRL7_G   0x16
 
#define LSM6_REG_CTRL8_XL   0x17
 
#define LSM6_REG_CTRL9_XL   0x18
 
#define LSM6_REG_CTRL10_C   0x19
 
#define LSM6_REG_WAKE_UP_SRC   0x1B
 
#define LSM6_REG_TAP_SRC   0x1C
 
#define LSM6_REG_D6D_SRC   0x1D
 
#define LSM6_REG_STATUS_REG   0x1E
 
#define LSM6_REG_OUT_TEMP_L   0x20
 
#define LSM6_REG_OUT_TEMP_H   0x21
 
#define LSM6_REG_OUTX_L_G   0x22
 
#define LSM6_REG_OUTX_H_G   0x23
 
#define LSM6_REG_OUTY_L_G   0x24
 
#define LSM6_REG_OUTY_H_G   0x25
 
#define LSM6_REG_OUTZ_L_G   0x26
 
#define LSM6_REG_OUTZ_H_G   0x27
 
#define LSM6_REG_OUTX_L_XL   0x28
 
#define LSM6_REG_OUTX_H_XL   0x29
 
#define LSM6_REG_OUTY_L_XL   0x2A
 
#define LSM6_REG_OUTY_H_XL   0x2B
 
#define LSM6_REG_OUTZ_L_XL   0x2C
 
#define LSM6_REG_OUTZ_H_XL   0x2D
 
#define LSM6_REG_FIFO_STATUS1   0x3A
 
#define LSM6_REG_FIFO_STATUS2   0x3B
 
#define LSM6_REG_FIFO_STATUS3   0x3C
 
#define LSM6_REG_FIFO_STATUS4   0x3D
 
#define LSM6_REG_FIFO_DATA_OUTL   0x3E
 
#define LSM6_REG_FIFO_DATA_OUTX   0x3F
 
#define LSM6_REG_TIMESTAMP0_REG   0x40
 
#define LSM6_REG_TIMESTAMP1_REG   0x41
 
#define LSM6_REG_TIMESTAMP2_REG   0x42
 
#define LSM6_REG_STEP_TIMESTAMP_L   0x49
 
#define LSM6_REG_STEP_TIMESTAMP_H   0x4A
 
#define LSM6_REG_STEP_COUNTER_L   0x4B
 
#define LSM6_REG_STEP_COUNTER_H   0x4C
 
#define LSM6_REG_FUNC_SRC   0x53
 
#define LSM6_REG_TAP_CFG   0x58
 
#define LSM6_REG_TAP_THS_6D   0x59
 
#define LSM6_REG_INT_DUR2   0x5A
 
#define LSM6_REG_WAKE_UP_THS   0x5B
 
#define LSM6_REG_WAKE_UP_DUR   0x5C
 
#define LSM6_REG_FREE_FALL   0x5D
 
#define LSM6_REG_MD1_CFG   0x5E
 
#define LSM6_REG_MD2_CFG   0x5F
 
#define LSM6_WHO_I_AM   0x69
 LSM6 device identifier in LSM6_REG_WHO_AM_I. More...
 

Enumerations

enum  Lsm6GyroRanges { LSM6_FS_G_245 = 0x00, LSM6_FS_G_500 = 0x01, LSM6_FS_G_1000 = 0x02, LSM6_FS_G_2000 = 0x03 }
 Selectable gyro range. More...
 
enum  Lsm6GyroODR {
  LSM6_ODR_G_PWR_DWN = 0x00, LSM6_ODR_G_13HZ = 0x01, LSM6_ODR_G_26HZ = 0x02, LSM6_ODR_G_52HZ = 0x03,
  LSM6_ODR_G_104HZ = 0x04, LSM6_ODR_G_208HZ = 0x05, LSM6_ODR_G_416HZ = 0x06, LSM6_ODR_G_833HZ = 0x07,
  LSM6_ODR_G_1_6KHZ = 0x08
}
 Selectable gyro ODR. More...
 
enum  Lsm6AccelRanges { LSM6_FS_XL_2G = 0x00, LSM6_FS_XL_4G = 0x02, LSM6_FS_XL_8G = 0x03, LSM6_FS_XL_16G = 0x01 }
 Selectable accel range. More...
 
enum  Lsm6AccelODR {
  LSM6_ODR_XL_PWR_DWN = 0x00, LSM6_ODR_XL_13HZ = 0x01, LSM6_ODR_XL_26HZ = 0x02, LSM6_ODR_XL_52HZ = 0x03,
  LSM6_ODR_XL_104HZ = 0x04, LSM6_ODR_XL_208HZ = 0x05, LSM6_ODR_XL_416HZ = 0x06, LSM6_ODR_XL_833HZ = 0x07,
  LSM6_ODR_XL_1_6KHZ = 0x08, LSM6_ODR_XL_3_3KHZ = 0x09, LSM6_ODR_XL_6_6KHZ = 0x0A
}
 Selectable accel ODR. More...
 
enum  Lsm6AccelBw { LSM6_BW_XL_400HZ = 0x00, LSM6_BW_XL_200HZ = 0x01, LSM6_BW_XL_100HZ = 0x02, LSM6_BW_XL_50HZ = 0x03 }
 Anti-aliasing filter bandwith. More...
 

Detailed Description

Register defs for ST LSM6DS33 3D accelerometer and gyroscope.

Has an I2C interface. The LSM6DS33 has linear acceleration full scales of ±2g / ±4g / ±8g / ±16g and an angular rate range of ±245 / ±500 / ±1000 / ±2000 dps.

Definition in file lsm6ds33_regs.h.

Macro Definition Documentation

#define LSM6_ADDR   0xD6

Definition at line 34 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL10_C   0x19

Definition at line 58 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL1_XL   0x10

Definition at line 49 of file lsm6ds33_regs.h.

Referenced by lsm6_i2c_send_config().

#define LSM6_REG_CTRL2_G   0x11

Definition at line 50 of file lsm6ds33_regs.h.

Referenced by lsm6_i2c_send_config().

#define LSM6_REG_CTRL3_C   0x12

Definition at line 51 of file lsm6ds33_regs.h.

Referenced by lsm6_i2c_send_config().

#define LSM6_REG_CTRL4_C   0x13

Definition at line 52 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL5_C   0x14

Definition at line 53 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL6_C   0x15

Definition at line 54 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL7_G   0x16

Definition at line 55 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL8_XL   0x17

Definition at line 56 of file lsm6ds33_regs.h.

#define LSM6_REG_CTRL9_XL   0x18

Definition at line 57 of file lsm6ds33_regs.h.

#define LSM6_REG_D6D_SRC   0x1D

Definition at line 62 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_CTRL1   0x06

Definition at line 39 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_CTRL2   0x07

Definition at line 40 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_CTRL3   0x08

Definition at line 41 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_CTRL4   0x09

Definition at line 42 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_CTRL5   0x0A

Definition at line 43 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_DATA_OUTL   0x3E

Definition at line 85 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_DATA_OUTX   0x3F

Definition at line 86 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_STATUS1   0x3A

Definition at line 81 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_STATUS2   0x3B

Definition at line 82 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_STATUS3   0x3C

Definition at line 83 of file lsm6ds33_regs.h.

#define LSM6_REG_FIFO_STATUS4   0x3D

Definition at line 84 of file lsm6ds33_regs.h.

#define LSM6_REG_FREE_FALL   0x5D

Definition at line 103 of file lsm6ds33_regs.h.

#define LSM6_REG_FUNC_CFG_ACCESS   0x01

Definition at line 37 of file lsm6ds33_regs.h.

#define LSM6_REG_FUNC_SRC   0x53

Definition at line 96 of file lsm6ds33_regs.h.

#define LSM6_REG_INT1_CTRL   0x0D

Definition at line 46 of file lsm6ds33_regs.h.

#define LSM6_REG_INT2_CTRL   0x0E

Definition at line 47 of file lsm6ds33_regs.h.

#define LSM6_REG_INT_DUR2   0x5A

Definition at line 100 of file lsm6ds33_regs.h.

#define LSM6_REG_MD1_CFG   0x5E

Definition at line 104 of file lsm6ds33_regs.h.

#define LSM6_REG_MD2_CFG   0x5F

Definition at line 105 of file lsm6ds33_regs.h.

#define LSM6_REG_ORIENT_CFG_G   0x0B

Definition at line 44 of file lsm6ds33_regs.h.

Referenced by lsm6_i2c_send_config().

#define LSM6_REG_OUT_TEMP_H   0x21

Definition at line 66 of file lsm6ds33_regs.h.

#define LSM6_REG_OUT_TEMP_L   0x20

Definition at line 65 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTX_H_G   0x23

Definition at line 68 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTX_H_XL   0x29

Definition at line 74 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTX_L_G   0x22

Definition at line 67 of file lsm6ds33_regs.h.

Referenced by lsm6_i2c_read().

#define LSM6_REG_OUTX_L_XL   0x28

Definition at line 73 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTY_H_G   0x25

Definition at line 70 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTY_H_XL   0x2B

Definition at line 76 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTY_L_G   0x24

Definition at line 69 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTY_L_XL   0x2A

Definition at line 75 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTZ_H_G   0x27

Definition at line 72 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTZ_H_XL   0x2D

Definition at line 78 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTZ_L_G   0x26

Definition at line 71 of file lsm6ds33_regs.h.

#define LSM6_REG_OUTZ_L_XL   0x2C

Definition at line 77 of file lsm6ds33_regs.h.

#define LSM6_REG_STATUS_REG   0x1E

Definition at line 63 of file lsm6ds33_regs.h.

#define LSM6_REG_STEP_COUNTER_H   0x4C

Definition at line 94 of file lsm6ds33_regs.h.

#define LSM6_REG_STEP_COUNTER_L   0x4B

Definition at line 93 of file lsm6ds33_regs.h.

#define LSM6_REG_STEP_TIMESTAMP_H   0x4A

Definition at line 92 of file lsm6ds33_regs.h.

#define LSM6_REG_STEP_TIMESTAMP_L   0x49

Definition at line 91 of file lsm6ds33_regs.h.

#define LSM6_REG_TAP_CFG   0x58

Definition at line 98 of file lsm6ds33_regs.h.

#define LSM6_REG_TAP_SRC   0x1C

Definition at line 61 of file lsm6ds33_regs.h.

#define LSM6_REG_TAP_THS_6D   0x59

Definition at line 99 of file lsm6ds33_regs.h.

#define LSM6_REG_TIMESTAMP0_REG   0x40

Definition at line 87 of file lsm6ds33_regs.h.

#define LSM6_REG_TIMESTAMP1_REG   0x41

Definition at line 88 of file lsm6ds33_regs.h.

#define LSM6_REG_TIMESTAMP2_REG   0x42

Definition at line 89 of file lsm6ds33_regs.h.

#define LSM6_REG_WAKE_UP_DUR   0x5C

Definition at line 102 of file lsm6ds33_regs.h.

#define LSM6_REG_WAKE_UP_SRC   0x1B

Definition at line 60 of file lsm6ds33_regs.h.

#define LSM6_REG_WAKE_UP_THS   0x5B

Definition at line 101 of file lsm6ds33_regs.h.

#define LSM6_REG_WHO_AM_I   0x0F

Definition at line 48 of file lsm6ds33_regs.h.

#define LSM6_WHO_I_AM   0x69

LSM6 device identifier in LSM6_REG_WHO_AM_I.

Definition at line 173 of file lsm6ds33_regs.h.

Enumeration Type Documentation

Anti-aliasing filter bandwith.

Enumerator
LSM6_BW_XL_400HZ 
LSM6_BW_XL_200HZ 
LSM6_BW_XL_100HZ 
LSM6_BW_XL_50HZ 

Definition at line 164 of file lsm6ds33_regs.h.

Selectable accel ODR.

Enumerator
LSM6_ODR_XL_PWR_DWN 
LSM6_ODR_XL_13HZ 
LSM6_ODR_XL_26HZ 
LSM6_ODR_XL_52HZ 
LSM6_ODR_XL_104HZ 
LSM6_ODR_XL_208HZ 
LSM6_ODR_XL_416HZ 
LSM6_ODR_XL_833HZ 
LSM6_ODR_XL_1_6KHZ 
LSM6_ODR_XL_3_3KHZ 
LSM6_ODR_XL_6_6KHZ 

Definition at line 147 of file lsm6ds33_regs.h.

Selectable accel range.

Enumerator
LSM6_FS_XL_2G 
LSM6_FS_XL_4G 
LSM6_FS_XL_8G 
LSM6_FS_XL_16G 

Definition at line 137 of file lsm6ds33_regs.h.

Selectable gyro ODR.

Enumerator
LSM6_ODR_G_PWR_DWN 
LSM6_ODR_G_13HZ 
LSM6_ODR_G_26HZ 
LSM6_ODR_G_52HZ 
LSM6_ODR_G_104HZ 
LSM6_ODR_G_208HZ 
LSM6_ODR_G_416HZ 
LSM6_ODR_G_833HZ 
LSM6_ODR_G_1_6KHZ 

Definition at line 121 of file lsm6ds33_regs.h.

Selectable gyro range.

Enumerator
LSM6_FS_G_245 
LSM6_FS_G_500 
LSM6_FS_G_1000 
LSM6_FS_G_2000 

Definition at line 111 of file lsm6ds33_regs.h.