Mercurial > public > ostc4
comparison Small_CPU/Inc/compass_LSM303D.h @ 357:c3d511365552
Add Support for new end-2019 hardware:
support LSM303AGR compass (Not yet working!)
cleanup compass code a bit
author | heinrichsweikamp |
---|---|
date | Sat, 23 Nov 2019 18:39:50 +0100 |
parents | 5f11787b4f42 |
children |
comparison
equal
deleted
inserted
replaced
356:cb3870f79e9d | 357:c3d511365552 |
---|---|
25 #define COMPASS_LSM303D_H | 25 #define COMPASS_LSM303D_H |
26 | 26 |
27 /* Exported constants --------------------------------------------------------*/ | 27 /* Exported constants --------------------------------------------------------*/ |
28 | 28 |
29 #define WHO_AM_I 0x0F // device identification register - default value | 29 #define WHO_AM_I 0x0F // device identification register - default value |
30 #define WHOIAM_VALUE (0x49) // Who Am I default value | 30 #define WHOIAM_VALUE_LSM303D 0x49 // Who Am I default value |
31 | 31 |
32 #define ADDR_OUT_TEMP_L 0x05 | 32 #define ADDR_OUT_TEMP_L 0x05 |
33 #define ADDR_OUT_TEMP_H 0x06 | 33 #define ADDR_OUT_TEMP_H 0x06 |
34 #define ADDR_STATUS_M 0x07 | 34 #define ADDR_STATUS_M 0x07 |
35 #define ADDR_OUT_X_L_M 0x08 | 35 #define ADDR_OUT_X_L_M 0x08 |