Generic ADC stream

Browse source code on GitHub

Overview

This sample application demonstrates how to use ADC stream APIs.

Building and Running

This sample supports one ADC. ADC needs to be aliased as adc0 in devicetree. For example:

/ {
       aliases {
                       adc0 = &ad4052;
               };
       };

Make sure the aliase are in devicetree, then build and run with:

west build -b <board to use> samples/drivers/adc/adc_stream
west flash

Sample Output

ADC data for adc405@0 (0.000074) 942995000ns
ADC data for adc405@0 (0.000446) 963059000ns
ADC data for adc405@0 (0.000297) 983124000ns
ADC data for adc405@0 (0.000446) 1003189000ns

See also

ADC