Home
last modified time | relevance | path

Searched refs:dac_dev (Results 1 – 4 of 4) sorted by relevance

/Zephyr-latest/tests/drivers/adc/adc_accuracy_test/src/
Ddac_source.c27 const struct device *const dac_dev = DEVICE_DT_GET(DAC_DEVICE_NODE); in init_dac() local
29 zassert_true(device_is_ready(dac_dev), "DAC device is not ready"); in init_dac()
31 ret = dac_channel_setup(dac_dev, &dac_ch_cfg); in init_dac()
35 return dac_dev; in init_dac()
48 const struct device *dac_dev = init_dac(); in test_dac_to_adc() local
53 ret = dac_write_value(dac_dev, DT_PROP(DT_PATH(zephyr_user), dac_channel_id), write_val); in test_dac_to_adc()
/Zephyr-latest/samples/drivers/dac/src/
Dmain.c26 static const struct device *const dac_dev = DEVICE_DT_GET(DAC_NODE); variable
36 if (!device_is_ready(dac_dev)) { in main()
37 printk("DAC device %s is not ready\n", dac_dev->name); in main()
41 int ret = dac_channel_setup(dac_dev, &dac_ch_cfg); in main()
65 ret = dac_write_value(dac_dev, DAC_CHANNEL_ID, i); in main()
/Zephyr-latest/tests/drivers/dac/dac_api/src/
Dtest_dac.c120 const struct device *const dac_dev = DEVICE_DT_GET(DAC_DEVICE_NODE); in init_dac() local
122 zassert_true(device_is_ready(dac_dev), "DAC device is not ready"); in init_dac()
124 ret = dac_channel_setup(dac_dev, &dac_ch_cfg); in init_dac()
127 return dac_dev; in init_dac()
137 const struct device *dac_dev = init_dac(); in ZTEST() local
140 ret = dac_write_value(dac_dev, DAC_CHANNEL_ID, in ZTEST()
/Zephyr-latest/tests/drivers/dac/dac_loopback/src/
Dtest_dac.c196 const struct device *const dac_dev = DEVICE_DT_GET(DAC_DEVICE_NODE); in init_dac() local
198 zassert_true(device_is_ready(dac_dev), "DAC device is not ready"); in init_dac()
200 ret = dac_channel_setup(dac_dev, &dac_ch_cfg); in init_dac()
203 return dac_dev; in init_dac()
227 const struct device *dac_dev = init_dac(); in test_task_loopback() local
230 if (!dac_dev || !adc_dev) { in test_task_loopback()
235 ret = dac_write_value(dac_dev, DAC_CHANNEL_ID, in test_task_loopback()