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