Lines Matching full:odr
109 static int lis2du12_accel_set_odr_raw(const struct device *dev, uint8_t odr) in lis2du12_accel_set_odr_raw() argument
120 mode.odr = odr; in lis2du12_accel_set_odr_raw()
125 data->accel_freq = odr; in lis2du12_accel_set_odr_raw()
132 int odr; in lis2du12_accel_odr_set() local
134 odr = lis2du12_freq_to_odr_val(dev, freq); in lis2du12_accel_odr_set()
135 if (odr < 0) { in lis2du12_accel_odr_set()
136 return odr; in lis2du12_accel_odr_set()
139 if (lis2du12_accel_set_odr_raw(dev, odr) < 0) { in lis2du12_accel_odr_set()
322 uint8_t odr, fs; in lis2du12_init_chip() local
350 /* set odr from DT (the only way to go in high performance) */ in lis2du12_init_chip()
351 odr = cfg->accel_odr; in lis2du12_init_chip()
352 LOG_DBG("accel odr is %d", odr); in lis2du12_init_chip()
353 if (lis2du12_accel_set_odr_raw(dev, odr) < 0) { in lis2du12_init_chip()
354 LOG_ERR("failed to set accelerometer odr %d", odr); in lis2du12_init_chip()