Searched refs:temp_dev (Results 1 – 2 of 2) sorted by relevance
| /Zephyr-4.2.1/tests/drivers/sensor/temp_sensor/src/ |
| D | main.c | 11 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-4.2.1/samples/bluetooth/peripheral_ht/src/ |
| D | hts.c | 29 static const struct device *temp_dev = DEVICE_DT_GET_ANY(nordic_nrf_temp); variable 32 static const struct device *temp_dev = DEVICE_DT_GET(DT_ALIAS(dht0)); variable 35 static const struct device *temp_dev; variable 73 if (temp_dev == NULL || !device_is_ready(temp_dev)) { in hts_init() 75 temp_dev = NULL; in hts_init() 77 printk("temp device is %p, name is %s\n", temp_dev, in hts_init() 78 temp_dev->name); in hts_init() 98 if (!temp_dev) { in hts_indicate() 107 r = sensor_sample_fetch(temp_dev); in hts_indicate() 112 r = sensor_channel_get(temp_dev, TEMP_SENSOR_CHAN, &temp_value); in hts_indicate()
|