Home
last modified time | relevance | path

Searched refs:val1 (Results 76 – 100 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/samples/sensor/sx9500/src/
Dmain.c27 printk("prox is %d\n", prox_value.val1); in sensor_trigger_handler()
67 printk("prox is %d\n", prox_value.val1); in do_main()
/Zephyr-latest/drivers/sensor/explorir_m/
Dexplorir_m.c144 val->val1 = strtol(&data->read_buffer[EXPLORIR_M_VALUE_INDEX], NULL, 10); in explorir_m_buffer_process()
234 val->val1); in explorir_m_uart_transceive()
237 val->val1, EXPLORIR_M_SEPARATOR_CHAR, val->val2); in explorir_m_uart_transceive()
290 if (val->val1 < 0 || val->val1 > 255) { in explorir_m_attr_set()
324 val->val1 = data->filtered * data->scaling; in explorir_m_channel_get()
368 val.val1 = EXPLORIR_M_MODE_POLL; in explorir_m_init()
/Zephyr-latest/tests/drivers/sensor/akm09918c/src/
Dmain.c73 actual_ugauss = values[0].val1 * INT64_C(1000000) + values[0].val2; in test_fetch_magnetic_field()
79 actual_ugauss = values[1].val1 * INT64_C(1000000) + values[1].val2; in test_fetch_magnetic_field()
85 actual_ugauss = values[2].val1 * INT64_C(1000000) + values[2].val2; in test_fetch_magnetic_field()
/Zephyr-latest/drivers/flash/
Dflash_hp_ra.h15 #define CHECK_EQ(val1, val2) ((val1) == (val2) ? 1 : 0) argument
/Zephyr-latest/samples/sensor/tmp116/src/
Dmain.c53 offset_value.val1 = 0; in main()
75 printk("temp is %d.%d oC\n", temp_value.val1, temp_value.val2); in main()
/Zephyr-latest/drivers/sensor/sensirion/sgp40/
Dsgp40.c74 tmp = (int16_t)CLAMP(val->val1, SGP40_COMP_MIN_T, SGP40_COMP_MAX_T); in sgp40_attr_set()
86 tmp = (uint8_t)CLAMP(val->val1, SGP40_COMP_MIN_RH, SGP40_COMP_MAX_RH); in sgp40_attr_set()
182 val->val1 = data->raw_sample; in sgp40_channel_get()
231 comp_data.val1 = SGP40_COMP_DEFAULT_T; in sgp40_init()
236 comp_data.val1 = SGP40_COMP_DEFAULT_RH; in sgp40_init()
/Zephyr-latest/drivers/sensor/bosch/bmg160/
Dbmg160_trigger.c111 if (val->val1 != 4 && val->val1 != 8 && in bmg160_slope_config()
112 val->val1 != 12 && val->val1 != 16) { in bmg160_slope_config()
117 (val->val1 << BMG160_ANY_DURSAMPLE_POS) & in bmg160_slope_config()
/Zephyr-latest/drivers/sensor/nordic/npm2100_vbat/
Dnpm2100_vbat.c188 valp->val1 = tmp / 1000000; in npm2100_vbat_channel_get()
270 *val = (struct sensor_value){.val1 = adc_cfg->enabled, .val2 = 0}; in npm2100_vbat_attr_get()
283 .val1 = FIELD_GET(ADC_CONFIG_AVG_MASK, adc_cfg->config), .val2 = 0}; in npm2100_vbat_attr_get()
333 val->val1 = val_mv / 1000000; in npm2100_vbat_attr_get()
357 adc_cfg->enabled = val->val1 == 0 ? false : true; in npm2100_vbat_attr_set()
412 ret = linear_range_get_index(&oversample_range, val->val1, &oversample); in npm2100_vbat_attr_set()
484 if ((config->voutmin.val1 != 0) || (config->voutmin.val2 != 0)) { in npm2100_vbat_init()
492 if ((config->vbatmin.val1 != 0) || (config->vbatmin.val2 != 0)) { in npm2100_vbat_init()
553 .voutmin = {.val1 = DT_INST_PROP_OR(n, vout_min_microvolt, 0) / 1000000, \
555 .vbatmin = {.val1 = DT_INST_PROP_OR(n, vbat_min_microvolt, 0) / 1000000, \
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c99 odr_attr.val1 = 100; in lis2mdl_config()
122 odr_attr.val1 = 100; in lps22hh_config()
145 odr_attr.val1 = 16; in stts751_config()
168 odr_attr.val1 = 100; in lis2dw12_config()
199 odr_attr.val1 = 208; in lsm6dso_config()
217 odr_attr.val1 = 208; in lsm6dso_config()
256 odr_attr.val1 = 200; in lis2de12_config()
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/
Dmain.c85 odr_attr.val1 = 100; in stts22h_config()
108 odr_attr.val1 = 200; in iis2dlpc_config()
139 odr_attr.val1 = 200; in iis2iclx_config()
170 odr_attr.val1 = 100; in iis2mdc_config()
193 odr_attr.val1 = 416; in ism330dhcx_config()
211 odr_attr.val1 = 208; in ism330dhcx_config()
246 odr_attr.val1 = 50; in ilps22qs_config()
/Zephyr-latest/tests/drivers/clock_control/nrf_clock_calibration/src/
Dtest_nrf_clock_calibration.c103 struct sensor_value value = { .val1 = 0, .val2 = 0 }; in ZTEST()
124 struct sensor_value value = { .val1 = 0, .val2 = 0 }; in ZTEST()
143 struct sensor_value value = { .val1 = 0, .val2 = 0 }; in ZTEST()
/Zephyr-latest/drivers/sensor/ti/tmp112/
Dtmp112.c82 if (val->val1 == 128) { in tmp112_attr_set()
84 } else if (val->val1 == 150) { in tmp112_attr_set()
99 cr = val->val1 * 1000 + val->val2 / 1000; in tmp112_attr_set()
175 val->val1 = uval / 1000000; in tmp112_channel_get()
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/src/
Dmain.c56 odr_attr.val1 = 100; in iis2dlpc_config()
87 odr_attr.val1 = 208; in ism330dhcx_config()
105 odr_attr.val1 = 208; in ism330dhcx_config()
123 odr_attr.val1 = 100; in ism330dhcx_config()
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/
Dmain.c59 odr_attr.val1 = 100; in iis2dlpc_config()
90 odr_attr.val1 = 100; in iis2mdc_config()
113 odr_attr.val1 = 416; in ism330dhcx_config()
131 odr_attr.val1 = 208; in ism330dhcx_config()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607.c150 val->val1 = data->temperature / 100; in ms5607_channel_get()
154 val->val1 = data->pressure / 100; in ms5607_channel_get()
175 switch (val->val1) { in ms5607_attr_set()
202 LOG_ERR("invalid oversampling rate %d", val->val1); in ms5607_attr_set()
244 val.val1 = MS5607_PRES_OVER_DEFAULT; in ms5607_init()
251 val.val1 = MS5607_TEMP_OVER_DEFAULT; in ms5607_init()
/Zephyr-latest/drivers/sensor/ti/bq274xx/
Dbq274xx.c516 val->val1 = ((data->voltage / 1000)); in bq274xx_channel_get()
521 val->val1 = ((data->avg_current / 1000)); in bq274xx_channel_get()
526 val->val1 = ((data->stdby_current / 1000)); in bq274xx_channel_get()
531 val->val1 = ((data->max_load_current / 1000)); in bq274xx_channel_get()
540 val->val1 = int_temp / 100; in bq274xx_channel_get()
545 val->val1 = data->state_of_charge; in bq274xx_channel_get()
550 val->val1 = data->state_of_health; in bq274xx_channel_get()
555 val->val1 = data->full_charge_capacity; in bq274xx_channel_get()
560 val->val1 = data->remaining_charge_capacity; in bq274xx_channel_get()
565 val->val1 = data->nom_avail_capacity; in bq274xx_channel_get()
[all …]
/Zephyr-latest/drivers/sensor/rohm/bd8lb600fs/
Dbd8lb600fs_diagnostics.c35 val->val1 = data->old; in bd8lb600fs_diagnostics_channel_get()
39 val->val1 = data->ocp_or_tsd; in bd8lb600fs_diagnostics_channel_get()
/Zephyr-latest/drivers/sensor/pms7003/
Dpms7003.c156 val->val1 = drv_data->pm_1_0; in pms7003_channel_get()
159 val->val1 = drv_data->pm_2_5; in pms7003_channel_get()
162 val->val1 = drv_data->pm_10; in pms7003_channel_get()
/Zephyr-latest/drivers/sensor/bosch/bmm150/
Dbmm150.c348 val->val1 = raw_val / 1600; in bmm150_convert()
392 if (val->val1 < 1 || val->val1 > 511) { in bmm150_attr_set_rep()
396 if (bmm150_compute_max_odr(dev, val->val1, 0, in bmm150_attr_set_rep()
411 if (bmm150_write_rep_xy(dev, val->val1) < 0) { in bmm150_attr_set_rep()
419 if (val->val1 < 1 || val->val1 > 256) { in bmm150_attr_set_rep()
423 if (bmm150_compute_max_odr(dev, 0, val->val1, in bmm150_attr_set_rep()
438 if (bmm150_write_rep_z(dev, val->val1) < 0) { in bmm150_attr_set_rep()
469 if (data->max_odr < val->val1) { in bmm150_attr_set()
474 if (bmm150_set_odr(dev, (uint8_t)(val->val1)) < 0) { in bmm150_attr_set()
/Zephyr-latest/drivers/sensor/apds9960/
Dapds9960_trigger.c45 (uint8_t)val->val1)) { in apds9960_attr_set()
54 (uint8_t)val->val1)) { in apds9960_attr_set()
/Zephyr-latest/samples/sensor/amg88xx/src/
Dmain.c41 printk("%05d ", (tv[i].val1 * 100 + tv[i].val2 / 10000)); in print_buffer()
65 .val1 = 27, in main()
/Zephyr-latest/samples/sensor/lis2dh/src/
Dmain.c89 .val1 = 1, in main()
99 printf("Sampling at %u Hz\n", odr.val1); in main()
/Zephyr-latest/tests/drivers/sensor/adltc2990/src/
Dmain.c20 sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000, \
25 (double)(sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000), \
34 sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000, \
39 (double)(sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000), \
50 sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000, \
52 (double)(sensor_val[index].val1 + (float)sensor_val[index].val2 / 1000000));
232 float test_value = voltage_values[0].val1 + (float)voltage_values[0].val2 / 1000000; in ZTEST_F()
237 test_value = voltage_values[1].val1 + (float)voltage_values[1].val2 / 1000000; in ZTEST_F()
466 double test_value = voltage_values[4].val1 + (double)voltage_values[4].val2 / 1000000; in ZTEST_F()
471 zassert_equal(6, voltage_values[4].val1); in ZTEST_F()
/Zephyr-latest/drivers/sensor/ams/ccs811/
Dccs811.c176 int value = 2 * humidity->val1; in ccs811_envdata_update()
185 humidity->val1, humidity->val2, value); in ccs811_envdata_update()
198 int value = 2 * temperature->val1; in ccs811_envdata_update()
211 temperature->val1, temperature->val2, value); in ccs811_envdata_update()
270 val->val1 = rp->co2; in ccs811_channel_get()
275 val->val1 = rp->voc; in ccs811_channel_get()
285 val->val1 = uval / 1000000U; in ccs811_channel_get()
296 val->val1 = uval / 1000000U; in ccs811_channel_get()
/Zephyr-latest/drivers/sensor/ams/tmd2620/
Dtmd2620_trigger.c49 (255 - (uint8_t)val->val1)); in tmd2620_attr_set()
56 return i2c_reg_write_byte_dt(&config->i2c, TMD2620_PILT_REG, (uint8_t)val->val1); in tmd2620_attr_set()

12345678910>>...13