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.
Dependencies: mbed CROTUS_XBee mbed-rtos Crotus_Com
Diff: AccRegisterMap.h
- Revision:
- 0:28d5622d1a3e
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AccRegisterMap.h Sun Mar 12 14:58:06 2017 +0000 @@ -0,0 +1,19 @@ + +#define ACC_ADDRESS 0x3A + +// Register Address (RA) +#define ACC_RA_X_MSB 0x01 +#define ACC_RA_X_LSB 0x02 +#define ACC_RA_Y_MSB 0x03 +#define ACC_RA_Y_LSB 0x04 +#define ACC_RA_Z_MSB 0x05 +#define ACC_RA_Z_LSB 0x06 +#define ACC_RA_WHO_AM_I 0x0D +#define ACC_RA_CTRL_REG1 0x2A + +// WHO AM I Register (WAIR) +#define WAIR_VALUE 0x2A + +// Control Register 1 (CR1) +#define CR1_ACTIVE_BIT 0 +#define CR1_FAST_READ_BIT 1