Home
last modified time | relevance | path

Searched refs:odr_val (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/drivers/sensor/st/lis2dux12/
Dlis2dux12.c108 int odr_val; in lis2dux12_accel_config() local
116 odr_val = lis2dux12_freq_to_odr_val(dev, val->val1); in lis2dux12_accel_config()
117 if (odr_val < 0) { in lis2dux12_accel_config()
119 return odr_val; in lis2dux12_accel_config()
124 return chip_api->set_odr_raw(dev, odr_val); in lis2dux12_accel_config()
/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c312 uint8_t odr_val = 0; in set_odr_config() local
314 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, &odr_val); in set_odr_config()
318 odr_val = BMP5_SET_BITSLICE(odr_val, BMP5_ODR, odr->val1); in set_odr_config()
319 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_ODR_CONFIG, odr_val); in set_odr_config()
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/
Dbmc150_magn.c172 uint8_t i, odr_val, reg_val; in bmc150_magn_read_odr() local
179 odr_val = (reg_val & BMC150_MAGN_MASK_ODR) >> BMC150_MAGN_SHIFT_ODR; in bmc150_magn_read_odr()
182 if (bmc150_magn_samp_freq_table[i].reg_val == odr_val) { in bmc150_magn_read_odr()
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c182 uint8_t i, odr_val, reg_val; in bmm150_read_odr() local
188 odr_val = (reg_val & BMM150_MASK_ODR) >> BMM150_SHIFT_ODR; in bmm150_read_odr()
191 if (bmm150_samp_freq_table[i].reg_val == odr_val) { in bmm150_read_odr()