Home
last modified time | relevance | path

Searched refs:val1 (Results 101 – 125 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/tests/drivers/sensor/bmi160/src/
Dfixture.c26 scale.val1 = 39; in sensor_bmi160_setup_emulator()
31 scale.val1 = 2; in sensor_bmi160_setup_emulator()
/Zephyr-latest/samples/boards/st/sensortile_box/src/
Dmain.c98 odr_attr.val1 = 50; in lps22hh_config()
121 odr_attr.val1 = 100; in lis2dw12_config()
152 odr_attr.val1 = 208; in lsm6dso_config()
170 odr_attr.val1 = 208; in lsm6dso_config()
209 odr_attr.val1 = 16; in stts751_config()
232 odr_attr.val1 = 1000; /* enable sensor at 1KHz */ in iis3dhhc_config()
/Zephyr-latest/samples/boards/st/sensortile_box_pro/sensors-on-board/src/
Dmain.c93 odr_attr.val1 = 50; in lps22df_config()
116 odr_attr.val1 = 208; in lsm6dsv16x_config()
134 odr_attr.val1 = 208; in lsm6dsv16x_config()
173 odr_attr.val1 = 100; in lis2mdl_config()
196 odr_attr.val1 = 400; in lis2du12_config()
219 odr_attr.val1 = 100; in stts22h_config()
/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina230.c40 val->val1 = bus_uv / 1000000U; in ina230_channel_get()
49 val->val1 = current_ua / 1000000L; in ina230_channel_get()
57 val->val1 = (int32_t)(power_uw / 1000000U); in ina230_channel_get()
111 uint16_t data = val->val1; in ina230_attr_set()
165 val->val1 = data; in ina230_attr_get()
/Zephyr-latest/drivers/sensor/bosch/bma280/
Dbma280.c67 val->val1 = raw_val / 1000000; in bma280_channel_accel_convert()
72 val->val1 -= 1; in bma280_channel_accel_convert()
99 val->val1 = (drv_data->temp_sample >> 1) + 23; in bma280_channel_get()
/Zephyr-latest/drivers/sensor/maxim/max31875/
Dmax31875.c137 if (val->val1 == 128) { in max31875_attr_set()
139 } else if (val->val1 == 150) { in max31875_attr_set()
153 cr = val->val1 * 1000 + val->val2 / 1000; in max31875_attr_set()
234 val->val1 = uval / 1000000; in max31875_channel_get()
/Zephyr-latest/drivers/sensor/apds9253/
Dapds9253.c106 val->val1 = sys_le32_to_cpu(data->sample_crgb[0]); in apds9253_channel_get()
109 val->val1 = sys_le32_to_cpu(data->sample_crgb[1]); in apds9253_channel_get()
112 val->val1 = sys_le32_to_cpu(data->sample_crgb[2]); in apds9253_channel_get()
115 val->val1 = sys_le32_to_cpu(data->sample_crgb[3]); in apds9253_channel_get()
/Zephyr-latest/drivers/sensor/ti/tmag5273/
Dtmag5273.c256 if (val->val1 >= range_high) { in tmag5273_attr_set_xyz_meas_range()
299 val->val1 = tmag5273_range_high(drv_data->version); in tmag5273_attr_get_xyz_meas_range()
301 val->val1 = tmag5273_range_low(drv_data->version); in tmag5273_attr_get_xyz_meas_range()
325 switch (val->val1) { in tmag5273_attr_set_xyz_calc()
351 LOG_ERR("unknown attribute value %d", val->val1); in tmag5273_attr_set_xyz_calc()
387 val->val1 = TMAG5273_ANGLE_CALC_XY; in tmag5273_attr_get_xyz_calc()
390 val->val1 = TMAG5273_ANGLE_CALC_YZ; in tmag5273_attr_get_xyz_calc()
393 val->val1 = TMAG5273_ANGLE_CALC_XZ; in tmag5273_attr_get_xyz_calc()
398 val->val1 = TMAG5273_ANGLE_CALC_NONE; in tmag5273_attr_get_xyz_calc()
770 b_field->val1 = raw_value / (1 << 16); in tmag5273_channel_b_field_convert()
[all …]
/Zephyr-latest/samples/sensor/co2_polling/src/
Dmain.c26 LOG_INF("CO2 %d ppm", value.val1); in main()
/Zephyr-latest/drivers/sensor/maxim/max6675/
Dmax6675.c79 val->val1 = temperature / 100; in max6675_channel_get()
80 val->val2 = (temperature - val->val1 * 100) * 10000; in max6675_channel_get()
/Zephyr-latest/samples/sensor/lsm6dso/src/
Dmain.c14 return (val->val1 + (float)val->val2 / 1000000); in out_ev()
51 odr_attr.val1 = 12.5; in set_sampling_freq()
/Zephyr-latest/drivers/sensor/ite/ite_tach_it8xxx2/
Dtach_ite_it8xxx2.c163 val->val1 = (60 * TACH_FREQ / 128 / p / (data->capture)); in tach_it8xxx2_channel_get()
170 val->val1 = ((data->capture) * 120 / (p * 2)); in tach_it8xxx2_channel_get()
173 val->val1 = 0U; in tach_it8xxx2_channel_get()
/Zephyr-latest/drivers/sensor/ens160/
Dens160.c29 if (!IN_RANGE(val->val1, -5, 60)) { in ens160_set_temperature()
57 if (!IN_RANGE(val->val1, 20, 80)) { in ens160_set_humidity()
141 val->val1 = data->eco2; in ens160_channel_get()
145 val->val1 = data->tvoc; in ens160_channel_get()
149 val->val1 = data->aqi; in ens160_channel_get()
/Zephyr-latest/drivers/sensor/apds9306/
Dapds9306.c150 temp = FIELD_PREP(0x07, value->val1); in apds9306_attr_set()
154 temp = FIELD_PREP(0x07, value->val1); in apds9306_attr_set()
158 temp = FIELD_PREP(0x07, value->val1) << 0x04; in apds9306_attr_set()
201 value->val1 = (temp >> mask) & 0x07; in apds9306_attr_get()
259 value->val1 = data->light; in apds9306_channel_get()
/Zephyr-latest/samples/sensor/max30101/src/
Dmain.c30 printf("GREEN=%d\n", green.val1); in main()
/Zephyr-latest/drivers/sensor/silabs/si7055/
Dsi7055.c110 val->val1 = temp_ucelcius / SI7055_DIVIDER; in si7055_channel_get()
114 val->val1, val->val2); in si7055_channel_get()
/Zephyr-latest/drivers/sensor/ti/tmp1075/
Dtmp1075.c71 return set_threshold_attribute(dev, TMP1075_REG_TLOW, val->val1 << 8, in tmp1075_attr_set()
75 return set_threshold_attribute(dev, TMP1075_REG_THIGH, val->val1 << 8, in tmp1075_attr_set()
94 val->val1 = value >> 8; in get_threshold_attribute()
148 val->val1 = uval / uCELSIUS_IN_CELSIUS; in tmp1075_channel_get()
/Zephyr-latest/drivers/sensor/espressif/pcnt_esp32/
Dpcnt_esp32.c113 val->val1 = config->unit_config[0].count_val_acc + config->unit_config[0].offset; in pcnt_esp32_channel_get()
197 unit_config->l_thr = val->val1; in pcnt_esp32_attr_set_thresh()
202 unit_config->h_thr = val->val1; in pcnt_esp32_attr_set_thresh()
224 unit_config->offset = val->val1; in pcnt_esp32_attr_set_offset()
261 val->val1 = config->unit_config[0].l_thr; in pcnt_esp32_attr_get()
264 val->val1 = config->unit_config[0].h_thr; in pcnt_esp32_attr_get()
267 val->val1 = config->unit_config[0].offset; in pcnt_esp32_attr_get()
/Zephyr-latest/drivers/sensor/st/stts22h/
Dstts22h.c57 val->val1 = raw_val / 100; in stts22h_temp_convert()
85 if (val->val1 <= stts22h_map[odr]) { in stts22h_odr_set()
104 LOG_ERR("bad frequency: %d (odr = %d)", val->val1, odr); in stts22h_odr_set()
/Zephyr-latest/samples/sensor/max44009/src/
Dmain.c42 lum = val.val1; in main()
/Zephyr-latest/drivers/sensor/nct75/
Dnct75.c78 val->val1 = data->value / (1000 * 1000); in nct75_channel_get()
79 val->val2 = data->value - val->val1 * 1000 * 1000; in nct75_channel_get()
/Zephyr-latest/doc/hardware/peripherals/sensor/
Dattributes.rst32 …printk("Sample rate for accel %p is %d.06%d\n", accel_dev, accel_sample_rate.val1, accel_sample_ra…
34 accel_sample_rate.val1 = 2000;
/Zephyr-latest/samples/sensor/mcux_lpcmp/src/
Dmain.c89 val.val1 = attrs[i].val; in main()
127 lpcmp_input_handler(val.val1 == 1); in main()
/Zephyr-latest/samples/sensor/mpr/src/
Dmain.c37 printf("pressure: %u.%u kPa\n", pressure.val1, pressure.val2); in main()
/Zephyr-latest/samples/sensor/vl53l0x/src/
Dmain.c32 printk("prox is %d\n", value.val1); in main()

12345678910>>...13