Searched refs:slope_th_ums2 (Results 1 – 2 of 2) sorted by relevance
193 uint32_t slope_th_ums2; in bmi160_acc_slope_config() local202 slope_th_ums2 = val->val1 * 1000000 + val->val2; in bmi160_acc_slope_config()205 if (slope_th_ums2 > (acc_range_g / 2 * SENSOR_G)) { in bmi160_acc_slope_config()209 reg_val = (slope_th_ums2 - 1) * 512U / (acc_range_g * SENSOR_G); in bmi160_acc_slope_config()
301 uint32_t slope_th_ums2; in lis2dh_acc_slope_config() local313 slope_th_ums2 = val->val1 * 1000000 + val->val2; in lis2dh_acc_slope_config()316 if ((slope_th_ums2 - 1) > (range_g * SENSOR_G)) { in lis2dh_acc_slope_config()321 reg_val = 128 / range_g * (slope_th_ums2 - 1) / SENSOR_G; in lis2dh_acc_slope_config()324 range_g, slope_th_ums2 - 1); in lis2dh_acc_slope_config()