Searched refs:adc_dev (Results 1 – 6 of 6) sorted by relevance
/Zephyr-latest/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-latest/tests/drivers/dac/dac_loopback/src/ |
D | test_dac.c | 210 const struct device *const adc_dev = DEVICE_DT_GET(ADC_DEVICE_NODE); in init_adc() local 212 zassert_true(device_is_ready(adc_dev), "ADC device is not ready"); in init_adc() 214 ret = adc_channel_setup(adc_dev, &adc_ch_cfg); in init_adc() 217 return adc_dev; in init_adc() 228 const struct device *adc_dev = init_adc(); in test_task_loopback() local 230 if (!dac_dev || !adc_dev) { in test_task_loopback() 250 ret = adc_read(adc_dev, &sequence); in test_task_loopback()
|
/Zephyr-latest/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-latest/drivers/adc/ |
D | adc_ene_kb1200.c | 30 const struct device *adc_dev; member 94 data->adc_dev = dev; in adc_kb1200_start_read() 200 const struct device *dev = data->adc_dev; in adc_context_start_sampling()
|
D | adc_mchp_xec.c | 81 const struct device *adc_dev; member 110 const struct device *adc_dev = data->adc_dev; in adc_context_start_sampling() local 111 const struct adc_xec_config * const devcfg = adc_dev->config; in adc_context_start_sampling() 423 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()
|