Lines Matching refs:gyro_conf

293 	uint16_t gyro_conf;  in bosch_bmi323_driver_api_set_gyro_odr()  local
296 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_odr()
302 gyro_conf &= ~IMU_BOSCH_BMI323_REG_MASK(GYRO_CONF, ODR); in bosch_bmi323_driver_api_set_gyro_odr()
305 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ0P78125); in bosch_bmi323_driver_api_set_gyro_odr()
307 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ1P5625); in bosch_bmi323_driver_api_set_gyro_odr()
309 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ3P125); in bosch_bmi323_driver_api_set_gyro_odr()
311 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ6P25); in bosch_bmi323_driver_api_set_gyro_odr()
313 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ12P5); in bosch_bmi323_driver_api_set_gyro_odr()
315 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ25); in bosch_bmi323_driver_api_set_gyro_odr()
317 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ50); in bosch_bmi323_driver_api_set_gyro_odr()
319 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ100); in bosch_bmi323_driver_api_set_gyro_odr()
321 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ200); in bosch_bmi323_driver_api_set_gyro_odr()
323 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ400); in bosch_bmi323_driver_api_set_gyro_odr()
325 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ800); in bosch_bmi323_driver_api_set_gyro_odr()
327 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ1600); in bosch_bmi323_driver_api_set_gyro_odr()
329 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ3200); in bosch_bmi323_driver_api_set_gyro_odr()
331 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, ODR, HZ6400); in bosch_bmi323_driver_api_set_gyro_odr()
334 return bosch_bmi323_bus_write_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_odr()
342 uint16_t gyro_conf; in bosch_bmi323_driver_api_set_gyro_full_scale() local
345 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_full_scale()
351 gyro_conf &= ~IMU_BOSCH_BMI323_REG_MASK(GYRO_CONF, RANGE); in bosch_bmi323_driver_api_set_gyro_full_scale()
354 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, RANGE, DPS125); in bosch_bmi323_driver_api_set_gyro_full_scale()
356 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, RANGE, DPS250); in bosch_bmi323_driver_api_set_gyro_full_scale()
358 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, RANGE, DPS500); in bosch_bmi323_driver_api_set_gyro_full_scale()
360 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, RANGE, DPS1000); in bosch_bmi323_driver_api_set_gyro_full_scale()
362 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, RANGE, DPS2000); in bosch_bmi323_driver_api_set_gyro_full_scale()
367 return bosch_bmi323_bus_write_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_full_scale()
374 uint16_t gyro_conf; in bosch_bmi323_driver_api_set_gyro_feature_mask() local
376 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_feature_mask()
382 gyro_conf &= ~IMU_BOSCH_BMI323_REG_MASK(GYRO_CONF, MODE); in bosch_bmi323_driver_api_set_gyro_feature_mask()
385 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, MODE, HPWR); in bosch_bmi323_driver_api_set_gyro_feature_mask()
387 gyro_conf |= IMU_BOSCH_BMI323_REG_VALUE(GYRO_CONF, MODE, DIS); in bosch_bmi323_driver_api_set_gyro_feature_mask()
390 return bosch_bmi323_bus_write_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_set_gyro_feature_mask()
600 uint16_t gyro_conf; in bosch_bmi323_driver_api_get_gyro_odr() local
603 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_get_gyro_odr()
609 switch (IMU_BOSCH_BMI323_REG_VALUE_GET_FIELD(gyro_conf, GYRO_CONF, ODR)) { in bosch_bmi323_driver_api_get_gyro_odr()
676 uint16_t gyro_conf; in bosch_bmi323_driver_api_get_gyro_full_scale() local
679 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_get_gyro_full_scale()
685 switch (IMU_BOSCH_BMI323_REG_VALUE_GET_FIELD(gyro_conf, GYRO_CONF, RANGE)) { in bosch_bmi323_driver_api_get_gyro_full_scale()
716 uint16_t gyro_conf; in bosch_bmi323_driver_api_get_gyro_feature_mask() local
719 ret = bosch_bmi323_bus_read_words(dev, IMU_BOSCH_BMI323_REG_GYRO_CONF, &gyro_conf, 1); in bosch_bmi323_driver_api_get_gyro_feature_mask()
725 if (IMU_BOSCH_BMI323_REG_VALUE_GET_FIELD(gyro_conf, GYRO_CONF, MODE)) { in bosch_bmi323_driver_api_get_gyro_feature_mask()