Lines Matching refs:sensitivity
127 static void icm42688_emul_get_accel_settings(const struct emul *target, int *fs_g, int *sensitivity, in icm42688_emul_get_accel_settings() argument
168 if (sensitivity) { in icm42688_emul_get_accel_settings()
169 *sensitivity = sensitivity_out; in icm42688_emul_get_accel_settings()
184 int sensitivity; in icm42688_emul_get_accel_ranges() local
186 icm42688_emul_get_accel_settings(target, &fs_g, &sensitivity, shift); in icm42688_emul_get_accel_ranges()
189 *epsilon = (3 * SENSOR_G * Q31_SCALE / sensitivity / 1000000LL / 2) >> *shift; in icm42688_emul_get_accel_ranges()
199 int *sensitivity, int8_t *shift) in icm42688_emul_get_gyro_settings() argument
259 if (sensitivity) { in icm42688_emul_get_gyro_settings()
260 *sensitivity = sensitivity_out; in icm42688_emul_get_gyro_settings()
277 int sensitivity; in icm42688_emul_get_gyro_ranges() local
279 icm42688_emul_get_gyro_settings(target, &fs_mdps, &sensitivity, shift); in icm42688_emul_get_gyro_ranges()
292 *epsilon = (3 * SENSOR_PI * Q31_SCALE * 10LL / 1000000LL / 180LL / sensitivity / 2LL) >> in icm42688_emul_get_gyro_ranges()
340 int sensitivity; in icm42688_emul_backend_set_channel() local
367 icm42688_emul_get_accel_settings(target, NULL, &sensitivity, NULL); in icm42688_emul_backend_set_channel()
368 reg_val = ((value_unshifted * sensitivity / Q31_SCALE) * 1000000LL) / SENSOR_G; in icm42688_emul_backend_set_channel()
386 icm42688_emul_get_gyro_settings(target, NULL, &sensitivity, NULL); in icm42688_emul_backend_set_channel()
388 CLAMP((((value_unshifted * sensitivity * 180LL) / Q31_SCALE) * 1000000LL) / in icm42688_emul_backend_set_channel()