Home
last modified time | relevance | path

Searched refs:val2 (Results 151 – 175 of 270) sorted by relevance

1234567891011

/Zephyr-latest/drivers/sensor/st/lsm6dso/
Dlsm6dso.c495 val->val2 = (data->temp_sample % 256) * (1000000 / 256); in lsm6dso_gyro_channel_get_temp()
508 val->val2 = (int32_t)dval % 1000000; in lsm6dso_magn_convert()
577 val->val2 = rh * 1000000; in lsm6dso_hum_convert()
599 val->val2 = (raw_val >> 12) % 10 * 100000 + in lsm6dso_press_convert()
620 val->val2 = (int32_t)raw_val % 100 * (10000); in lsm6dso_temp_convert()
/Zephyr-latest/drivers/sensor/st/lsm6dso16is/
Dlsm6dso16is.c528 val->val2 = micro_c % 1000000; in lsm6dso16is_gyro_channel_get_temp()
541 val->val2 = (int32_t)dval % 1000000; in lsm6dso16is_magn_convert()
610 val->val2 = rh * 1000000; in lsm6dso16is_hum_convert()
632 val->val2 = (raw_val >> 12) % 10 * 100000 + in lsm6dso16is_press_convert()
653 val->val2 = (int32_t)raw_val % 100 * (10000); in lsm6dso16is_temp_convert()
/Zephyr-latest/drivers/sensor/ti/tmag5273/
Dtmag5273.c304 val->val2 = 0; in tmag5273_attr_get_xyz_meas_range()
401 val->val2 = 0; in tmag5273_attr_get_xyz_calc()
777 b_field->val2 = ((raw_value - raw_dec_part) * 1000000) / (1 << 16); in tmag5273_channel_b_field_convert()
794 temperature->val2 = value % 1000000; in tmag5273_temperature_convert()
806 angle->val2 = ((raw_value & 0xF) * 1000000) >> 1; in tmag5273_angle_convert()
881 val[val_offset].val2 = 0; in tmag5273_channel_get()
/Zephyr-latest/drivers/sensor/ene_tach_kb1200/
Dtach_ene_kb1200.c104 val->val2 = 0U; in tach_kb1200_channel_get()
/Zephyr-latest/drivers/sensor/ltrf216a/
Dltrf216a.c133 val->val2 = microlux % 1000000; in ltrf216a_channel_get()
/Zephyr-latest/drivers/sensor/maxim/max31790/
Dmax31790_fan_speed.c104 val->val2 = 0; in max31790_fan_speed_channel_get()
/Zephyr-latest/drivers/sensor/microchip/mcp9600/
Dmcp9600.c102 val->val2 = data->temp % 1000000; in mcp9600_channel_get()
/Zephyr-latest/drivers/sensor/qdec_sam/
Dqdec_sam.c58 val->val2 = 0; in qdec_sam_get()
/Zephyr-latest/drivers/sensor/seeed/grove/
Dlight_sensor.c76 val->val2 = ((int32_t)(dval * 1000000)) % 1000000; in gls_channel_get()
Dtemperature_sensor.c78 val->val2 = ((int32_t)(dval * 1000000)) % 1000000; in gts_channel_get()
/Zephyr-latest/drivers/sensor/aosong/ags10/
Dags10.c80 val->val2 = 0; in ags10_channel_get()
/Zephyr-latest/samples/sensor/mcux_acmp/src/
Dmain.c112 val.val2 = 0; in main()
/Zephyr-latest/drivers/sensor/ti/ina226/
Dina226.c99 val->val2 = value_microX % 1000000L; in micro_s32_to_sensor_value()
237 val->val2 = 0; in ina226_attr_get()
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.c62 val->val2 = TCN75A_FIXED_PT_TO_SENSOR(temp_lsb); in tcn75a_channel_get()
/Zephyr-latest/drivers/sensor/ti/tmp007/
Dtmp007.c93 val->val2 = uval % 1000000; in tmp007_channel_get()
/Zephyr-latest/drivers/sensor/amg88xx/
Damg88xx.c60 val[idx].val2 = (((int32_t)drv_data->sample[idx]) * in amg88xx_channel_get()
/Zephyr-latest/samples/sensor/tdk_apex/src/
Dmain.c93 apex_mode.val2 = 0; in main()
/Zephyr-latest/drivers/sensor/nxp/mcux_lpcmp/
Dmcux_lpcmp.c66 if (val->val2 != 0) { in mcux_lpcmp_attr_set()
266 val->val2 = 0; in mcux_lpcmp_attr_get()
298 val->val2 = 0; in mcux_lpcmp_channel_get()
/Zephyr-latest/drivers/sensor/meas/ms5607/
Dms5607.c151 val->val2 = data->temperature % 100 * 10000; in ms5607_channel_get()
155 val->val2 = data->pressure % 100 * 10000; in ms5607_channel_get()
/Zephyr-latest/drivers/sensor/mhz19b/
Dmhz19b.c162 val->val2 = 0; in mhz19b_channel_get()
236 val->val2 = 0; in mhz19b_attr_get()
/Zephyr-latest/drivers/sensor/st/vl53l0x/
Dvl53l0x.c287 val->val2 = 0; in vl53l0x_channel_get()
290 val->val2 = (drv_data->RangingMeasurementData.RangeMilliMeter % 1000) * 1000; in vl53l0x_channel_get()
/Zephyr-latest/drivers/sensor/apds9306/
Dapds9306.c202 value->val2 = 0; in apds9306_attr_get()
260 value->val2 = 0; in apds9306_channel_get()
/Zephyr-latest/drivers/sensor/bosch/bmg160/
Dbmg160.c232 val->val2 = (raw % 2) * 500000; in bmg160_to_fixed_point()
237 val->val2 = converted_val % 1000000; in bmg160_to_fixed_point()
/Zephyr-latest/drivers/sensor/st/lsm6dsl/
Dlsm6dsl.c572 val->val2 = (data->temp_sample % 256) * (1000000 / 256); in lsm6dsl_gyro_channel_get_temp()
585 val->val2 = (int32_t)dval % 1000000; in lsm6dsl_magn_convert()
641 val->val2 = (raw_val >> 12) % 10 * 100000 + in lps22hb_press_convert()
650 val->val2 = (int32_t)raw_val % 100 * (10000); in lps22hb_temp_convert()
/Zephyr-latest/drivers/sensor/bosch/bmi270/
Dbmi270.c79 val->val2 = raw_val % 1000000LL; in channel_accel_convert()
90 val->val2 = ((raw_val * (int64_t) range * SENSOR_PI) in channel_gyro_convert()
567 val.val2 = 1e6; in bmi270_write_anymo_threshold()
571 uint16_t lsbs = (val.val2 * BMI270_ANYMO_2_THRESHOLD_MASK) / 1e6; in bmi270_write_anymo_threshold()

1234567891011