Lines Matching full:odr
192 int64_t odr = sensor_value_to_milli(val); in bosch_bmi323_driver_api_set_acc_odr() local
200 acc_conf &= ~IMU_BOSCH_BMI323_REG_MASK(ACC_CONF, ODR); in bosch_bmi323_driver_api_set_acc_odr()
202 if (odr <= 782) { in bosch_bmi323_driver_api_set_acc_odr()
203 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ0P78125); in bosch_bmi323_driver_api_set_acc_odr()
204 } else if (odr <= 1563) { in bosch_bmi323_driver_api_set_acc_odr()
205 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ1P5625); in bosch_bmi323_driver_api_set_acc_odr()
206 } else if (odr <= 3125) { in bosch_bmi323_driver_api_set_acc_odr()
207 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ3P125); in bosch_bmi323_driver_api_set_acc_odr()
208 } else if (odr <= 6250) { in bosch_bmi323_driver_api_set_acc_odr()
209 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ6P25); in bosch_bmi323_driver_api_set_acc_odr()
210 } else if (odr <= 12500) { in bosch_bmi323_driver_api_set_acc_odr()
211 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ12P5); in bosch_bmi323_driver_api_set_acc_odr()
212 } else if (odr <= 25000) { in bosch_bmi323_driver_api_set_acc_odr()
213 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ25); in bosch_bmi323_driver_api_set_acc_odr()
214 } else if (odr <= 50000) { in bosch_bmi323_driver_api_set_acc_odr()
215 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ50); in bosch_bmi323_driver_api_set_acc_odr()
216 } else if (odr <= 100000) { in bosch_bmi323_driver_api_set_acc_odr()
217 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ100); in bosch_bmi323_driver_api_set_acc_odr()
218 } else if (odr <= 200000) { in bosch_bmi323_driver_api_set_acc_odr()
219 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ200); in bosch_bmi323_driver_api_set_acc_odr()
220 } else if (odr <= 400000) { in bosch_bmi323_driver_api_set_acc_odr()
221 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ400); in bosch_bmi323_driver_api_set_acc_odr()
222 } else if (odr <= 800000) { in bosch_bmi323_driver_api_set_acc_odr()
223 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ800); in bosch_bmi323_driver_api_set_acc_odr()
224 } else if (odr <= 1600000) { in bosch_bmi323_driver_api_set_acc_odr()
225 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ1600); in bosch_bmi323_driver_api_set_acc_odr()
226 } else if (odr <= 3200000) { in bosch_bmi323_driver_api_set_acc_odr()
227 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ3200); in bosch_bmi323_driver_api_set_acc_odr()
229 acc_conf |= IMU_BOSCH_BMI323_REG_VALUE(ACC_CONF, ODR, HZ6400); in bosch_bmi323_driver_api_set_acc_odr()
294 int64_t odr = sensor_value_to_milli(val); in bosch_bmi323_driver_api_set_gyro_odr() local
302 gyro_conf &= ~IMU_BOSCH_BMI323_REG_MASK(GYRO_CONF, ODR); in bosch_bmi323_driver_api_set_gyro_odr()
304 if (odr <= 782) { 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()
306 } else if (odr <= 1563) { 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()
308 } else if (odr <= 3125) { 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()
310 } else if (odr <= 6250) { 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()
312 } else if (odr <= 12500) { 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()
314 } else if (odr <= 25000) { 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()
316 } else if (odr <= 50000) { 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()
318 } else if (odr <= 100000) { 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()
320 } else if (odr <= 200000) { 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()
322 } else if (odr <= 400000) { 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()
324 } else if (odr <= 800000) { 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()
326 } else if (odr <= 1600000) { 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()
328 } else if (odr <= 3200000) { 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()
475 switch (IMU_BOSCH_BMI323_REG_VALUE_GET_FIELD(acc_conf, ACC_CONF, ODR)) { in bosch_bmi323_driver_api_get_acc_odr()
609 switch (IMU_BOSCH_BMI323_REG_VALUE_GET_FIELD(gyro_conf, GYRO_CONF, ODR)) { in bosch_bmi323_driver_api_get_gyro_odr()