Home
last modified time | relevance | path

Searched refs:temp_dev (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/tests/drivers/sensor/temp_sensor/src/
Dmain.c11 static const struct device *temp_dev = DEVICE_DT_GET(DT_NODELABEL(temp_sensor)); variable
26 rc = sensor_sample_fetch_chan(temp_dev, chan_to_use); in ZTEST()
29 rc = sensor_channel_get(temp_dev, chan_to_use, &val); in ZTEST()
49 static void trigger_handler(const struct device *temp_dev, in trigger_handler() argument
52 ARG_UNUSED(temp_dev); in trigger_handler()
68 rc = sensor_trigger_set(temp_dev, &trig, NULL); in ZTEST()
74 rc = sensor_channel_get(temp_dev, chan_to_use, &val); in ZTEST()
80 rc = sensor_attr_set(temp_dev, chan_to_use, in ZTEST()
86 rc = sensor_attr_set(temp_dev, chan_to_use, in ZTEST()
93 rc = sensor_attr_set(temp_dev, chan_to_use, in ZTEST()
[all …]
/Zephyr-latest/samples/bluetooth/peripheral_ht/src/
Dhts.c29 static const struct device *temp_dev = DEVICE_DT_GET_ANY(nordic_nrf_temp); variable
31 static const struct device *temp_dev; variable
68 if (temp_dev == NULL || !device_is_ready(temp_dev)) { in hts_init()
70 temp_dev = NULL; in hts_init()
72 printk("temp device is %p, name is %s\n", temp_dev, in hts_init()
73 temp_dev->name); in hts_init()
93 if (!temp_dev) { in hts_indicate()
102 r = sensor_sample_fetch(temp_dev); in hts_indicate()
107 r = sensor_channel_get(temp_dev, SENSOR_CHAN_DIE_TEMP, in hts_indicate()