Lines Matching +full:2 +full:x32 +full:- +full:bit
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * ADXL345 3-Axis Digital Accelerometer
19 #define ADXL345_REG_DATAX0 0x32
28 #define ADXL345_POWER_CTL_MEASURE BIT(3)
32 #define ADXL345_DATA_FORMAT_JUSTIFY BIT(2) /* Left-justified (MSB) mode */
33 #define ADXL345_DATA_FORMAT_FULL_RES BIT(3) /* Up to 13-bits resolution */
34 #define ADXL345_DATA_FORMAT_SPI_3WIRE BIT(6) /* 3-wire SPI mode */
35 #define ADXL345_DATA_FORMAT_SELF_TEST BIT(7) /* Enable a self test */
39 #define ADXL345_DATA_FORMAT_8G 2
45 * In full-resolution mode, scale factor is maintained at ~4 mg/LSB
48 * At +/- 16g with 13-bit resolution, scale is computed as:
49 * (16 + 16) * 9.81 / (2^13 - 1) = 0.0383
55 * ~480mm/s**2 per LSB.