Home
last modified time | relevance | path

Searched refs:slope_th_ums2 (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160_trigger.c193 uint32_t slope_th_ums2; in bmi160_acc_slope_config() local
202 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()
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c301 uint32_t slope_th_ums2; in lis2dh_acc_slope_config() local
313 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()