Home
last modified time | relevance | path

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

/Zephyr-Core-3.4.0/drivers/sensor/lis2dh/
Dlis2dh_trigger.c220 uint8_t range_g, reg_val; in lis2dh_acc_slope_config() local
230 range_g = 2 * (1 << ((LIS2DH_FS_MASK & reg_val) in lis2dh_acc_slope_config()
236 if ((slope_th_ums2 - 1) > (range_g * SENSOR_G)) { in lis2dh_acc_slope_config()
241 reg_val = 128 / range_g * (slope_th_ums2 - 1) / SENSOR_G; in lis2dh_acc_slope_config()
244 range_g, slope_th_ums2 - 1); in lis2dh_acc_slope_config()
/Zephyr-Core-3.4.0/drivers/sensor/bmi160/
Dbmi160.h299 #define BMI160_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL) argument