Lines Matching full:odr
26 static int lis2ds12_set_odr(const struct device *dev, uint8_t odr) in lis2ds12_set_odr() argument
33 if (odr == 0U) { in lis2ds12_set_odr()
39 * odr >= 1600Hz are available in HF mode only in lis2ds12_set_odr()
40 * 12,5Hz <= odr <= 800Hz are available in LP and HR mode only in lis2ds12_set_odr()
41 * odr == 1Hz is available in LP mode only in lis2ds12_set_odr()
43 if ((odr >= LIS2DS12_DT_ODR_1600Hz && cfg->pm != LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr()
44 (odr < LIS2DS12_DT_ODR_1600Hz && cfg->pm == LIS2DS12_DT_HIGH_FREQUENCY) || in lis2ds12_set_odr()
45 (odr == LIS2DS12_DT_ODR_1Hz_LP && cfg->pm != LIS2DS12_DT_LOW_POWER)) { in lis2ds12_set_odr()
46 LOG_ERR("%s: bad odr and pm combination", dev->name); in lis2ds12_set_odr()
50 switch (odr) { in lis2ds12_set_odr()
92 LOG_ERR("%s: bad odr %d", dev->name, odr); in lis2ds12_set_odr()
138 LOG_DBG("%s: set odr to %d Hz", dev->name, val->val1); in lis2ds12_accel_config()
307 /* set sensor default pm and odr */ in lis2ds12_init()
308 LOG_DBG("%s: pm: %d, odr: %d", dev->name, cfg->pm, cfg->odr); in lis2ds12_init()
309 ret = lis2ds12_set_odr(dev, (cfg->pm == 0) ? 0 : cfg->odr); in lis2ds12_init()
311 LOG_ERR("%s: odr init error (12.5 Hz)", dev->name); in lis2ds12_init()
359 .odr = DT_INST_PROP(inst, odr), \