Lines Matching full:adc
7 #include <zephyr/drivers/adc.h>
10 /* ADC node from the devicetree. */
16 /* Data of ADC device specified in devicetree. */
17 static const struct device *adc = DEVICE_DT_GET(ADC_NODE); variable
19 /* Data array of ADC channels for the specified ADC. */
23 /* Data array of ADC channel voltage references. */
50 if (!device_is_ready(adc)) {
51 printf("ADC controller device %s not ready\n", adc->name);
58 err = adc_channel_setup(adc, &channel_cfgs[i]);
64 vrefs_mv[i] = adc_ref_internal(adc);
73 printf("ADC sequence reading [%u]:\n", count++);
76 err = adc_read(adc, &sequence);
86 adc->name, channel_cfgs[channel_index].channel_id,