Home
last modified time | relevance | path

Searched refs:val2 (Results 176 – 200 of 270) sorted by relevance

1234567891011

/Zephyr-latest/drivers/sensor/jedec/jc42/
Djc42.c87 val->val2 = (temp * 1000000) / JC42_TEMP_SCALE_CEL; in jc42_channel_get()
/Zephyr-latest/drivers/sensor/microchip/mcp970x/
Dmcp970x.c86 val->val2 = 1000 * (t % MC_PER_C); in get()
/Zephyr-latest/drivers/sensor/rpi_pico_temp/
Drpi_pico_temp.c80 val->val2 = work * 1000000 / (-cfg->vbe_slope); in rpi_pico_temp_channel_get()
/Zephyr-latest/drivers/sensor/sensirion/sts4x/
Dsts4x.c125 val->val2 = ((temp % 0xFFFF) * 1000000) / 0xFFFF; in sts4x_channel_get()
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/standard/src/
Dmain.c64 odr_attr.val2 = 0; in main()
/Zephyr-latest/drivers/sensor/ti/tmag5170/
Dtmag5170.c253 output->val2 = result % 100000; in tmag5170_convert_magn_reading_to_gauss()
266 output->val2 = (result % 100000) * 10; in tmag5170_convert_temp_reading_to_celsius()
276 output->val2 = ((chan_reading & 0xF) * 1000000) / 16; in tmag5170_covert_angle_reading_to_degrees()
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c210 ret = bmp388_attr_set_odr(dev, val->val1, val->val2 / 1000); in bmp388_attr_set()
310 val->val2 = tmp % 1000000; in bmp388_temp_channel_get()
385 val->val2 = (tmp % 100000) * 10; in bmp388_press_channel_get()
/Zephyr-latest/drivers/sensor/explorir_m/
Dexplorir_m.c237 val->val1, EXPLORIR_M_SEPARATOR_CHAR, val->val2); in explorir_m_uart_transceive()
325 val->val2 = 0; in explorir_m_channel_get()
/Zephyr-latest/drivers/sensor/ti/opt3001/
Dopt3001.c105 val->val2 = (uval % 100) * 10000; in opt3001_channel_get()
/Zephyr-latest/samples/sensor/lsm6dsl/src/
Dmain.c107 odr_attr.val2 = 0; in main()
/Zephyr-latest/tests/drivers/sensor/hc-sr04/src/
Dmain.c28 zassert_within(value.val2, value2, 10000, "incorrect measurement for value.val2"); \
/Zephyr-latest/drivers/sensor/lm75/
Dlm75.c111 *temp += val->val2 / 100000U; in lm75_sensor_value_to_temp()
125 val->val2 = (temp - val->val1 * 10) * 100000U; in lm75_temp_to_sensor_value()
/Zephyr-latest/drivers/sensor/maxim/ds18b20/
Dds18b20.c92 val->val2 = (temp % 2) * 5000000; in ds18b20_temperature_from_raw()
95 val->val2 = (temp % 16) * 1000000 / 16; in ds18b20_temperature_from_raw()
/Zephyr-latest/drivers/sensor/meas/ms5837/
Dms5837.c179 val->val2 = data->temperature % 100 * 10000; in ms5837_channel_get()
184 val->val2 = data->pressure % 1000 * 1000; in ms5837_channel_get()
/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.c226 val->val2 = (int32_t)(dval % 1000000); in lis2de12_accel_convert()
277 val->val2 = micro_c % 1000000; in lis2de12_temp_channel_get()
/Zephyr-latest/drivers/sensor/nxp/mcux_acmp/
Dmcux_acmp.c134 if (val->val2 != 0) { in mcux_acmp_attr_set()
373 val->val2 = 0; in mcux_acmp_attr_get()
411 val->val2 = 0; in mcux_acmp_channel_get()
/Zephyr-latest/drivers/sensor/grow_r502a/
Dgrow_r502a.c195 .data = { R502A_SETSYSPARAM, val->val1, val->val2} in fps_set_sys_param()
692 val->val2 = sys_get_be16(&rx_packet.data[3]); in fps_search()
785 val->val2 = sys_get_be16(&rx_packet.data[1]); in fps_match_templates()
786 LOG_INF("Fingerprint matched with a score %d", val->val2); in fps_match_templates()
986 val.val2 = LOG2(CONFIG_R502A_DATA_PKT_SIZE >> 5); in fps_init()
1044 return fps_delete_model(dev, val->val1, val->val2); in grow_r502a_attr_set()
/Zephyr-latest/drivers/sensor/current_amp/
Dcurrent_amp.c69 val->val2 = (i_ma % 1000) * 1000; in get()
/Zephyr-latest/drivers/sensor/f75303/
Df75303.c141 val->val2 = (sample & F75303_SAMPLE_FRAC_MASK) * F75303_SAMPLE_MICROCELSIUS_PER_BIT; in f75303_channel_get()
/Zephyr-latest/drivers/sensor/st/qdec_stm32/
Dqdec_stm32.c71 val->val2 = 0; in qdec_stm32_get()
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670_apex.c115 val->val2 = conv_val % 1000000; in icm42670_apex_pedometer_cadence_convert()
/Zephyr-latest/drivers/sensor/asahi_kasei/ak8975/
Dak8975.c58 val->val2 = conv_val % 1000000; in ak8975_convert()
/Zephyr-latest/samples/sensor/grow_r502a/src/
Dmain.c34 printk("confidence : %d\n", find.val2); in finger_find()
/Zephyr-latest/drivers/clock_control/
Dnrf_clock_calibration.c183 return (int16_t)(4 * val->val1 + val->val2 / 250000); in sensor_value_to_temp_unit()
/Zephyr-latest/drivers/sensor/honeywell/hmc5883l/
Dhmc5883l.c26 val->val2 = (((int64_t)raw_val % divider) * 1000000L) / divider; in hmc5883l_convert()

1234567891011