Searched refs:range_g (Results 1 – 2 of 2) sorted by relevance
220 uint8_t range_g, reg_val; in lis2dh_acc_slope_config() local230 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()
299 #define BMI160_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL) argument