Home
last modified time | relevance | path

Searched refs:val1 (Results 176 – 200 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/drivers/sensor/ti/ina23x/
Dina237.c36 val->val1 = value_microX / 1000000L; in micro_s32_to_sensor_value()
42 val->val1 = value_microX / 1000000U; in micro_u64_to_sensor_value()
225 uint16_t data = val->val1; in ina237_attr_set()
263 val->val1 = data; in ina237_attr_get()
/Zephyr-latest/drivers/sensor/ti/ina226/
Dina226.c98 val->val1 = value_microX / 1000000L; in micro_s32_to_sensor_value()
198 uint16_t data = val->val1; in ina226_attr_set()
236 val->val1 = data; in ina226_attr_get()
/Zephyr-latest/drivers/sensor/ti/ina3221/
Dina3221.c262 if (val->val1 < 1 || val->val1 > 3) { in ina3221_attr_set()
266 data->selected_channel = val->val1 - 1; in ina3221_attr_set()
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh.c45 val->val1 = converted_val / 1000000; in lis2dh_convert()
72 lis2dh->temperature.val1 = (int32_t)((int8_t)raw[1]); in lis2dh_sample_fetch_temp()
80 if (lis2dh->temperature.val1 < 0) { in lis2dh_sample_fetch_temp()
286 return lis2dh_acc_odr_set(dev, val->val1); in lis2dh_acc_config()
295 return lis2dh_acc_hp_filter_set(dev, val->val1); in lis2dh_acc_config()
Dlis2dh_trigger.c313 slope_th_ums2 = val->val1 * 1000000 + val->val2; in lis2dh_acc_slope_config()
342 if (val->val1 < 0 || val->val1 > 127) { in lis2dh_acc_slope_config()
346 LOG_INF("int2_dur=0x%x", val->val1); in lis2dh_acc_slope_config()
353 val->val1); in lis2dh_acc_slope_config()
358 val->val1); in lis2dh_acc_slope_config()
/Zephyr-latest/drivers/sensor/adi/adltc2990/
Dadltc2990.c118 val[index].val1 = data->pins_v1_v2_values[index] / 1000000; in adltc2990_get_v1_v2_val()
132 val[index + offset_index].val1 = data->pins_v3_v4_values[index] / 1000000; in adltc2990_get_v3_v4_val()
437 val->val1 = (data->internal_temperature) / 1000000; in adltc2990_channel_get()
439 LOG_DBG("Internal Temperature Value is:%d.%d", val->val1, val->val2); in adltc2990_channel_get()
458 val[num_values_v1_v2 + num_values_v3_v4].val1 = data->supply_voltage / 1000000; in adltc2990_channel_get()
/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c205 return lsm6dso_accel_odr_set(dev, val->val1); in lsm6dso_accel_config()
259 return lsm6dso_gyro_odr_set(dev, val->val1); in lsm6dso_gyro_config()
494 val->val1 = data->temp_sample / 256 + 25; in lsm6dso_gyro_channel_get_temp()
507 val->val1 = (int32_t)dval / 1000000; in lsm6dso_magn_convert()
576 val->val1 = rh; in lsm6dso_hum_convert()
598 val->val1 = (raw_val >> 12) / 10; in lsm6dso_press_convert()
619 val->val1 = raw_val / 100; in lsm6dso_temp_convert()
/Zephyr-latest/drivers/sensor/microchip/mchp_tach_xec/
Dtach_mchp_xec.c101 val->val1 = (SEC_TO_MINUTE * COUNT_100KHZ_SEC)/data->count; in tach_xec_channel_get()
104 val->val1 = 0U; in tach_xec_channel_get()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a_trigger.c69 tx_buf[1] = (uint8_t)val->val1; in tcn75a_attr_set()
112 val->val1 = limit >> TCN75A_TEMP_MSB_POS; in tcn75a_attr_get()
/Zephyr-latest/drivers/sensor/nxp/nxp_kinetis_temp/
Dtemp_kinetis.c107 val->val1 = vdd_mv / 1000; in temp_kinetis_channel_get()
128 val->val1 = temp_cc / 100; in temp_kinetis_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd.c144 val->val1 = (int32_t)(tmp / 0xFFFF) - 45; in sht3xd_channel_get()
149 val->val1 = tmp2 / 0xFFFF; in sht3xd_channel_get()
/Zephyr-latest/drivers/sensor/st/iis3dhhc/
Diis3dhhc.c46 val->val1 = micro_ms2 / 1000000LL; in iis3dhhc_convert()
104 switch (val->val1) { in iis3dhhc_odr_set()
/Zephyr-latest/drivers/sensor/st/vl53l0x/
Dvl53l0x.c283 val->val1 = 1; in vl53l0x_channel_get()
285 val->val1 = 0; in vl53l0x_channel_get()
289 val->val1 = drv_data->RangingMeasurementData.RangeMilliMeter / 1000; in vl53l0x_channel_get()
/Zephyr-latest/drivers/sensor/bosch/bmg160/
Dbmg160.c167 idx = bmg160_is_val_valid(val->val1, in bmg160_attr_set()
231 val->val1 = 23 + (raw / 2); in bmg160_to_fixed_point()
236 val->val1 = converted_val / 1000000; in bmg160_to_fixed_point()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl.c232 return lsm6dsl_accel_odr_set(dev, val->val1); in lsm6dsl_accel_config()
295 return lsm6dsl_gyro_odr_set(dev, val->val1); in lsm6dsl_gyro_config()
571 val->val1 = data->temp_sample / 256 + 25; in lsm6dsl_gyro_channel_get_temp()
584 val->val1 = (int32_t)dval / 1000000; in lsm6dsl_magn_convert()
640 val->val1 = (raw_val >> 12) / 10; in lps22hb_press_convert()
649 val->val1 = raw_val / 100; in lps22hb_temp_convert()
/Zephyr-latest/drivers/sensor/maxim/max31790/
Dmax31790_fan_fault.c47 val->val1 = data->value; in max31790_fan_fault_channel_get()
/Zephyr-latest/samples/sensor/qdec/src/
Dmain.c108 printk("Position = %d degrees\n", val.val1);
/Zephyr-latest/drivers/sensor/st/lis2ds12/
Dlis2ds12.c138 LOG_DBG("%s: set odr to %d Hz", dev->name, val->val1); in lis2ds12_accel_config()
139 return lis2ds12_set_odr(dev, LIS2DS12_ODR_TO_REG(val->val1)); in lis2ds12_accel_config()
221 val->val1 = dval / 1000000LL; in lis2ds12_convert()
/Zephyr-latest/drivers/sensor/sensirion/shtcx/
Dshtcx.c54 val->val1 = tmp / 0x10000; in shtcx_temperature_from_raw()
65 val->val1 = tmp / 0x10000; in shtcx_humidity_from_raw()
/Zephyr-latest/samples/sensor/accel_polling/src/
Dmain.c169 if (ret != 0 || (odr.val1 == 0 && odr.val2 == 0)) { in set_sampling_freq()
170 odr.val1 = 100; in set_sampling_freq()
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/
Dreel_board.c355 val[0].val1, val[0].val2 / 100000); in show_sensors_data()
359 val[1].val1); in show_sensors_data()
384 len = snprintf(str_buf, sizeof(str_buf), "Light :%d\n", val[0].val1); in show_sensors_data()
386 len = snprintf(str_buf, sizeof(str_buf), "Proximity:%d\n", val[1].val1); in show_sensors_data()
/Zephyr-latest/drivers/counter/
Dcounter_nxp_s32_sys_timer.c83 static uint32_t ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in ticks_add() argument
88 return (val1 + val2) & top; in ticks_add()
92 to_top = top - val1; in ticks_add()
94 return (val2 <= to_top) ? val1 + val2 : val2 - to_top; in ticks_add()
/Zephyr-latest/subsys/sensing/
Dsensor_mgmt.c88 odr.val1 = USEC_PER_SEC / interval; in set_arbitrate_interval()
160 struct sensor_value threshold = {.val1 = sensitivity}; in set_arbitrate_sensitivity()
167 threshold.val1 = MIN(sensor->sensitivity[i], threshold.val1); in set_arbitrate_sensitivity()
/Zephyr-latest/drivers/sensor/ams/ams_as5600/
Dams_as5600.c61 val->val1 = ((int32_t)dev_data->position * AS5600_FULL_ANGLE) / in as5600_get()
/Zephyr-latest/drivers/sensor/lm75/
Dlm75.c110 *temp = val->val1 * 10; in lm75_sensor_value_to_temp()
122 val->val1 = temp / 10; in lm75_temp_to_sensor_value()
125 val->val2 = (temp - val->val1 * 10) * 100000U; in lm75_temp_to_sensor_value()

12345678910>>...13