Searched refs:Q31_SCALE (Results 1 – 1 of 1) sorted by relevance
121 #define Q31_SCALE ((int64_t)INT32_MAX + 1) macro189 *epsilon = (3 * SENSOR_G * Q31_SCALE / sensitivity / 1000000LL / 2) >> *shift; in icm42688_emul_get_accel_ranges()190 *upper = (fs_g * SENSOR_G * Q31_SCALE / 1000000LL) >> *shift; in icm42688_emul_get_accel_ranges()292 *epsilon = (3 * SENSOR_PI * Q31_SCALE * 10LL / 1000000LL / 180LL / sensitivity / 2LL) >> in icm42688_emul_get_gyro_ranges()294 *upper = (((fs_mdps * SENSOR_PI / 1000000LL) * Q31_SCALE) / 1000LL / 180LL) >> *shift; in icm42688_emul_get_gyro_ranges()310 *lower = (int64_t)(-222.342995169 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()311 *upper = (int64_t)(272.33544686 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()312 *epsilon = (int64_t)(0.0076 * Q31_SCALE) >> *shift; in icm42688_emul_backend_get_sample_range()349 reg_val = ((value_unshifted - (25 * Q31_SCALE)) * 13248) / (100 * Q31_SCALE); in icm42688_emul_backend_set_channel()368 reg_val = ((value_unshifted * sensitivity / Q31_SCALE) * 1000000LL) / SENSOR_G; in icm42688_emul_backend_set_channel()[all …]