We use 7 ADC channels in our platform, and the sample rate of channel 0 need for every 15 microseconds. The channel 0 sample period need 3.5 milliseconds (231 sample). (Total sample counts is 66 for 1 millisecond).
Other channels (channel 1 to channel 6) for every 50 milliseconds to get one sample.
How could we implement these by one-shot mode or continuous mode?
When we use one-shot mode, it seen need about 100 microseconds to get one sample value. Do any suggestion to speed up the detection?
The one-shot mode we use the follow code.
fd = open("/sys/bus/iio/devices/iio:device0/in_voltage0_raw", O_RDONLY);
read(fd,tmp,4);
lseek(fd,0,SEEK_SET);