• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/29-Dec-2025-5747

src/29-Dec-2025-15387

CMakeLists.txtD29-Dec-2025193 95

README.rstD29-Dec-2025872 4330

ad4052-stream.confD29-Dec-2025180 85

max32-stream.confD29-Dec-2025106 41

prj.confD29-Dec-202547 43

sample.yamlD29-Dec-2025791 2726

README.rst

1.. zephyr:code-sample:: adc_stream
2   :name: Generic ADC stream
3   :relevant-api: adc_interface
4
5   Get data from a ADC using stream.
6
7Overview
8********
9
10This sample application demonstrates how to use ADC stream APIs.
11
12Building and Running
13********************
14
15This sample supports one ADC. ADC needs to be aliased as ``adc0`` in devicetree.
16For example:
17
18.. code-block:: devicetree
19
20 / {
21	aliases {
22			adc0 = &ad4052;
23		};
24	};
25
26Make sure the aliases are in devicetree, then build and run with:
27
28.. zephyr-app-commands::
29   :zephyr-app: samples/drivers/adc/adc_stream
30   :board: <board to use>
31   :goals: build flash
32   :compact:
33
34Sample Output
35=============
36
37.. code-block:: console
38
39	ADC data for adc405@0 (0.000074) 942995000ns
40	ADC data for adc405@0 (0.000446) 963059000ns
41	ADC data for adc405@0 (0.000297) 983124000ns
42	ADC data for adc405@0 (0.000446) 1003189000ns
43