Mercurial > public > ostc4
comparison Small_CPU/Inc/compass_LSM303DLHC.h @ 38:5f11787b4f42
include in ostc4 repository
| author | heinrichsweikamp |
|---|---|
| date | Sat, 28 Apr 2018 11:52:34 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 37:ccc45c0e1ea2 | 38:5f11787b4f42 |
|---|---|
| 1 /** | |
| 2 ****************************************************************************** | |
| 3 * @file compass_LSM303DLHC.h | |
| 4 * @author heinrichs weikamp gmbh | |
| 5 * @date 17-August-2017 | |
| 6 * @version V0.1.0 | |
| 7 * @since 17-August-2017 | |
| 8 * @brief STMicroelectronics LSM303DLHC accelerometer & magnetometer driver | |
| 9 * | |
| 10 @verbatim | |
| 11 ============================================================================== | |
| 12 ##### How to use ##### | |
| 13 ============================================================================== | |
| 14 @endverbatim | |
| 15 ****************************************************************************** | |
| 16 * @attention | |
| 17 * | |
| 18 * <h2><center>© COPYRIGHT(c) 2017 heinrichs weikamp</center></h2> | |
| 19 * | |
| 20 ****************************************************************************** | |
| 21 */ | |
| 22 | |
| 23 /* Define to prevent recursive inclusion -------------------------------------*/ | |
| 24 #ifndef COMPASS_LSM303DLHC_H | |
| 25 #define COMPASS_LSM303DLHC_H | |
| 26 | |
| 27 /* Exported constants --------------------------------------------------------*/ | |
| 28 | |
| 29 //#include "compass_LSM303D.h" | |
| 30 | |
| 31 #define DLHC_CTRL_REG1_A 0x20 | |
| 32 #define DLHC_CTRL_REG2_A 0x21 | |
| 33 #define DLHC_CTRL_REG3_A 0x22 | |
| 34 #define DLHC_CTRL_REG4_A 0x23 | |
| 35 #define DLHC_CTRL_REG5_A 0x24 | |
| 36 #define DLHC_CTRL_REG6_A 0x25 | |
| 37 | |
| 38 #define DLHC_CRA_REG_M 0x00 | |
| 39 #define DLHC_CRB_REG_M 0x01 | |
| 40 #define DLHC_MR_REG_M 0x02 | |
| 41 | |
| 42 #define DLHC_OUT_X_L_M 0x03 | |
| 43 #define DLHC_OUT_X_H_M 0x04 | |
| 44 #define DLHC_OUT_Y_L_M 0x05 | |
| 45 #define DLHC_OUT_Y_H_M 0x06 | |
| 46 #define DLHC_OUT_Z_L_M 0x07 | |
| 47 #define DLHC_OUT_Z_H_M 0x08 | |
| 48 | |
| 49 // identisch mit 303D | |
| 50 #define DLHC_OUT_X_L_A 0x28 | |
| 51 #define DLHC_OUT_X_H_A 0x29 | |
| 52 #define DLHC_OUT_Y_L_A 0x2A | |
| 53 #define DLHC_OUT_Y_H_A 0x2B | |
| 54 #define DLHC_OUT_Z_L_A 0x2C | |
| 55 #define DLHC_OUT_Z_H_A 0x2D | |
| 56 | |
| 57 #endif /* COMPASS_LSM303DLHC_H */ | |
| 58 | |
| 59 /******************* (C) COPYRIGHT 2017 heinrichs weikamp *****END OF FILE****/ |
