Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c272 uint8_t osr_val = 0; in set_osr_config() local
274 ret = i2c_reg_read_byte_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, &osr_val); in set_osr_config()
278 osr_val = BMP5_SET_BITS_POS_0(osr_val, BMP5_TEMP_OS, oversampling); in set_osr_config()
279 osr_val = BMP5_SET_BITSLICE(osr_val, BMP5_PRESS_OS, oversampling); in set_osr_config()
280 osr_val = BMP5_SET_BITSLICE(osr_val, BMP5_PRESS_EN, press_en); in set_osr_config()
283 osr_val = BMP5_SET_BITSLICE(osr_val, BMP5_PRESS_OS, oversampling); in set_osr_config()
284 osr_val = BMP5_SET_BITSLICE(osr_val, BMP5_PRESS_EN, press_en); in set_osr_config()
287 osr_val = BMP5_SET_BITS_POS_0(osr_val, BMP5_TEMP_OS, oversampling); in set_osr_config()
295 ret = i2c_reg_write_byte_dt(&conf->i2c, BMP5_REG_OSR_CONFIG, osr_val); in set_osr_config()