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