Searched refs:range_g (Results 1 – 5 of 5) sorted by relevance
300 uint8_t range_g, reg_val; in lis2dh_acc_slope_config() local310 range_g = 2 * (1 << ((LIS2DH_FS_MASK & reg_val) 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()
377 int32_t range_g = sensor_ms2_to_g(val); in bmi160_acc_range_set() local379 int32_t reg_val = bmi160_range_to_reg_val(range_g, in bmi160_acc_range_set()389 range_g = 2; in bmi160_acc_range_set()392 range_g = 4; in bmi160_acc_range_set()395 range_g = 8; in bmi160_acc_range_set()398 range_g = 16; in bmi160_acc_range_set()406 data->scale.acc_numerator = BMI160_ACC_SCALE_NUMERATOR(range_g); in bmi160_acc_range_set()
303 #define BMI160_ACC_SCALE_NUMERATOR(range_g) (2 * (range_g) * SENSOR_G) argument
198 int64_t range_g = 4; in bma4xx_emul_set_accel_data() local208 intermediate = (unshifted * BIT(11)) / (g << range_g); in bma4xx_emul_set_accel_data()
426 #define BMI08X_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL) argument