/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub1/src/ |
D | main.c | 29 odr_attr.val1 = 208; in lsm6dsv16x_config() 47 odr_attr.val1 = 208; in lsm6dsv16x_config() 65 odr_attr.val1 = 100; in lsm6dsv16x_config() 83 odr_attr.val1 = 12; in lsm6dsv16x_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub2/src/ |
D | main.c | 29 odr_attr.val1 = 208; in lsm6dso16is_config() 47 odr_attr.val1 = 208; in lsm6dso16is_config() 65 odr_attr.val1 = 100; in lsm6dso16is_config() 83 odr_attr.val1 = 12; in lsm6dso16is_config()
|
/Zephyr-latest/drivers/sensor/st/vl53l1x/ |
D | vl53l1.c | 201 switch (val->val1) { in vl53l1x_set_mode() 208 drv_data->distance_mode = val->val1; in vl53l1x_set_mode() 237 if ((val->val1 < 0) || in vl53l1x_set_roi() 239 (val->val1 > 255) || in vl53l1x_set_roi() 241 (val->val2 >= val->val1)) { in vl53l1x_set_roi() 247 .TopLeftX = val->val1 % 16, in vl53l1x_set_roi() 248 .TopLeftY = (uint8_t)(val->val1 / 16), in vl53l1x_set_roi() 276 val->val1 = (int32_t)mode; in vl53l1x_get_mode() 295 val->val1 = (int32_t)((16 * pUserROi.TopLeftY) + pUserROi.TopLeftX); in vl53l1x_get_roi() 364 val->val1 = (int32_t)(drv_data->data.RangeMilliMeter); in vl53l1x_channel_get()
|
/Zephyr-latest/drivers/sensor/adi/adt7310/ |
D | adt7310.c | 149 val->val1 = value / 1000000; in adt7310_channel_get() 181 if (val->val1 > INT32_MAX/1000000 - 1 || val->val1 < INT32_MIN/1000000 + 1) { in adt7310_attr_set() 187 rate = val->val1 * 1000000 + val->val2; in adt7310_attr_set() 203 if (val->val1 < 0 || val->val1 > ADT7310_HYSTERESIS_TEMP_MAX || val->val2 != 0) { in adt7310_attr_set() 206 return adt7310_reg_write(dev, ADT7310_REG_HYST, val->val1); in adt7310_attr_set() 215 value = val->val1 * 1000000 + val->val2; in adt7310_attr_set()
|
/Zephyr-latest/samples/sensor/adc_cmp_npcx/src/ |
D | main.c | 40 val.val1 = ADC_CMP_UPPER_THRESHOLD_MV; in set_upper_threshold() 55 val.val1 = ADC_CMP_LOWER_THRESHOLD_MV; in set_lower_threshold() 69 val.val1 = enable; in enable_threshold()
|
/Zephyr-latest/drivers/sensor/nxp/qdec_mcux/ |
D | qdec_mcux.c | 54 if (!IN_RANGE(val->val1, 1, UINT16_MAX)) { in qdec_mcux_attr_set() 58 data->counts_per_revolution = val->val1; in qdec_mcux_attr_set() 62 int_to_work_mode(val->val1); in qdec_mcux_attr_set() 64 WRITE_BIT(config->base->CTRL, ENC_CTRL_PH1_SHIFT, val->val1); in qdec_mcux_attr_set() 82 val->val1 = data->counts_per_revolution; in qdec_mcux_attr_get() 85 val->val1 = data->qdec_config.decoderWorkMode == in qdec_mcux_attr_get()
|
/Zephyr-latest/drivers/sensor/adi/adt7420/ |
D | adt7420.c | 61 rate = val->val1 * 1000 + val->val2 / 1000; /* rate in mHz */ in adt7420_attr_set() 91 if ((val->val1 > 150) || (val->val1 < -40)) { in adt7420_attr_set() 95 value = (int64_t)val->val1 * 1000000 + val->val2; in adt7420_attr_set() 141 val->val1 = value / 1000000; in adt7420_channel_get()
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/ |
D | main.c | 40 odr_attr.val1 = 100; in lis2dw12_config() 71 odr_attr.val1 = 208; in lsm6dso_config() 89 odr_attr.val1 = 208; in lsm6dso_config() 107 odr_attr.val1 = 100; in lsm6dso_config() 127 odr_attr.val1 = 12; in lsm6dso_config()
|
/Zephyr-latest/drivers/sensor/tdk/icm42688/ |
D | icm42688.c | 28 icm42688_accel_ms(cfg, (int32_t)raw_val, &val->val1, &val->val2); in icm42688_convert_accel() 34 icm42688_gyro_rads(cfg, (int32_t)raw_val, &val->val1, &val->val2); in icm42688_convert_gyro() 39 icm42688_temp_c((int32_t)raw_val, &val->val1, &val->val2); in icm42688_convert_temp() 138 new_config.accel_odr = icm42688_accel_hz_to_reg(val->val1); in icm42688_attr_set() 151 new_config.gyro_odr = icm42688_gyro_odr_to_reg(val->val1); in icm42688_attr_set() 161 if (val->val1 < 0) { in icm42688_attr_set() 164 new_config.batch_ticks = val->val1; in icm42688_attr_set() 220 val->val1 = cfg->batch_ticks; in icm42688_attr_get()
|
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/ |
D | main.c | 29 return (val->val1 + (float)val->val2 / 1000000); in out_ev() 187 a_odr_attr.val1 = 104; in main() 214 g_odr_attr.val1 = 104; in main() 284 printk("proxy: %d ;\n", prox.val1); in main() 286 printk("distance: %d m -- %02d cm;\n", prox.val1, in main() 296 temp.val1, temp.val2, press.val1, press.val2); in main() 304 humidity.val1, humidity.val2); in main()
|
/Zephyr-latest/drivers/sensor/infineon/tle9104/ |
D | tle9104_diagnostics.c | 42 val->val1 = 0; in tle9104_diagnostics_channel_get() 49 val->val1 |= BIT(i); in tle9104_diagnostics_channel_get() 57 val->val1 |= BIT(i); in tle9104_diagnostics_channel_get()
|
/Zephyr-latest/samples/sensor/isl29035/src/ |
D | main.c | 63 int lux = val.val1; in process_sample() 78 lux, last_lux, lo_thr.val1, hi_thr.val1); in process_sample()
|
/Zephyr-latest/drivers/sensor/st/lsm6dsv16x/ |
D | lsm6dsv16x.c | 237 return lsm6dsv16x_accel_odr_set(dev, val->val1); in lsm6dsv16x_accel_config() 239 switch (val->val1) { in lsm6dsv16x_accel_config() 327 return lsm6dsv16x_gyro_odr_set(dev, val->val1); in lsm6dsv16x_gyro_config() 329 switch (val->val1) { in lsm6dsv16x_gyro_config() 411 val->val1 = lsm6dsv16x_odr_map[mode][data->accel_freq]; in lsm6dsv16x_accel_get_config() 422 val->val1 = 0; in lsm6dsv16x_accel_get_config() 425 val->val1 = 1; in lsm6dsv16x_accel_get_config() 428 val->val1 = 3; in lsm6dsv16x_accel_get_config() 431 val->val1 = 4; in lsm6dsv16x_accel_get_config() 434 val->val1 = 5; in lsm6dsv16x_accel_get_config() [all …]
|
/Zephyr-latest/modules/hal_nordic/nrf_802154/sl_opensource/platform/ |
D | nrf_802154_temperature_zephyr.c | 47 if (!err && (value != val.val1)) { in work_handler() 48 value = val.val1; in work_handler()
|
/Zephyr-latest/samples/sensor/adt7420/src/ |
D | main.c | 58 sensor_val.val1 = value / UCEL_PER_CEL; in sensor_set_attribute() 71 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in temp_in_window() 79 int temp_ucel = val->val1 * UCEL_PER_CEL + val->val2; in sensor_set_window() 117 .val1 = TEMP_INITIAL_CEL, in process()
|
/Zephyr-latest/drivers/sensor/maxim/max17055/ |
D | max17055.c | 136 val->val1 = val_millis / 1000; in set_millis() 161 valp->val1 = tmp / 1000000; in max17055_channel_get() 166 valp->val1 = tmp / 1000000; in max17055_channel_get() 177 valp->val1 = priv->state_of_charge / 256; in max17055_channel_get() 181 valp->val1 = priv->internal_temp / 256; in max17055_channel_get() 194 valp->val1 = 0; in max17055_channel_get() 204 valp->val1 = 0; in max17055_channel_get() 213 valp->val1 = priv->cycle_count / 100; in max17055_channel_get() 227 valp->val1 = config->desired_charging_current; in max17055_channel_get()
|
/Zephyr-latest/drivers/sensor/ams/tcs3400/ |
D | tcs3400.c | 151 val->val1 = sys_le16_to_cpu(data->sample_crgb[0]); in tcs3400_channel_get() 155 val->val1 = sys_le16_to_cpu(data->sample_crgb[1]); in tcs3400_channel_get() 159 val->val1 = sys_le16_to_cpu(data->sample_crgb[2]); in tcs3400_channel_get() 163 val->val1 = sys_le16_to_cpu(data->sample_crgb[3]); in tcs3400_channel_get() 184 if (!IN_RANGE(val->val1, 1, 256)) { in tcs3400_attr_set() 187 reg_val = UINT8_MAX - val->val1 + 1; in tcs3400_attr_set()
|
/Zephyr-latest/tests/subsys/settings/functional/src/ |
D | settings_basic_test.c | 170 uint8_t val1; member 183 data.val1 = 1; in val1_set() 258 err = (data.val1 == 1) && (data.val2 == 0) && (data.val3 == 0); in ZTEST() 276 err = (data.val1 == 0) && (data.val2 == 2) && (data.val3 == 0); in ZTEST() 289 err = (data.val1 == 1) && (data.val2 == 2) && (data.val3 == 0); in ZTEST() 306 err = (data.val1 == 0) && (data.val2 == 2) && (data.val3 == 3); in ZTEST() 318 err = (data.val1 == 1) && (data.val2 == 2) && (data.val3 == 3); in ZTEST() 330 err = (data.val1 == 0) && (data.val2 == 2) && (data.val3 == 3); in ZTEST() 342 err = (data.val1 == 0) && (data.val2 == 2) && (data.val3 == 0); in ZTEST() 371 data.val1 = val; in val123_set() [all …]
|
/Zephyr-latest/drivers/sensor/seeed/hm330x/ |
D | hm330x.c | 72 val->val1 = drv_data->pm_1_0_sample; in hm330x_channel_get() 75 val->val1 = drv_data->pm_2_5_sample; in hm330x_channel_get() 78 val->val1 = drv_data->pm_10_sample; in hm330x_channel_get()
|
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/ |
D | iAQcore.c | 78 val->val1 = drv_data->co2; in iaqcore_channel_get() 82 val->val1 = drv_data->voc; in iaqcore_channel_get() 86 val->val1 = drv_data->resistance; in iaqcore_channel_get()
|
/Zephyr-latest/drivers/sensor/bosch/bmc150_magn/ |
D | bmc150_magn.c | 324 val->val1 = raw_val / 1600; in bmc150_magn_convert() 368 if (val->val1 < 1 || val->val1 > 511) { in bmc150_magn_attr_set_rep() 372 if (bmc150_magn_compute_max_odr(dev, val->val1, 0, in bmc150_magn_attr_set_rep() 387 if (bmc150_magn_write_rep_xy(dev, val->val1) < 0) { in bmc150_magn_attr_set_rep() 394 if (val->val1 < 1 || val->val1 > 256) { in bmc150_magn_attr_set_rep() 398 if (bmc150_magn_compute_max_odr(dev, 0, val->val1, in bmc150_magn_attr_set_rep() 413 if (bmc150_magn_write_rep_z(dev, val->val1) < 0) { in bmc150_magn_attr_set_rep() 444 if (data->max_odr < val->val1) { in bmc150_magn_attr_set() 449 if (bmc150_magn_set_odr(dev, (uint8_t)(val->val1)) < 0) { in bmc150_magn_attr_set()
|
/Zephyr-latest/samples/sensor/lps22hh/src/ |
D | main.c | 62 .val1 = 1, in main() 79 attr.val1); in main()
|
/Zephyr-latest/drivers/sensor/memsic/mmc56x3/ |
D | mmc56x3.c | 302 val->val1 = (int32_t)d; in convert_double_to_sensor_val() 305 val->val2 = ((int32_t)(d * precision)) - (val->val1 * precision); in convert_double_to_sensor_val() 375 new_config.magn_odr = val->val1; in mmc56x3_attr_set() 378 new_config.bw0 = val->val1 ? true : false; in mmc56x3_attr_set() 381 new_config.bw1 = val->val1 ? true : false; in mmc56x3_attr_set() 384 new_config.auto_sr = val->val1 ? true : false; in mmc56x3_attr_set() 418 val->val1 = config->magn_odr; in mmc56x3_attr_get() 421 val->val1 = config->bw0; in mmc56x3_attr_get() 424 val->val1 = config->bw1; in mmc56x3_attr_get() 427 val->val1 = config->auto_sr; in mmc56x3_attr_get()
|
/Zephyr-latest/samples/sensor/grove_temperature/src/ |
D | main.c | 71 sprintf(row, "T:%d%cC", temp.val1, in main() 81 printk("Temperature: %d\n", temp.val1); in main()
|
/Zephyr-latest/samples/sensor/sm351lt/src/ |
D | main.c | 30 count, k_uptime_get_32(), mag.val1); in fetch_and_display() 60 .val1 = GPIO_INT_EDGE_BOTH, in main()
|