Lines Matching full:odr
81 static int lis2de12_accel_set_odr_raw(const struct device *dev, uint8_t odr) in lis2de12_accel_set_odr_raw() argument
87 if (lis2de12_data_rate_set(ctx, odr) < 0) { in lis2de12_accel_set_odr_raw()
91 data->accel_freq = odr; in lis2de12_accel_set_odr_raw()
98 int odr; in lis2de12_accel_odr_set() local
100 odr = lis2de12_freq_to_odr_val(dev, freq); in lis2de12_accel_odr_set()
101 if (odr < 0) { in lis2de12_accel_odr_set()
102 return odr; in lis2de12_accel_odr_set()
105 if (lis2de12_accel_set_odr_raw(dev, odr) < 0) { in lis2de12_accel_odr_set()
321 uint8_t odr, fs; in lis2de12_init_chip() local
349 /* set odr from DT (the only way to go in high performance) */ in lis2de12_init_chip()
350 odr = cfg->accel_odr; in lis2de12_init_chip()
351 LOG_DBG("accel odr is %d", odr); in lis2de12_init_chip()
352 if (lis2de12_accel_set_odr_raw(dev, odr) < 0) { in lis2de12_init_chip()
353 LOG_ERR("failed to set accelerometer odr %d", odr); in lis2de12_init_chip()