Home
last modified time | relevance | path

Searched refs:val1 (Results 201 – 225 of 304) sorted by relevance

12345678910>>...13

/Zephyr-latest/drivers/sensor/st/lis2de12/
Dlis2de12.c141 return lis2de12_accel_odr_set(dev, val->val1); in lis2de12_accel_config()
225 val->val1 = (int32_t)(dval / 1000000); in lis2de12_accel_convert()
276 val->val1 = micro_c / 1000000 + 25; in lis2de12_temp_channel_get()
/Zephyr-latest/samples/shields/x_nucleo_iks01a2/sensorhub/src/
Dmain.c47 odr_attr.val1 = 104; in main()
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362.c269 out_rate = adxl362_freq_to_odr_val(val->val1, in axl362_acc_config()
294 uint16_t threshold = val->val1; in adxl362_attr_set_thresh()
330 uint16_t timeout = val->val1; in adxl362_attr_set()
608 val->val1 = micro_ms2 / 1000000; in adxl362_accel_convert()
622 val->val1 = milli_c / 1000; in adxl362_temp_convert()
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd_trigger.c22 uval = (uint64_t)(val->val1 + 45) * 1000000U + val->val2; in sht3xd_temp_processed_to_raw()
31 uval = (uint64_t)val->val1 * 1000000U + val->val2; in sht3xd_rh_processed_to_raw()
/Zephyr-latest/drivers/sensor/st/hts221/
Dhts221.c48 val->val1 = conv_val / 8; in hts221_channel_get()
57 val->val1 = conv_val / 2; in hts221_channel_get()
/Zephyr-latest/drivers/sensor/st/iis2dh/
Diis2dh.c112 val->val1 = dval / 1000000LL; in iis2dh_convert()
175 return iis2dh_set_odr(dev, val->val1); in iis2dh_config()
/Zephyr-latest/drivers/sensor/ti/ti_hdc20xx/
Dti_hdc20xx.c119 val->val1 = tmp >> 16; in ti_hdc20xx_channel_get()
126 val->val1 = tmp >> 16; in ti_hdc20xx_channel_get()
/Zephyr-latest/drivers/sensor/asahi_kasei/akm09918c/
Dakm09918c.c105 val->val1 = conv_val / 1000000; in akm09918c_convert()
106 val->val2 = conv_val - (val->val1 * 1000000); in akm09918c_convert()
/Zephyr-latest/drivers/sensor/bosch/bma280/
Dbma280_trigger.c47 slope_th = (uint64_t)val->val1 * 1000000U + (uint64_t)val->val2; in bma280_attr_set()
59 val->val1 << BMA280_SLOPE_DUR_SHIFT) in bma280_attr_set()
/Zephyr-latest/drivers/sensor/bosch/bmp388/
Dbmp388.c210 ret = bmp388_attr_set_odr(dev, val->val1, val->val2 / 1000); in bmp388_attr_set()
216 ret = bmp388_attr_set_oversampling(dev, chan, val->val1); in bmp388_attr_set()
309 val->val1 = tmp / 1000000; in bmp388_temp_channel_get()
384 val->val1 = tmp / 100000; in bmp388_press_channel_get()
/Zephyr-latest/drivers/counter/
Dcounter_ifx_cat1.c324 static uint32_t ifx_cat1_counter_ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in ifx_cat1_counter_ticks_add() argument
330 return (val1 + val2) & top; in ifx_cat1_counter_ticks_add()
333 to_top = top - val1; in ifx_cat1_counter_ticks_add()
335 return (val2 <= to_top) ? (val1 + val2) : (val2 - to_top - 1U); in ifx_cat1_counter_ticks_add()
Dcounter_nrfx_timer.c103 static uint32_t ticks_add(uint32_t val1, uint32_t val2, uint32_t top) in ticks_add() argument
108 return (val1 + val2) & top; in ticks_add()
111 to_top = top - val1; in ticks_add()
113 return (val2 <= to_top) ? val1 + val2 : val2 - to_top; in ticks_add()
/Zephyr-latest/drivers/sensor/st/lsm6ds0/
Dlsm6ds0.c238 val->val1 = (int32_t)dval; in lsm6ds0_accel_convert()
295 val->val1 = (int32_t)dval; in lsm6ds0_gyro_convert()
351 val->val1 = data->temp_sample / 16 + 25; in lsm6ds0_gyro_channel_get_temp()
/Zephyr-latest/drivers/sensor/bosch/bmp180/
Dbmp180.c120 ret = bmp180_attr_set_oversampling(dev, chan, val->val1); in bmp180_attr_set()
302 val->val1 = tmp / 1000000; in bmp180_temp_channel_get()
358 val->val1 = tmp / 1000; in bmp180_press_channel_get()
/Zephyr-latest/drivers/sensor/ams/tsl2540/
Dtsl2540.c216 tsl2540_attr_set_gain(dev, (enum sensor_gain_tsl2540)val->val1); in tsl2540_attr_set()
222 temp = (uint8_t)val->val1; in tsl2540_attr_set()
284 &(struct sensor_value){.val1 = TSL2540_SENSOR_GAIN_1_2, .val2 = 0}); in tsl2540_setup()
/Zephyr-latest/tests/kernel/usage/thread_runtime_stats/src/
Dtest_thread_runtime_stats.c14 #define TEST_WITHIN_X_PERCENT(val1, val2, pcnt) \ argument
15 ((((val1) * 100) < ((val2) * (100 + (pcnt)))) && \
16 (((val1) * 100) > ((val2) * (100 - (pcnt))))) ? true : false
/Zephyr-latest/drivers/sensor/amd_sb_tsi/
Dsb_tsi.c72 val->val1 = data->sample_int; in sb_tsi_channel_get()
/Zephyr-latest/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/
Dadc_cmp_npcx.c187 val->val1); in adc_cmp_npcx_attr_set()
191 config->th_sel, !!val->val1); in adc_cmp_npcx_attr_set()
/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.c150 switch (val->val1) { in fxls8974_set_odr()
295 val->val1 = (int32_t) micro_ms2 / 1000000; in fxls8974_accel_convert()
363 val->val1 = *raw+FXLS8974_ZERO_TEMP; in fxls8974_get_temp_data()
445 struct sensor_value odr = {.val1 = 6, .val2 = 250000}; in fxls8974_init()
/Zephyr-latest/drivers/sensor/bosch/bma4xx/
Dbma4xx.c121 status = bma4xx_odr_to_reg(val->val1 * 1000000 + val->val2, &reg_val); in bma4xx_attr_set_odr()
194 if (val->val2 || val->val1 < BMA4XX_BWP_OSR4_AVG1 || val->val1 > BMA4XX_BWP_RES_AVG128) { in bma4xx_attr_set_bwp()
201 (((uint8_t)val->val1) << BMA4XX_SHIFT_ACC_CONF_BWP)); in bma4xx_attr_set_bwp()
/Zephyr-latest/drivers/sensor/bosch/bme680/
Dbme680.c283 val->val1 = data->calc_temp / 100; in bme680_channel_get()
291 val->val1 = data->calc_press / 1000; in bme680_channel_get()
299 val->val1 = data->calc_humidity / 1000; in bme680_channel_get()
307 val->val1 = data->calc_gas_resistance; in bme680_channel_get()
/Zephyr-latest/drivers/sensor/honeywell/mpr/
Dmpr.c124 val->val1 = value / 1000000; in mpr_channel_get()
/Zephyr-latest/drivers/sensor/lm35/
Dlm35.c62 val->val1 = mv / 10; in lm35_channel_get()
/Zephyr-latest/drivers/sensor/sx9500/
Dsx9500.c71 val->val1 = !!(data->prox_stat & in sx9500_channel_get()
/Zephyr-latest/samples/sensor/tmp108/src/
Dmain.c46 printf("Temperature alert config register = %x!\n", temp_flags.val1); in temperature_alert()

12345678910>>...13