Home
last modified time | relevance | path

Searched refs:sensor_val (Results 1 – 7 of 7) sorted by relevance

/Zephyr-Core-3.5.0/tests/drivers/sensor/ina230/src/
Dina230_test.c46 struct sensor_value sensor_val; in test_datasheet_example() local
59 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_VOLTAGE, &sensor_val)); in test_datasheet_example()
60 actual = sensor_value_to_double(&sensor_val); in test_datasheet_example()
63 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_datasheet_example()
64 actual = sensor_value_to_double(&sensor_val); in test_datasheet_example()
67 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_POWER, &sensor_val)); in test_datasheet_example()
68 actual = sensor_value_to_double(&sensor_val); in test_datasheet_example()
108 struct sensor_value sensor_val; in test_current() local
117 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_current()
118 double current_actual_A = sensor_value_to_double(&sensor_val); in test_current()
[all …]
/Zephyr-Core-3.5.0/tests/drivers/sensor/ina237/src/
Dina237_test.c84 struct sensor_value sensor_val; in test_current() local
93 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_CURRENT, &sensor_val)); in test_current()
94 double current_actual_A = sensor_value_to_double(&sensor_val); in test_current()
116 struct sensor_value sensor_val; in test_bus_voltage() local
123 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_VOLTAGE, &sensor_val)); in test_bus_voltage()
125 double voltage_actual_V = sensor_value_to_double(&sensor_val); in test_bus_voltage()
147 struct sensor_value sensor_val; in test_power() local
158 zassert_ok(sensor_channel_get(fixture->dev, SENSOR_CHAN_POWER, &sensor_val)); in test_power()
159 double power_actual_W = sensor_value_to_double(&sensor_val); in test_power()
183 struct sensor_value sensor_val; in test_temperature() local
[all …]
/Zephyr-Core-3.5.0/tests/drivers/w1/w1_api/src/
Dmain.c137 struct sensor_value sensor_val = {-1, -1}; in ZTEST_USER() local
139 w1_rom_to_sensor_value(&rom_01, &sensor_val); in ZTEST_USER()
140 w1_sensor_value_to_rom(&sensor_val, &rom_x); in ZTEST_USER()
144 w1_rom_to_sensor_value(&rom_02, &sensor_val); in ZTEST_USER()
145 w1_sensor_value_to_rom(&sensor_val, &rom_x); in ZTEST_USER()
149 w1_rom_to_sensor_value(&rom_03, &sensor_val); in ZTEST_USER()
150 w1_sensor_value_to_rom(&sensor_val, &rom_x); in ZTEST_USER()
/Zephyr-Core-3.5.0/samples/sensor/adt7420/src/
Dmain.c55 struct sensor_value sensor_val; in sensor_set_attribute() local
58 sensor_val.val1 = value / UCEL_PER_CEL; in sensor_set_attribute()
59 sensor_val.val2 = value % UCEL_PER_CEL; in sensor_set_attribute()
61 ret = sensor_attr_set(dev, chan, attr, &sensor_val); in sensor_set_attribute()
/Zephyr-Core-3.5.0/drivers/clock_control/
Dnrf_clock_calibration.c189 struct sensor_value sensor_val; in get_temperature() local
194 &sensor_val); in get_temperature()
197 *tvp = sensor_value_to_temp_unit(&sensor_val); in get_temperature()
/Zephyr-Core-3.5.0/tests/net/lib/lwm2m/lwm2m_registry/src/
Dlwm2m_registry.c291 double sensor_val; in ZTEST() local
322 ret = lwm2m_get_f64(&LWM2M_OBJ(3303, 0, 5700), &sensor_val); in ZTEST()
/Zephyr-Core-3.5.0/doc/releases/
Drelease-notes-2.7.rst1913 * :github:`24051` - double to sensor_val