Home
last modified time | relevance | path

Searched refs:acc_range (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c252 uint8_t acc_range, reg; in set_accel_range() local
254 ret = bmi270_reg_read(dev, BMI270_REG_ACC_RANGE, &acc_range, 1); in set_accel_range()
263 data->acc_range = 2; in set_accel_range()
267 data->acc_range = 4; in set_accel_range()
271 data->acc_range = 8; in set_accel_range()
275 data->acc_range = 16; in set_accel_range()
281 acc_range = BMI270_SET_BITS_POS_0(acc_range, BMI270_ACC_RANGE, in set_accel_range()
283 ret = bmi270_reg_write_with_delay(dev, BMI270_REG_ACC_RANGE, &acc_range, in set_accel_range()
521 channel_accel_convert(val, data->ax, data->acc_range); in bmi270_channel_get()
523 channel_accel_convert(val, data->ay, data->acc_range); in bmi270_channel_get()
[all …]
Dbmi270.h262 uint8_t acc_range, acc_odr, gyr_odr; member
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c818 uint8_t acc_range; in bmi160_attr_get() local
821 rc = bmi160_byte_read(dev, BMI160_REG_ACC_RANGE, &acc_range); in bmi160_attr_get()
826 acc_range = BMI160_DEFAULT_RANGE_ACC; in bmi160_attr_get()
828 sensor_g_to_ms2(bmi160_acc_reg_val_to_range(acc_range), val); in bmi160_attr_get()
1054 int32_t acc_range, gyr_range; in bmi160_init() local
1127 acc_range = bmi160_acc_reg_val_to_range(BMI160_DEFAULT_RANGE_ACC); in bmi160_init()
1129 data->scale.acc_numerator = BMI160_ACC_SCALE_NUMERATOR(acc_range); in bmi160_init()
Demul_bmi160.c385 uint8_t acc_range = cfg->reg[BMI160_REG_ACC_RANGE]; in bmi160_emul_backend_get_sample_range() local
387 switch (acc_range) { in bmi160_emul_backend_get_sample_range()