/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/ |
D | npm1300_charger.c | 163 valp->val2 = (int32_t)(fmodf(temp, 1.f) * 1000000.f); in calc_temp() 174 valp->val2 = (temp % 1000) * 1000; in calc_dietemp() 218 valp->val2 = (current % 1000) * 1000; in calc_current() 232 valp->val2 = (tmp % 1000) * 1000; in npm1300_charger_channel_get() 245 valp->val2 = 0; in npm1300_charger_channel_get() 249 valp->val2 = 0; in npm1300_charger_channel_get() 253 valp->val2 = config->current_microamp % 1000000; in npm1300_charger_channel_get() 257 valp->val2 = config->dischg_limit_microamp % 1000000; in npm1300_charger_channel_get() 264 valp->val2 = 0; in npm1300_charger_channel_get() 386 val->val2 = 0U; in npm1300_charger_attr_get() [all …]
|
/Zephyr-latest/drivers/sensor/maxim/max17055/ |
D | max17055.c | 137 val->val2 = (val_millis % 1000) * 1000; in set_millis() 162 valp->val2 = tmp % 1000000; in max17055_channel_get() 167 valp->val2 = tmp % 1000000; in max17055_channel_get() 178 valp->val2 = priv->state_of_charge % 256 * 1000000 / 256; in max17055_channel_get() 182 valp->val2 = priv->internal_temp % 256 * 1000000 / 256; in max17055_channel_get() 195 valp->val2 = 0; in max17055_channel_get() 205 valp->val2 = 0; in max17055_channel_get() 214 valp->val2 = priv->cycle_count % 100 * 10000; in max17055_channel_get() 228 valp->val2 = 0; in max17055_channel_get()
|
/Zephyr-latest/tests/subsys/settings/functional/src/ |
D | settings_basic_test.c | 171 uint8_t val2; member 200 data.val2 = 2; in val2_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() 376 data.val2 = val; in val123_set() [all …]
|
/Zephyr-latest/drivers/sensor/seeed/hm330x/ |
D | hm330x.c | 73 val->val2 = 0; in hm330x_channel_get() 76 val->val2 = 0; in hm330x_channel_get() 79 val->val2 = 0; in hm330x_channel_get()
|
/Zephyr-latest/drivers/sensor/ams/ams_iAQcore/ |
D | iAQcore.c | 79 val->val2 = 0; in iaqcore_channel_get() 83 val->val2 = 0; in iaqcore_channel_get() 87 val->val2 = 0; in iaqcore_channel_get()
|
/Zephyr-latest/drivers/sensor/bosch/bma280/ |
D | bma280.c | 68 val->val2 = raw_val % 1000000; in bma280_channel_accel_convert() 71 if (val->val2 < 0) { in bma280_channel_accel_convert() 73 val->val2 += 1000000; in bma280_channel_accel_convert() 100 val->val2 = 500000 * (drv_data->temp_sample & 1); in bma280_channel_get()
|
/Zephyr-latest/drivers/sensor/ams/ccs811/ |
D | ccs811.c | 178 value += (250000 + humidity->val2) / 500000; in ccs811_envdata_update() 185 humidity->val1, humidity->val2, value); in ccs811_envdata_update() 200 if (temperature->val2 < 0) { in ccs811_envdata_update() 201 value += (250000 + temperature->val2) / 500000; in ccs811_envdata_update() 203 value += (-250000 + temperature->val2) / 500000; in ccs811_envdata_update() 211 temperature->val1, temperature->val2, value); in ccs811_envdata_update() 271 val->val2 = 0; in ccs811_channel_get() 276 val->val2 = 0; in ccs811_channel_get() 286 val->val2 = uval % 1000000; in ccs811_channel_get() 297 val->val2 = uval % 1000000; in ccs811_channel_get()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/standard/src/ |
D | main.c | 74 odr_attr.val2 = 0; in lis2mdl_config() 105 odr_attr.val2 = 0; in lsm6dso16is_config() 123 odr_attr.val2 = 0; in lsm6dso16is_config() 162 odr_attr.val2 = 0; in lsm6dsv16x_config() 180 odr_attr.val2 = 0; in lsm6dsv16x_config() 211 odr_attr.val2 = 0; in lps22df_config() 234 odr_attr.val2 = 0; in lis2duxs12_config()
|
/Zephyr-latest/samples/boards/96boards/argonkey/sensors/src/ |
D | main.c | 29 return (val->val1 + (float)val->val2 / 1000000); in out_ev() 188 a_odr_attr.val2 = 0; in main() 215 g_odr_attr.val2 = 0; in main() 287 prox.val2/10000); in main() 296 temp.val1, temp.val2, press.val1, press.val2); in main() 304 humidity.val1, humidity.val2); in main()
|
/Zephyr-latest/tests/drivers/sensor/akm09918c/src/ |
D | main.c | 73 actual_ugauss = values[0].val1 * INT64_C(1000000) + values[0].val2; in test_fetch_magnetic_field() 79 actual_ugauss = values[1].val1 * INT64_C(1000000) + values[1].val2; in test_fetch_magnetic_field() 85 actual_ugauss = values[2].val1 * INT64_C(1000000) + values[2].val2; in test_fetch_magnetic_field()
|
/Zephyr-latest/drivers/flash/ |
D | flash_hp_ra.h | 15 #define CHECK_EQ(val1, val2) ((val1) == (val2) ? 1 : 0) argument
|
/Zephyr-latest/samples/sensor/tmp116/src/ |
D | main.c | 54 offset_value.val2 = 0; in main() 75 printk("temp is %d.%d oC\n", temp_value.val1, temp_value.val2); in main()
|
/Zephyr-latest/drivers/sensor/st/vl53l1x/ |
D | vl53l1.c | 238 (val->val2 < 0) || in vl53l1x_set_roi() 240 (val->val2 > 255) || in vl53l1x_set_roi() 241 (val->val2 >= val->val1)) { in vl53l1x_set_roi() 249 .BotRightX = val->val2 % 16, in vl53l1x_set_roi() 250 .BotRightY = (uint8_t)(val->val2 / 16), in vl53l1x_set_roi() 277 val->val2 = 0; in vl53l1x_get_mode() 296 val->val2 = (int32_t)((16 * pUserROi.BotRightY) + pUserROi.BotRightX); in vl53l1x_get_roi() 366 val->val2 = 0; in vl53l1x_channel_get()
|
/Zephyr-latest/tests/boards/nrf/qdec/src/ |
D | main.c | 333 zassert_true(val.val2 == 0, "Expected no readings but got: %d", val.val2); in ZTEST() 383 zassert_true(val_first.val2 == val_second.val2, in ZTEST() 385 val_first.val2, in ZTEST() 386 val_second.val2); in ZTEST() 419 zassert_true(val.val2 == 0, "Some readings from QDEC: %d", val.val2); in ZTEST()
|
/Zephyr-latest/samples/sensor/veaa_x_3/src/ |
D | main.c | 33 printk("Valve range: %u to %u kPa\n", range.val1, range.val2); in main() 65 if (setpoint.val1 > range.val2) { in main()
|
/Zephyr-latest/drivers/sensor/tdk/mpu9250/ |
D | mpu9250.c | 65 val->val2 = conv_val % 1000000; in mpu9250_convert_accel() 77 val->val2 = conv_val % 1000000; in mpu9250_convert_gyro() 86 val->val2 = (((int64_t)(raw_val % MPU0259_TEMP_SENSITIVITY) * 1000000) in mpu9250_convert_temp() 89 if (val->val2 < 0) { in mpu9250_convert_temp() 91 val->val2 += 1000000; in mpu9250_convert_temp() 92 } else if (val->val2 >= 1000000) { in mpu9250_convert_temp() 94 val->val2 -= 1000000; in mpu9250_convert_temp()
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/ |
D | main.c | 100 odr_attr.val2 = 0; in lis2mdl_config() 123 odr_attr.val2 = 0; in lps22hh_config() 146 odr_attr.val2 = 0; in stts751_config() 169 odr_attr.val2 = 0; in lis2dw12_config() 200 odr_attr.val2 = 0; in lsm6dso_config() 218 odr_attr.val2 = 0; in lsm6dso_config() 257 odr_attr.val2 = 0; in lis2de12_config()
|
/Zephyr-latest/samples/boards/st/steval_stwinbx1/sensors/src/ |
D | main.c | 86 odr_attr.val2 = 0; in stts22h_config() 109 odr_attr.val2 = 0; in iis2dlpc_config() 140 odr_attr.val2 = 0; in iis2iclx_config() 171 odr_attr.val2 = 0; in iis2mdc_config() 194 odr_attr.val2 = 0; in ism330dhcx_config() 212 odr_attr.val2 = 0; in ism330dhcx_config() 247 odr_attr.val2 = 0; in ilps22qs_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub1/src/ |
D | main.c | 30 odr_attr.val2 = 0; in lsm6dsv16x_config() 48 odr_attr.val2 = 0; in lsm6dsv16x_config() 66 odr_attr.val2 = 0; in lsm6dsv16x_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks4a1/sensorhub2/src/ |
D | main.c | 30 odr_attr.val2 = 0; in lsm6dso16is_config() 48 odr_attr.val2 = 0; in lsm6dso16is_config() 66 odr_attr.val2 = 0; in lsm6dso16is_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/sensorhub/src/ |
D | main.c | 57 odr_attr.val2 = 0; in iis2dlpc_config() 88 odr_attr.val2 = 0; in ism330dhcx_config() 106 odr_attr.val2 = 0; in ism330dhcx_config() 124 odr_attr.val2 = 0; in ism330dhcx_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks02a1/standard/src/ |
D | main.c | 60 odr_attr.val2 = 0; in iis2dlpc_config() 91 odr_attr.val2 = 0; in iis2mdc_config() 114 odr_attr.val2 = 0; in ism330dhcx_config() 132 odr_attr.val2 = 0; in ism330dhcx_config()
|
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/sensorhub/src/ |
D | main.c | 41 odr_attr.val2 = 0; in lis2dw12_config() 72 odr_attr.val2 = 0; in lsm6dso_config() 90 odr_attr.val2 = 0; in lsm6dso_config() 108 odr_attr.val2 = 0; in lsm6dso_config()
|
/Zephyr-latest/drivers/sensor/ti/bq274xx/ |
D | bq274xx.c | 517 val->val2 = ((data->voltage % 1000) * 1000U); in bq274xx_channel_get() 522 val->val2 = ((data->avg_current % 1000) * 1000U); in bq274xx_channel_get() 527 val->val2 = ((data->stdby_current % 1000) * 1000U); in bq274xx_channel_get() 532 val->val2 = ((data->max_load_current % 1000) * 1000U); in bq274xx_channel_get() 541 val->val2 = (int_temp % 100) * 10000; in bq274xx_channel_get() 546 val->val2 = 0; in bq274xx_channel_get() 551 val->val2 = 0; in bq274xx_channel_get() 556 val->val2 = 0; in bq274xx_channel_get() 561 val->val2 = 0; in bq274xx_channel_get() 566 val->val2 = 0; in bq274xx_channel_get() [all …]
|
/Zephyr-latest/drivers/sensor/rohm/bd8lb600fs/ |
D | bd8lb600fs_diagnostics.c | 36 val->val2 = 0; in bd8lb600fs_diagnostics_channel_get() 40 val->val2 = 0; in bd8lb600fs_diagnostics_channel_get()
|