Lines Matching refs:gyr_range
411 uint8_t gyr_range, reg; in set_gyro_range() local
413 ret = bmi270_reg_read(dev, BMI270_REG_GYR_RANGE, &gyr_range, 1); in set_gyro_range()
422 data->gyr_range = 125; in set_gyro_range()
426 data->gyr_range = 250; in set_gyro_range()
430 data->gyr_range = 500; in set_gyro_range()
434 data->gyr_range = 1000; in set_gyro_range()
438 data->gyr_range = 2000; in set_gyro_range()
444 gyr_range = BMI270_SET_BITS_POS_0(gyr_range, BMI270_GYR_RANGE, reg); in set_gyro_range()
445 ret = bmi270_reg_write_with_delay(dev, BMI270_REG_GYR_RANGE, &gyr_range, in set_gyro_range()
534 channel_gyro_convert(val, data->gx, data->gyr_range); in bmi270_channel_get()
536 channel_gyro_convert(val, data->gy, data->gyr_range); in bmi270_channel_get()
538 channel_gyro_convert(val, data->gz, data->gyr_range); in bmi270_channel_get()
541 data->gyr_range); in bmi270_channel_get()
543 data->gyr_range); in bmi270_channel_get()
545 data->gyr_range); in bmi270_channel_get()
669 data->gyr_range = 2000; in bmi270_init()