/Zephyr-latest/drivers/sensor/st/lis2de12/ |
D | lis2de12.c | 141 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/ |
D | main.c | 47 odr_attr.val1 = 104; in main()
|
/Zephyr-latest/drivers/sensor/adi/adxl362/ |
D | adxl362.c | 269 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/ |
D | sht3xd_trigger.c | 22 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/ |
D | hts221.c | 48 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/ |
D | iis2dh.c | 112 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/ |
D | ti_hdc20xx.c | 119 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/ |
D | akm09918c.c | 105 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/ |
D | bma280_trigger.c | 47 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/ |
D | bmp388.c | 210 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/ |
D | counter_ifx_cat1.c | 324 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()
|
D | counter_nrfx_timer.c | 103 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/ |
D | lsm6ds0.c | 238 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/ |
D | bmp180.c | 120 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/ |
D | tsl2540.c | 216 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/ |
D | test_thread_runtime_stats.c | 14 #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/ |
D | sb_tsi.c | 72 val->val1 = data->sample_int; in sb_tsi_channel_get()
|
/Zephyr-latest/drivers/sensor/nuvoton/nuvoton_adc_cmp_npcx/ |
D | adc_cmp_npcx.c | 187 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/ |
D | fxls8974.c | 150 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/ |
D | bma4xx.c | 121 status = bma4xx_odr_to_reg(val->val1 * 1000000 + val->val2, ®_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/ |
D | bme680.c | 283 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/ |
D | mpr.c | 124 val->val1 = value / 1000000; in mpr_channel_get()
|
/Zephyr-latest/drivers/sensor/lm35/ |
D | lm35.c | 62 val->val1 = mv / 10; in lm35_channel_get()
|
/Zephyr-latest/drivers/sensor/sx9500/ |
D | sx9500.c | 71 val->val1 = !!(data->prox_stat & in sx9500_channel_get()
|
/Zephyr-latest/samples/sensor/tmp108/src/ |
D | main.c | 46 printf("Temperature alert config register = %x!\n", temp_flags.val1); in temperature_alert()
|