Lines Matching full:odr
25 static inline int stts22h_set_odr_raw(const struct device *dev, stts22h_odr_temp_t odr) in stts22h_set_odr_raw() argument
30 return stts22h_temp_data_rate_set(ctx, odr); in stts22h_set_odr_raw()
82 int odr; in stts22h_odr_set() local
84 for (odr = 0; odr < ARRAY_SIZE(stts22h_map); odr++) { in stts22h_odr_set()
85 if (val->val1 <= stts22h_map[odr]) { in stts22h_odr_set()
90 switch (odr) { in stts22h_odr_set()
104 LOG_ERR("bad frequency: %d (odr = %d)", val->val1, odr); in stts22h_odr_set()
143 uint8_t chip_id, odr; in stts22h_init_chip() local
157 /* set odr from DT */ in stts22h_init_chip()
158 odr = cfg->odr; in stts22h_init_chip()
159 LOG_INF("sensor odr is %d", odr); in stts22h_init_chip()
160 if (stts22h_set_odr_raw(dev, odr) < 0) { in stts22h_init_chip()
203 .odr = DT_INST_PROP(inst, sampling_rate), \