Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh_trigger.c300 uint8_t range_g, reg_val; in lis2dh_acc_slope_config() local
310 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()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c377 int32_t range_g = sensor_ms2_to_g(val); in bmi160_acc_range_set() local
379 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()
Dbmi160.h303 #define BMI160_ACC_SCALE_NUMERATOR(range_g) (2 * (range_g) * SENSOR_G) argument
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx_emul.c198 int64_t range_g = 4; in bma4xx_emul_set_accel_data() local
208 intermediate = (unshifted * BIT(11)) / (g << range_g); in bma4xx_emul_set_accel_data()
/Zephyr-latest/drivers/sensor/bosch/bmi08x/
Dbmi08x.h426 #define BMI08X_ACC_SCALE(range_g) ((2 * range_g * SENSOR_G) / 65536LL) argument