Searched refs:adc_dev (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.5.0/tests/drivers/adc/adc_emul/src/ |
D | main.c | 35 const struct device *const adc_dev = DEVICE_DT_GET(ADC_DEVICE_NODE); in get_adc_device() local 37 zassert_true(device_is_ready(adc_dev), "ADC device is not ready"); in get_adc_device() 39 return adc_dev; in get_adc_device() 52 static void channel_setup(const struct device *adc_dev, enum adc_reference ref, in channel_setup() argument 63 ret = adc_channel_setup(adc_dev, &channel_cfg); in channel_setup() 132 static void start_adc_read(const struct device *adc_dev, uint32_t channel_mask, in start_adc_read() argument 156 ret = adc_read(adc_dev, &sequence); in start_adc_read() 207 const struct device *adc_dev = get_adc_device(); in ZTEST_USER() local 209 channel_setup(adc_dev, ADC_REF_INTERNAL, ADC_GAIN_1, in ZTEST_USER() 213 ret = adc_emul_const_value_set(adc_dev, ADC_1ST_CHANNEL_ID, input_mv); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/adc/adc_dma/src/ |
D | test_adc.c | 144 const struct device *const adc_dev = DEVICE_DT_GET(ADC_DEVICE_NODE); in init_adc() local 146 zassert_true(device_is_ready(adc_dev), "ADC device is not ready"); in init_adc() 148 ret = adc_channel_setup(adc_dev, &m_1st_channel_cfg); in init_adc() 154 ret = adc_channel_setup(adc_dev, &m_2nd_channel_cfg); in init_adc() 174 return adc_dev; in init_adc() 238 const struct device *adc_dev = init_adc(); in test_task_one_channel() local 240 if (!adc_dev) { in test_task_one_channel() 244 ret = adc_read(adc_dev, &sequence); in test_task_one_channel() 271 const struct device *adc_dev = init_adc(); in test_task_two_channels() local 273 if (!adc_dev) { in test_task_two_channels() [all …]
|
/Zephyr-Core-3.5.0/tests/drivers/dac/dac_loopback/src/ |
D | test_dac.c | 211 const struct device *const adc_dev = DEVICE_DT_GET(ADC_DEVICE_NODE); in init_adc() local 213 zassert_true(device_is_ready(adc_dev), "ADC device is not ready"); in init_adc() 215 ret = adc_channel_setup(adc_dev, &adc_ch_cfg); in init_adc() 219 return adc_dev; in init_adc() 230 const struct device *adc_dev = init_adc(); in test_task_loopback() local 232 if (!dac_dev || !adc_dev) { in test_task_loopback() 252 ret = adc_read(adc_dev, &sequence); in test_task_loopback()
|
/Zephyr-Core-3.5.0/tests/drivers/adc/adc_rescale/src/ |
D | main.c | 29 const struct device *const adc_dev = DEVICE_DT_GET(DT_NODELABEL(adc0)); in get_adc_device() local 31 zassert_true(device_is_ready(adc_dev), "ADC device is not ready"); in get_adc_device() 33 return adc_dev; in get_adc_device()
|
/Zephyr-Core-3.5.0/drivers/adc/ |
D | adc_mchp_xec.c | 79 const struct device *adc_dev; member 108 const struct device *adc_dev = data->adc_dev; in adc_context_start_sampling() local 109 const struct adc_xec_config * const devcfg = adc_dev->config; in adc_context_start_sampling() 421 data->adc_dev = dev; in adc_xec_init()
|
D | adc_npcx.c | 112 const struct device *adc_dev; member 240 adc_context_on_sampling_done(&data->ctx, data->adc_dev); in adc_npcx_isr() 382 adc_npcx_start_scan(data->adc_dev); in adc_context_start_sampling() 785 data->adc_dev = dev; in adc_npcx_init()
|