Lines Matching full:odr
85 uint8_t odr, cfg; in lsm6dsv16x_lis2mdl_odr_set() local
87 for (odr = 0; odr < ARRAY_SIZE(lis2mdl_map); odr++) { in lsm6dsv16x_lis2mdl_odr_set()
88 if (freq <= lis2mdl_map[odr]) { in lsm6dsv16x_lis2mdl_odr_set()
93 if (odr == ARRAY_SIZE(lis2mdl_map)) { in lsm6dsv16x_lis2mdl_odr_set()
98 cfg = (odr << 2); in lsm6dsv16x_lis2mdl_odr_set()
168 /* configure ODR and BDU */ in lsm6dsv16x_hts221_init()
181 uint8_t odr, cfg; in lsm6dsv16x_hts221_odr_set() local
183 for (odr = 0; odr < ARRAY_SIZE(hts221_map); odr++) { in lsm6dsv16x_hts221_odr_set()
184 if (freq <= hts221_map[odr]) { in lsm6dsv16x_hts221_odr_set()
189 if (odr == ARRAY_SIZE(hts221_map)) { in lsm6dsv16x_hts221_odr_set()
194 cfg = odr | HTS221_BDU | HTS221_PD; in lsm6dsv16x_hts221_odr_set()
294 uint8_t odr, cfg; in lsm6dsv16x_lps22hh_odr_set() local
296 for (odr = 0; odr < ARRAY_SIZE(lps22hh_map); odr++) { in lsm6dsv16x_lps22hh_odr_set()
297 if (freq <= lps22hh_map[odr]) { in lsm6dsv16x_lps22hh_odr_set()
302 if (odr == ARRAY_SIZE(lps22hh_map)) { in lsm6dsv16x_lps22hh_odr_set()
307 cfg = (odr << 4) | LPS22HH_LPF_EN | LPS22HH_BDU_EN; in lsm6dsv16x_lps22hh_odr_set()
374 uint8_t odr, cfg; in lsm6dsv16x_lps22df_odr_set() local
376 for (odr = 0; odr < ARRAY_SIZE(lps22df_map); odr++) { in lsm6dsv16x_lps22df_odr_set()
377 if (freq <= lps22df_map[odr]) { in lsm6dsv16x_lps22df_odr_set()
382 if (odr == ARRAY_SIZE(lps22df_map)) { in lsm6dsv16x_lps22df_odr_set()
387 cfg = (odr << 3) | LPS22DF_AVG_16; in lsm6dsv16x_lps22df_odr_set()
500 int tries = 200; /* Should be max ~160 ms, from 2 cycles at slowest ODR 12.5 Hz */ in lsm6dsv16x_shub_wait_completed()
522 uint8_t odr = (enable) ? 2 : 0; in lsm6dsv16x_shub_enable() local
524 if (lsm6dsv16x_xl_data_rate_set(ctx, odr) < 0) { in lsm6dsv16x_shub_enable()