Searched refs:gyr_range (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/drivers/sensor/bosch/bmi270/ |
D | bmi270.c | 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() [all …]
|
D | bmi270.h | 263 uint16_t gyr_range; member
|
/Zephyr-latest/drivers/sensor/bosch/bmi160/ |
D | bmi160.c | 831 uint8_t gyr_range; in bmi160_attr_get() local 834 rc = bmi160_byte_read(dev, BMI160_REG_GYR_RANGE, &gyr_range); in bmi160_attr_get() 839 gyr_range = BMI160_DEFAULT_RANGE_GYR; in bmi160_attr_get() 841 sensor_degrees_to_rad(bmi160_gyr_reg_val_to_range(gyr_range), val); in bmi160_attr_get() 1054 int32_t acc_range, gyr_range; in bmi160_init() local 1138 gyr_range = bmi160_gyr_reg_val_to_range(BMI160_DEFAULT_RANGE_GYR); in bmi160_init() 1140 data->scale.gyr_numerator = BMI160_GYR_SCALE_NUMERATOR(gyr_range); in bmi160_init()
|