Home
last modified time | relevance | path

Searched refs:temp_sample (Results 1 – 25 of 32) sorted by relevance

12

/Zephyr-latest/drivers/sensor/sensirion/sts4x/
Dsts4x.c37 uint16_t temp_sample; member
66 static int sts4x_read_sample(const struct device *dev, uint16_t *temp_sample) in sts4x_read_sample() argument
78 *temp_sample = sys_get_be16(rx_buf); in sts4x_read_sample()
79 ret = sts4x_crc_check(*temp_sample, rx_buf[2]); in sts4x_read_sample()
103 ret = sts4x_read_sample(dev, &data->temp_sample); in sts4x_sample_fetch()
123 temp = data->temp_sample * STS4X_MAX_TEMP; in sts4x_channel_get()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c43 data->temp_sample = sys_get_be16(rx_buf); in tcn75a_sample_fetch()
44 LOG_DBG("Raw sample: 0x%04x", data->temp_sample); in tcn75a_sample_fetch()
60 val->val1 = data->temp_sample >> TCN75A_TEMP_MSB_POS; in tcn75a_channel_get()
61 temp_lsb = (data->temp_sample & TCN75A_TEMP_LSB_MASK); in tcn75a_channel_get()
Dtcn75a.h42 uint16_t temp_sample; member
/Zephyr-latest/drivers/sensor/bosch/bma280/
Dbma280.c50 (uint8_t *)&drv_data->temp_sample) < 0) { in bma280_sample_fetch()
99 val->val1 = (drv_data->temp_sample >> 1) + 23; in bma280_channel_get()
100 val->val2 = 500000 * (drv_data->temp_sample & 1); in bma280_channel_get()
Dbma280.h120 int8_t temp_sample; member
/Zephyr-latest/drivers/sensor/st/lsm9ds1/
Dlsm9ds1.h52 int16_t temp_sample; member
Dlsm9ds1.c404 ret = lsm9ds1_temperature_raw_get(ctx, &data->temp_sample); in lsm9ds1_sample_fetch_temp()
525 val->val1 = data->temp_sample / TEMP_SENSITIVITY + TEMP_OFFSET; in lsm9ds1_temp_channel_get()
526 val->val2 = (data->temp_sample % TEMP_SENSITIVITY) * (1000000 / TEMP_SENSITIVITY); in lsm9ds1_temp_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/scd4x/
Dscd4x.h70 uint16_t temp_sample; member
/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl.h52 int16_t temp_sample; member
Dlis2mdl.c123 val->val1 = 25 + drv_data->temp_sample / 8; in lis2mdl_channel_get_temp()
124 val->val2 = (drv_data->temp_sample % 8) * 1000000 / 8; in lis2mdl_channel_get_temp()
284 lis2mdl->temp_sample = raw_temp; in lis2mdl_sample_fetch_temp()
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc.h48 int32_t temp_sample; member
Diis2mdc.c111 val->val1 = drv_data->temp_sample / 100; in iis2mdc_channel_get_temp()
112 val->val2 = (drv_data->temp_sample % 100) * 10000; in iis2mdc_channel_get_temp()
208 iis2mdc->temp_sample = 2500 + (temp * 100) / 8; in iis2mdc_sample_fetch_temp()
/Zephyr-latest/drivers/sensor/st/lis3mdl/
Dlis3mdl.c54 lis3mdl_convert(val, drv_data->temp_sample, 8); in lis3mdl_channel_get()
92 drv_data->temp_sample = sys_le16_to_cpu(buf[3]); in lis3mdl_sample_fetch()
Dlis3mdl.h116 int16_t temp_sample; member
/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.h65 int16_t temp_sample; member
Dlis2de12.c183 if (lis2de12_temperature_raw_get(ctx, &data->temp_sample) < 0) { in lis2de12_sample_fetch_temp()
274 micro_c = ((int64_t)data->temp_sample * 1000000) / 256; in lis2de12_temp_channel_get()
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.h61 int temp_sample; member
Diis2iclx.c224 data->temp_sample = buf; in iis2iclx_sample_fetch_temp()
325 val->val1 = data->temp_sample / 256 + 25; in iis2iclx_temp_channel_get()
326 val->val2 = (data->temp_sample % 256) * (1000000 / 256); in iis2iclx_temp_channel_get()
/Zephyr-latest/drivers/sensor/silabs/si7210/
Dsi7210.c107 uint16_t temp_sample; member
349 data->temp_sample = dspsig >> 3; in si7210_sample_fetch()
378 tmp = data->temp_sample; in si7210_channel_get()
/Zephyr-latest/drivers/sensor/st/lsm6ds0/
Dlsm6ds0.c189 data->temp_sample = (int16_t)((uint16_t)(buf[0]) | in lsm6ds0_sample_fetch_temp()
351 val->val1 = data->temp_sample / 16 + 25; in lsm6ds0_gyro_channel_get_temp()
352 val->val2 = (data->temp_sample % 16) * (1000000 / 16); in lsm6ds0_gyro_channel_get_temp()
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.h66 int temp_sample; member
Dism330dhcx.c346 data->temp_sample = buf; in ism330dhcx_sample_fetch_temp()
501 val->val1 = data->temp_sample / 256 + 25; in ism330dhcx_gyro_channel_get_temp()
502 val->val2 = (data->temp_sample % 256) * (1000000 / 256); in ism330dhcx_gyro_channel_get_temp()
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.h78 int16_t temp_sample; member
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.h78 int16_t temp_sample; member
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/
Dlsm6dsv16x.h129 int16_t temp_sample; member

12