Timestamp for IIO Buffer

cancel
Showing results for 
Search instead for 
Did you mean: 

Timestamp for IIO Buffer

1,005 Views
mathew_k_t
Contributor II

Hi,

I would like to monitor the timestamp for my IIO Buffer. For that, I enabled IIO_CHAN_SOFT_TIMESTAMP(index).

So it created timestamp entry in  the scan_elements.

I found timestamp values are getting added with the buffer using debug prints. But when I read using a user-space application(iio_generic_buffer) this timestamp values are not visible. Is there any other settings to enable timestamp for  IIO buffer.

Please provide me some guidelines/steps to enable timestamp for IIO buffer.

Thanks in advance.

Labels (3)
0 Kudos
1 Reply

823 Views
b36401
NXP TechSupport
NXP TechSupport

IIO subsystem provides 2 ways to program the ADC and read the values:
1. One-shot conversions performed by reading the files in /sys/bus/iio/devices/iio\:device0/
2. Continuous conversions of a single channel at a time using the /dev/iio:device0 character device file

Please pay attention to iioutils package
http://sourceforge.net/projects/iioutils/
It provides these services. You can get the code from it.

Also here you can find some examples regarding to IIO:
http://processors.wiki.ti.com/index.php/AM335x_ADC_Driver%27s_Guide

0 Kudos