Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c375 drv->last_sample.temperature.val1 = data[2]; in bmp581_sample_fetch()
376 drv->last_sample.temperature.val2 = (data[1] << 8 | data[0]) * 10; in bmp581_sample_fetch()
385 drv->last_sample.pressure.val1 = raw_pressure >> 6; in bmp581_sample_fetch()
386 drv->last_sample.pressure.val2 = (raw_pressure & BIT_MASK(6)) * 10000; in bmp581_sample_fetch()
388 drv->last_sample.pressure.val1 = 0; in bmp581_sample_fetch()
389 drv->last_sample.pressure.val2 = 0; in bmp581_sample_fetch()
408 *val = drv->last_sample.pressure; in bmp581_channel_get()
412 *val = drv->last_sample.temperature; in bmp581_channel_get()
516 memset(&drv->last_sample, 0, sizeof(drv->last_sample)); in bmp581_init()
Dbmp581.h310 struct bmp581_sample last_sample; member