Home
last modified time | relevance | path

Searched refs:val1 (Results 151 – 175 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/drivers/sensor/mhz19b/
Dmhz19b.c161 val->val1 = (int32_t)data->data; in mhz19b_channel_get()
204 return mhz19b_attr_full_scale_cfg(dev, val->val1); in mhz19b_attr_set()
207 return mhz19b_attr_abc_cfg(dev, val->val1); in mhz19b_attr_set()
235 val->val1 = (int32_t)data->data; in mhz19b_attr_get()
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c201 return lsm6dso16is_accel_odr_set(dev, val->val1); in lsm6dso16is_accel_config()
203 switch (val->val1) { in lsm6dso16is_accel_config()
272 return lsm6dso16is_gyro_odr_set(dev, val->val1); in lsm6dso16is_gyro_config()
274 switch (val->val1) { in lsm6dso16is_gyro_config()
527 val->val1 = micro_c / 1000000 + 25; in lsm6dso16is_gyro_channel_get_temp()
540 val->val1 = (int32_t)dval / 1000000; in lsm6dso16is_magn_convert()
609 val->val1 = rh; in lsm6dso16is_hum_convert()
631 val->val1 = (raw_val >> 12) / 10; in lsm6dso16is_press_convert()
652 val->val1 = raw_val / 100; in lsm6dso16is_temp_convert()
/Zephyr-latest/drivers/sensor/ti/fdc2x1x/
Dfdc2x1x.c641 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
647 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
657 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
667 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
677 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
684 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
695 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
706 val->val1 = (uint32_t)ch_data; in fdc2x1x_channel_get()
/Zephyr-latest/drivers/sensor/jedec/jc42/
Djc42.c85 val->val1 = temp / JC42_TEMP_SCALE_CEL; in jc42_channel_get()
86 temp -= val->val1 * JC42_TEMP_SCALE_CEL; in jc42_channel_get()
/Zephyr-latest/drivers/sensor/renesas/hs400x/
Dhs400x.c106 val->val1 = micro_c / 1000000; in hs400x_temp_convert()
120 val->val1 = micro_rh / 1000000; in hs400x_rh_convert()
/Zephyr-latest/drivers/sensor/rpi_pico_temp/
Drpi_pico_temp.c78 val->val1 = work / (-cfg->vbe_slope); in rpi_pico_temp_channel_get()
79 work -= val->val1 * (-cfg->vbe_slope); in rpi_pico_temp_channel_get()
/Zephyr-latest/drivers/sensor/st/lps2xdf/
Dlps2xdf.c75 return lps2xdf_odr_set(dev, val->val1); in lps2xdf_attr_set()
102 val->val1 = press_tmp / divider; in lps2xdf_press_convert()
114 val->val1 = raw_val / 100; in lps2xdf_temp_convert()
/Zephyr-latest/drivers/sensor/tdk/mpu6050/
Dmpu6050.c26 val->val1 = conv_val / 1000000; in mpu6050_convert_accel()
38 val->val1 = conv_val / 1000000; in mpu6050_convert_gyro()
59 val->val1 = tmp_val / 1000000; in mpu6050_convert_temp()
/Zephyr-latest/drivers/sensor/ti/tmp116/
Dtmp116.c240 val->val1 = tmp / 1000000; /* uCelsius */ in tmp116_channel_get()
304 value = (((val->val1) * 10000000) + ((val->val2) * 10)) in tmp116_attr_set()
311 switch (val->val1) { in tmp116_attr_set()
367 val->val1 = data; in tmp116_attr_get()
/Zephyr-latest/samples/sensor/proximity_polling/src/
Dmain.c37 printk("Proximity on %s: %d\n", dev->name, pdata.val1); in print_prox_data()
/Zephyr-latest/drivers/sensor/ams/tsl2591/
Dtsl2591.c175 val->val1 = strength / cpl; in tsl2591_channel_get()
196 raw = ((val->val1 * cpl) / TSL2591_LUX_DF) + in tsl2591_set_threshold()
389 ret = tsl2591_set_gain(dev, (enum sensor_gain_tsl2591)val->val1); in tsl2591_attr_set()
392 ret = tsl2591_set_integration(dev, val->val1); in tsl2591_attr_set()
397 ret = tsl2591_set_persist(dev, val->val1); in tsl2591_attr_set()
/Zephyr-latest/drivers/sensor/meas/ms5837/
Dms5837.c178 val->val1 = data->temperature / 100; in ms5837_channel_get()
183 val->val1 = data->pressure / 1000; in ms5837_channel_get()
204 switch (val->val1) { in ms5837_attr_set()
236 LOG_ERR("invalid oversampling rate %d", val->val1); in ms5837_attr_set()
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.c155 return iis2iclx_accel_odr_set(dev, val->val1); in iis2iclx_accel_config()
325 val->val1 = data->temp_sample / 256 + 25; in iis2iclx_temp_channel_get()
338 val->val1 = (int32_t)dval / 1000000; in iis2iclx_magn_convert()
407 val->val1 = rh; in iis2iclx_hum_convert()
429 val->val1 = (raw_val >> 12) / 10; in iis2iclx_press_convert()
450 val->val1 = raw_val / 100; in iis2iclx_temp_convert()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a.c195 .data = { R502A_SETSYSPARAM, val->val1, val->val2} in fps_set_sys_param()
691 val->val1 = sys_get_be16(&rx_packet.data[1]); in fps_search()
693 LOG_INF("Found a matching print! at ID #%d", val->val1); in fps_search()
784 val->val1 = R502A_FINGER_MATCH_FOUND; in fps_match_templates()
788 val->val1 = R502A_FINGER_MATCH_NOT_FOUND; in fps_match_templates()
985 val.val1 = R502A_DATA_PKG_LEN; in fps_init()
1017 val->val1 = drv_data->template_count; in grow_r502a_channel_get()
1042 return fps_store_model(dev, val->val1); in grow_r502a_attr_set()
1044 return fps_delete_model(dev, val->val1, val->val2); in grow_r502a_attr_set()
1048 return fps_load_template(dev, val->val1); in grow_r502a_attr_set()
[all …]
/Zephyr-latest/drivers/sensor/maxim/max44009/
Dmax44009.c87 cr = val->val1 * 1000 + val->val2 / 1000; in max44009_attr_set()
162 val->val1 = (uval * 45U) / 1000; in max44009_channel_get()
/Zephyr-latest/drivers/sensor/st/lps25hb/
Dlps25hb.c74 val->val1 = raw_val / 40960; in lps25hb_press_convert()
89 val->val1 = (raw_val * 10 / 480 + 425) / 10; in lps25hb_temp_convert()
/Zephyr-latest/drivers/sensor/st/stts751/
Dstts751.c53 val->val1 = raw_val / 256; in stts751_temp_convert()
94 if (val->val1 == stts751_map[odr].rate && in stts751_odr_set()
/Zephyr-latest/drivers/sensor/st/ism330dhcx/
Dism330dhcx.c214 return ism330dhcx_accel_odr_set(dev, val->val1); in ism330dhcx_accel_config()
268 return ism330dhcx_gyro_odr_set(dev, val->val1); in ism330dhcx_gyro_config()
501 val->val1 = data->temp_sample / 256 + 25; in ism330dhcx_gyro_channel_get_temp()
514 val->val1 = (int32_t)dval / 1000000; in ism330dhcx_magn_convert()
583 val->val1 = rh; in ism330dhcx_hum_convert()
605 val->val1 = (raw_val >> 12) / 10; in ism330dhcx_press_convert()
626 val->val1 = raw_val / 100; in ism330dhcx_temp_convert()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160.c514 return bmi160_acc_odr_set(dev, val->val1, val->val2 / 1000); in bmi160_acc_config()
624 ofs_u = ofs->val1 * 1000000ULL + ofs->val2; in bmi160_gyr_ofs_set()
683 return bmi160_gyr_odr_set(dev, val->val1, val->val2 / 1000); in bmi160_gyr_config()
749 val[i].val1 = 0; in bmi160_attr_get()
789 val->val1 = rate_uhz / 1000000; in bmi160_attr_get()
790 val->val2 = rate_uhz - val->val1 * 1000000; in bmi160_attr_get()
808 val->val1 = rate_uhz / 1000000; in bmi160_attr_get()
809 val->val2 = rate_uhz - val->val1 * 1000000; in bmi160_attr_get()
907 val->val1 = converted_val / 1000000; in bmi160_to_fixed_point()
975 val->val1 = temp_micro / 1000000ULL; in bmi160_temp_channel_get()
/Zephyr-latest/drivers/sensor/st/lps22hh/
Dlps22hh.c93 val->val1 = press_tmp / 40960; in lps22hh_press_convert()
105 val->val1 = raw_val / 100; in lps22hh_temp_convert()
163 return lps22hh_odr_set(dev, val->val1); in lps22hh_attr_set()
/Zephyr-latest/drivers/sensor/st/lis3mdl/
Dlis3mdl.c25 val->val1 = raw_val / divider; in lis3mdl_convert()
55 val->val1 += 25; in lis3mdl_channel_get()
/Zephyr-latest/drivers/sensor/ti/ti_hdc/
Dti_hdc.c88 val->val1 = (int32_t)(tmp >> 16) - 40; in ti_hdc_channel_get()
93 val->val1 = tmp >> 16; in ti_hdc_channel_get()
/Zephyr-latest/drivers/sensor/st/lis2dw12/
Dlis2dw12.c91 val->val1 = dval / 1000000LL; in lis2dw12_convert()
105 val->val1 = dval_uc / 1000000LL; in lis2dw12_channel_get_temp()
147 val->val1 = (int32_t)*(uint8_t *)&status; in lis2dw12_channel_get_status()
184 return lis2dw12_set_odr(dev, val->val1); in lis2dw12_config()
196 int64_t nano_ms2 = (ms2->val1 * 1000000LL + ms2->val2) * 1000LL; in sensor_ms2_to_mg()
317 lis2dw12_sleep_on_t sleep_val = val->val1 & 0x03U; in lis2dw12_attr_set_act_mode()
/Zephyr-latest/drivers/sensor/st/iis2dlpc/
Diis2dlpc.c88 val->val1 = dval / 1000000LL; in iis2dlpc_convert()
190 return iis2dlpc_set_odr(dev, val->val1); in iis2dlpc_dev_config()
193 return iis2dlpc_set_slope_th(dev, val->val1); in iis2dlpc_dev_config()
195 return iis2dlpc_set_slope_dur(dev, val->val1); in iis2dlpc_dev_config()
/Zephyr-latest/drivers/sensor/st/lis2mdl/
Dlis2mdl.c41 switch (val->val1) { in lis2mdl_set_odr()
76 offset[i] = val->val1; in lis2mdl_set_hard_iron()
110 pval->val1 = cval / 1000000; in lis2mdl_channel_get_mag()
123 val->val1 = 25 + drv_data->temp_sample / 8; in lis2mdl_channel_get_temp()

12345678910>>...13