fealkn

Dependencies:   mbed LSM9DS1_Library VL53L0X

Committer:
astovall21
Date:
Wed Apr 28 17:44:45 2021 +0000
Revision:
0:ea1c50666fc2
debug;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
astovall21 0:ea1c50666fc2 1 /******************************************************************************
astovall21 0:ea1c50666fc2 2 LSM9DS1_Registers.h
astovall21 0:ea1c50666fc2 3 SFE_LSM9DS1 Library - LSM9DS1 Register Map
astovall21 0:ea1c50666fc2 4 Jim Lindblom @ SparkFun Electronics
astovall21 0:ea1c50666fc2 5 Original Creation Date: April 21, 2015
astovall21 0:ea1c50666fc2 6 https://github.com/sparkfun/LSM9DS1_Breakout
astovall21 0:ea1c50666fc2 7
astovall21 0:ea1c50666fc2 8 This file defines all registers internal to the gyro/accel and magnetometer
astovall21 0:ea1c50666fc2 9 devices in the LSM9DS1.
astovall21 0:ea1c50666fc2 10
astovall21 0:ea1c50666fc2 11 Development environment specifics:
astovall21 0:ea1c50666fc2 12 IDE: Arduino 1.6.0
astovall21 0:ea1c50666fc2 13 Hardware Platform: Arduino Uno
astovall21 0:ea1c50666fc2 14 LSM9DS1 Breakout Version: 1.0
astovall21 0:ea1c50666fc2 15
astovall21 0:ea1c50666fc2 16 This code is beerware; if you see me (or any other SparkFun employee) at the
astovall21 0:ea1c50666fc2 17 local, and you've found our code helpful, please buy us a round!
astovall21 0:ea1c50666fc2 18
astovall21 0:ea1c50666fc2 19 Distributed as-is; no warranty is given.
astovall21 0:ea1c50666fc2 20 ******************************************************************************/
astovall21 0:ea1c50666fc2 21
astovall21 0:ea1c50666fc2 22 #ifndef __LSM9DS1_Registers_H__
astovall21 0:ea1c50666fc2 23 #define __LSM9DS1_Registers_H__
astovall21 0:ea1c50666fc2 24
astovall21 0:ea1c50666fc2 25 /////////////////////////////////////////
astovall21 0:ea1c50666fc2 26 // LSM9DS1 Accel/Gyro (XL/G) Registers //
astovall21 0:ea1c50666fc2 27 /////////////////////////////////////////
astovall21 0:ea1c50666fc2 28 #define ACT_THS 0x04
astovall21 0:ea1c50666fc2 29 #define ACT_DUR 0x05
astovall21 0:ea1c50666fc2 30 #define INT_GEN_CFG_XL 0x06
astovall21 0:ea1c50666fc2 31 #define INT_GEN_THS_X_XL 0x07
astovall21 0:ea1c50666fc2 32 #define INT_GEN_THS_Y_XL 0x08
astovall21 0:ea1c50666fc2 33 #define INT_GEN_THS_Z_XL 0x09
astovall21 0:ea1c50666fc2 34 #define INT_GEN_DUR_XL 0x0A
astovall21 0:ea1c50666fc2 35 #define REFERENCE_G 0x0B
astovall21 0:ea1c50666fc2 36 #define INT1_CTRL 0x0C
astovall21 0:ea1c50666fc2 37 #define INT2_CTRL 0x0D
astovall21 0:ea1c50666fc2 38 #define WHO_AM_I_XG 0x0F
astovall21 0:ea1c50666fc2 39 #define CTRL_REG1_G 0x10
astovall21 0:ea1c50666fc2 40 #define CTRL_REG2_G 0x11
astovall21 0:ea1c50666fc2 41 #define CTRL_REG3_G 0x12
astovall21 0:ea1c50666fc2 42 #define ORIENT_CFG_G 0x13
astovall21 0:ea1c50666fc2 43 #define INT_GEN_SRC_G 0x14
astovall21 0:ea1c50666fc2 44 #define OUT_TEMP_L 0x15
astovall21 0:ea1c50666fc2 45 #define OUT_TEMP_H 0x16
astovall21 0:ea1c50666fc2 46 #define STATUS_REG_0 0x17
astovall21 0:ea1c50666fc2 47 #define OUT_X_L_G 0x18
astovall21 0:ea1c50666fc2 48 #define OUT_X_H_G 0x19
astovall21 0:ea1c50666fc2 49 #define OUT_Y_L_G 0x1A
astovall21 0:ea1c50666fc2 50 #define OUT_Y_H_G 0x1B
astovall21 0:ea1c50666fc2 51 #define OUT_Z_L_G 0x1C
astovall21 0:ea1c50666fc2 52 #define OUT_Z_H_G 0x1D
astovall21 0:ea1c50666fc2 53 #define CTRL_REG4 0x1E
astovall21 0:ea1c50666fc2 54 #define CTRL_REG5_XL 0x1F
astovall21 0:ea1c50666fc2 55 #define CTRL_REG6_XL 0x20
astovall21 0:ea1c50666fc2 56 #define CTRL_REG7_XL 0x21
astovall21 0:ea1c50666fc2 57 #define CTRL_REG8 0x22
astovall21 0:ea1c50666fc2 58 #define CTRL_REG9 0x23
astovall21 0:ea1c50666fc2 59 #define CTRL_REG10 0x24
astovall21 0:ea1c50666fc2 60 #define INT_GEN_SRC_XL 0x26
astovall21 0:ea1c50666fc2 61 #define STATUS_REG_1 0x27
astovall21 0:ea1c50666fc2 62 #define OUT_X_L_XL 0x28
astovall21 0:ea1c50666fc2 63 #define OUT_X_H_XL 0x29
astovall21 0:ea1c50666fc2 64 #define OUT_Y_L_XL 0x2A
astovall21 0:ea1c50666fc2 65 #define OUT_Y_H_XL 0x2B
astovall21 0:ea1c50666fc2 66 #define OUT_Z_L_XL 0x2C
astovall21 0:ea1c50666fc2 67 #define OUT_Z_H_XL 0x2D
astovall21 0:ea1c50666fc2 68 #define FIFO_CTRL 0x2E
astovall21 0:ea1c50666fc2 69 #define FIFO_SRC 0x2F
astovall21 0:ea1c50666fc2 70 #define INT_GEN_CFG_G 0x30
astovall21 0:ea1c50666fc2 71 #define INT_GEN_THS_XH_G 0x31
astovall21 0:ea1c50666fc2 72 #define INT_GEN_THS_XL_G 0x32
astovall21 0:ea1c50666fc2 73 #define INT_GEN_THS_YH_G 0x33
astovall21 0:ea1c50666fc2 74 #define INT_GEN_THS_YL_G 0x34
astovall21 0:ea1c50666fc2 75 #define INT_GEN_THS_ZH_G 0x35
astovall21 0:ea1c50666fc2 76 #define INT_GEN_THS_ZL_G 0x36
astovall21 0:ea1c50666fc2 77 #define INT_GEN_DUR_G 0x37
astovall21 0:ea1c50666fc2 78
astovall21 0:ea1c50666fc2 79 ///////////////////////////////
astovall21 0:ea1c50666fc2 80 // LSM9DS1 Magneto Registers //
astovall21 0:ea1c50666fc2 81 ///////////////////////////////
astovall21 0:ea1c50666fc2 82 #define OFFSET_X_REG_L_M 0x05
astovall21 0:ea1c50666fc2 83 #define OFFSET_X_REG_H_M 0x06
astovall21 0:ea1c50666fc2 84 #define OFFSET_Y_REG_L_M 0x07
astovall21 0:ea1c50666fc2 85 #define OFFSET_Y_REG_H_M 0x08
astovall21 0:ea1c50666fc2 86 #define OFFSET_Z_REG_L_M 0x09
astovall21 0:ea1c50666fc2 87 #define OFFSET_Z_REG_H_M 0x0A
astovall21 0:ea1c50666fc2 88 #define WHO_AM_I_M 0x0F
astovall21 0:ea1c50666fc2 89 #define CTRL_REG1_M 0x20
astovall21 0:ea1c50666fc2 90 #define CTRL_REG2_M 0x21
astovall21 0:ea1c50666fc2 91 #define CTRL_REG3_M 0x22
astovall21 0:ea1c50666fc2 92 #define CTRL_REG4_M 0x23
astovall21 0:ea1c50666fc2 93 #define CTRL_REG5_M 0x24
astovall21 0:ea1c50666fc2 94 #define STATUS_REG_M 0x27
astovall21 0:ea1c50666fc2 95 #define OUT_X_L_M 0x28
astovall21 0:ea1c50666fc2 96 #define OUT_X_H_M 0x29
astovall21 0:ea1c50666fc2 97 #define OUT_Y_L_M 0x2A
astovall21 0:ea1c50666fc2 98 #define OUT_Y_H_M 0x2B
astovall21 0:ea1c50666fc2 99 #define OUT_Z_L_M 0x2C
astovall21 0:ea1c50666fc2 100 #define OUT_Z_H_M 0x2D
astovall21 0:ea1c50666fc2 101 #define INT_CFG_M 0x30
astovall21 0:ea1c50666fc2 102 #define INT_SRC_M 0x30
astovall21 0:ea1c50666fc2 103 #define INT_THS_L_M 0x32
astovall21 0:ea1c50666fc2 104 #define INT_THS_H_M 0x33
astovall21 0:ea1c50666fc2 105
astovall21 0:ea1c50666fc2 106 ////////////////////////////////
astovall21 0:ea1c50666fc2 107 // LSM9DS1 WHO_AM_I Responses //
astovall21 0:ea1c50666fc2 108 ////////////////////////////////
astovall21 0:ea1c50666fc2 109 #define WHO_AM_I_AG_RSP 0x68
astovall21 0:ea1c50666fc2 110 #define WHO_AM_I_M_RSP 0x3D
astovall21 0:ea1c50666fc2 111
astovall21 0:ea1c50666fc2 112 #endif