This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于am335x adc 多通道采样



   使用ti驱动 ti_adc.c 及测试程序 generic_buffer ,运行结果如下:  

root@won1101:~# ./generic_buffer1 -n tiadc -l 16 -c 2
iio device number being used is 0
/sys/bus/iio/devices/iio:device0
scan_size 21256
num_channels 4
read size 16
ADC Value: 0
ADC Value: 1094
ADC Value: 791
ADC Value: 708
read size 16
ADC Value: 712
ADC Value: 0
ADC Value: 1096
ADC Value: 796

想知道如何识别出上面的数据对应哪一通道?

从采样的值来看 四个通道的数据排列顺序是随机,没法区分是哪个通道