Home
last modified time | relevance | path

Searched refs:val1 (Results 126 – 150 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/drivers/sensor/ti/tmp114/
Dtmp114.c135 val->val1 = tmp / 1000000; /* uCelsius */ in tmp114_channel_get()
162 val->val1 = data; in tmp114_attr_get()
190 if (val->val1) { in tmp114_attr_set()
/Zephyr-latest/drivers/sensor/hp206c/
Dhp206c.c147 return hp206c_osr_set(dev, val->val1); in hp206c_attr_set()
156 return hp206c_altitude_offs_set(dev, val->val1); in hp206c_attr_set()
229 val->val1 = temp / 1000; in hp206c_val_get()
232 val->val1 = temp / 100; in hp206c_val_get()
/Zephyr-latest/drivers/sensor/st/iis2mdc/
Diis2mdc.c31 switch (val->val1) { in iis2mdc_set_odr()
65 offset[i] = val->val1; in iis2mdc_set_hard_iron()
99 pval->val1 = cval / 1000000; in iis2mdc_channel_get_mag()
111 val->val1 = drv_data->temp_sample / 100; in iis2mdc_channel_get_temp()
/Zephyr-latest/drivers/sensor/vishay/vcnl4040/
Dvcnl4040_trigger.c131 (uint16_t)val->val1)) { in vcnl4040_attr_set()
141 (uint16_t)val->val1)) { in vcnl4040_attr_set()
154 (uint16_t)val->val1)) { in vcnl4040_attr_set()
164 (uint16_t)val->val1)) { in vcnl4040_attr_set()
/Zephyr-latest/drivers/sensor/bosch/bmi160/
Dbmi160_trigger.c202 slope_th_ums2 = val->val1 * 1000000 + val->val2; in bmi160_acc_slope_config()
217 if (val->val1 < 1 || val->val1 > 4) { in bmi160_acc_slope_config()
224 val->val1) < 0) { in bmi160_acc_slope_config()
/Zephyr-latest/drivers/sensor/ite/ite_vcmp_it8xxx2/
Dvcmp_ite_it8xxx2.c173 ret = vcmp_set_threshold(dev, attr, val->val1); in vcmp_ite_it8xxx2_attr_set()
181 reg_val = (val->val1 * VCMP_RESOLUTION / VCMP_MAX_MVOLT); in vcmp_ite_it8xxx2_attr_set()
185 if (!!val->val1) { in vcmp_ite_it8xxx2_attr_set()
235 val->val1 = config->vcmp_ch; in vcmp_it8xxx2_channel_get()
331 val.val1 = config->threshold_mv; in vcmp_it8xxx2_init()
/Zephyr-latest/drivers/sensor/tdk/mpu9250/
Dmpu9250.c64 val->val1 = conv_val / 1000000; in mpu9250_convert_accel()
76 val->val1 = conv_val / 1000000; in mpu9250_convert_gyro()
85 val->val1 = (raw_val / MPU0259_TEMP_SENSITIVITY) + MPU9250_TEMP_OFFSET; in mpu9250_convert_temp()
90 val->val1--; in mpu9250_convert_temp()
93 val->val1++; in mpu9250_convert_temp()
/Zephyr-latest/drivers/sensor/st/lsm9ds0_mfd/
Dlsm9ds0_mfd.c74 if (val->val1 < lsm9ds0_mfd_accel_odr_map[i].freq_int || in lsm9ds0_mfd_accel_set_odr()
75 (val->val1 == lsm9ds0_mfd_accel_odr_map[i].freq_int && in lsm9ds0_mfd_accel_set_odr()
156 if (val->val1 < lsm9ds0_mfd_accel_odr_map[i].freq_int || in lsm9ds0_mfd_magn_set_odr()
157 (val->val1 == lsm9ds0_mfd_accel_odr_map[i].freq_int && in lsm9ds0_mfd_magn_set_odr()
199 if (val->val1 <= lsm9ds0_mfd_magn_fs_map[i].fs) { in lsm9ds0_mfd_magn_set_fs()
375 val->val1 = (int32_t)dval; in lsm9ds0_mfd_convert_accel()
461 val->val1 = (int32_t)dval; in lsm9ds0_mfd_convert_magn()
554 val->val1 = data->sample_temp; in lsm9ds0_mfd_channel_get()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c78 val->val1 = raw_val / 1000000LL; in channel_accel_convert()
88 val->val1 = ((raw_val * (int64_t) range * SENSOR_PI) in channel_gyro_convert()
179 switch (osr->val1) { in set_accel_odr_osr()
196 switch (osr->val1) { in set_accel_odr_osr()
260 switch (range->val1) { in set_accel_range()
373 switch (osr->val1) { in set_gyro_odr_osr()
419 switch (range->val1) { in set_gyro_range()
565 if (val.val1 > 0) { in bmi270_write_anymo_threshold()
616 return bmi270_write_anymo_duration(dev, val->val1); in bmi270_attr_set()
/Zephyr-latest/drivers/sensor/ene_tach_kb1200/
Dtach_ene_kb1200.c99 val->val1 = (60000000 / (config->sample_time_us * data->capture)) / in tach_kb1200_channel_get()
102 val->val1 = 0U; in tach_kb1200_channel_get()
/Zephyr-latest/drivers/sensor/silabs/si7060/
Dsi7060.c84 val->val1 = uval / 10; in si7060_channel_get()
87 LOG_DBG("Temperature = val1:%d, val2:%d", val->val1, val->val2); in si7060_channel_get()
/Zephyr-latest/samples/sensor/mcux_acmp/src/
Dmain.c114 val.val1 = attrs[i].val; in main()
152 acmp_input_handler(val.val1 == 1); in main()
/Zephyr-latest/drivers/sensor/st/lis2dux12/
Dlis2dux12.c116 odr_val = lis2dux12_freq_to_odr_val(dev, val->val1); in lis2dux12_accel_config()
118 LOG_ERR("%d Hz not supported or wrong operating mode.", val->val1); in lis2dux12_accel_config()
122 LOG_DBG("%s: set odr to %d Hz", dev->name, val->val1); in lis2dux12_accel_config()
184 val->val1 = dval / 1000000LL; in lis2dux12_convert()
/Zephyr-latest/drivers/sensor/honeywell/sm351lt/
Dsm351lt.c126 val->val1 = data->sample_status; in sm351lt_channel_get()
146 data->trigger_type = val->val1; in sm351lt_attr_set()
167 val->val1 = data->trigger_type; in sm351lt_attr_get()
/Zephyr-latest/drivers/sensor/bosch/bmp581/
Dbmp581.c270 uint8_t oversampling = osr->val1; in set_osr_config()
318 odr_val = BMP5_SET_BITSLICE(odr_val, BMP5_ODR, odr->val1); in set_odr_config()
375 drv->last_sample.temperature.val1 = data[2]; in bmp581_sample_fetch()
385 drv->last_sample.pressure.val1 = raw_pressure >> 6; in bmp581_sample_fetch()
388 drv->last_sample.pressure.val1 = 0; in bmp581_sample_fetch()
452 dsp_config[1] = iir->val1; in set_iir_config()
488 enum bmp5_powermode powermode = (enum bmp5_powermode)val->val1; in bmp581_attr_set()
/Zephyr-latest/drivers/sensor/nordic/temp/
Dtemp_nrf5.c90 val->val1 = uval / 1000000; in temp_nrf5_channel_get()
93 LOG_DBG("Temperature:%d,%d", val->val1, val->val2); in temp_nrf5_channel_get()
/Zephyr-latest/drivers/sensor/renesas/hs300x/
Dhs300x.c107 val->val1 = micro_c / 1000000; in hs300x_temp_convert()
121 val->val1 = micro_rh / 1000000; in hs300x_rh_convert()
/Zephyr-latest/drivers/sensor/renesas/isl29035/
Disl29035.c56 val->val1 = tmp >> ISL29035_ADC_DATA_BITS; in isl29035_channel_get()
61 val->val1 = drv_data->data_sample; in isl29035_channel_get()
/Zephyr-latest/drivers/sensor/st/lps22hb/
Dlps22hb.c61 val->val1 = (raw_val >> 12) / 10; in lps22hb_press_convert()
70 val->val1 = raw_val / 100; in lps22hb_temp_convert()
/Zephyr-latest/drivers/sensor/st/lsm303dlhc_magn/
Dlsm303dlhc_magn.c54 val->val1 = raw_val / LSM303DLHC_MAGN_LSB_GAUSS_XY; in lsm303dlhc_convert_xy()
61 val->val1 = raw_val / LSM303DLHC_MAGN_LSB_GAUSS_Z; in lsm303dlhc_convert_z()
/Zephyr-latest/drivers/sensor/th02/
Dth02.c111 val->val1 = drv_data->t_sample / 32U - 50; in th02_channel_get()
115 val->val1 = drv_data->rh_sample / 16U - 24; in th02_channel_get()
/Zephyr-latest/drivers/sensor/st/iis328dq/
Diis328dq.c113 val->val1 = dval / 1000000LL; in iis328dq_convert()
173 if (val->val1 < 0 || val->val2 < 0) { in iis328dq_set_threshold()
177 int64_t micro_ms2 = (val->val1 * INT64_C(1000000)) + val->val2; in iis328dq_set_threshold()
234 return iis328dq_set_odr(dev, val->val1); in iis328dq_dev_config()
248 return iis328dq_set_duration(dev, val->val1); in iis328dq_dev_config()
/Zephyr-latest/drivers/sensor/apds9960/
Dapds9960.c127 val->val1 = sys_le16_to_cpu(data->sample_crgb[0]); in apds9960_channel_get()
131 val->val1 = sys_le16_to_cpu(data->sample_crgb[1]); in apds9960_channel_get()
135 val->val1 = sys_le16_to_cpu(data->sample_crgb[2]); in apds9960_channel_get()
139 val->val1 = sys_le16_to_cpu(data->sample_crgb[3]); in apds9960_channel_get()
144 val->val1 = data->pdata; in apds9960_channel_get()
/Zephyr-latest/samples/sensor/ds18b20/src/
Dmain.c61 printk("Temp: %d.%06d\n", temp.val1, temp.val2); in main()
/Zephyr-latest/drivers/sensor/memsic/mc3419/
Dmc3419.c130 ret = mc3419_get_odr_value(val->val1, val->val2); in mc3419_set_odr()
163 if (val->val1 > MC3419_ANY_MOTION_THRESH_MAX) { in mc3419_set_anymotion_threshold()
168 sys_put_le16((uint16_t)val->val1, &buf[1]); in mc3419_set_anymotion_threshold()
230 ret = mc3419_set_accel_range(dev, val->val1); in mc3419_attr_set()

12345678910>>...13