Lines Matching +full:- +full:2 +full:g
1 /* SPDX-License-Identifier: GPL-2.0-only */
16 * Read-Only Registers
63 * Read-write configuration registers
105 #define BMA400_INT_GEN1_MSK BIT(2)
112 #define BMA400_S_TAP_MSK BIT(2)
116 #define BMA400_TAP_SEN_MSK GENMASK(2, 0)
118 #define BMA400_TAP_QUIET_MSK GENMASK(3, 2)
123 * BMA400_SCALE_MIN macro value represents m/s^2 for 1 LSB before
124 * converting to micro values for +-2g range.
126 * For +-2g - 1 LSB = 0.976562 milli g = 0.009576 m/s^2
127 * For +-4g - 1 LSB = 1.953125 milli g = 0.019153 m/s^2
128 * For +-16g - 1 LSB = 7.8125 milli g = 0.076614 m/s^2
134 * Scale values for +-2g, +-4g, +-8g and +-16g are populated into bma400_scales
136 * e.g.:
137 * To select +-2g = 9577 << 0 = raw value to write is 0.
138 * To select +-8g = 9577 << 2 = raw value to write is 2.
139 * To select +-16g = 9577 << 3 = raw value to write is 3.
144 #define BMA400_NUM_REGULATORS 2