Timestamp for IIO Buffer

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Timestamp for IIO Buffer

1,627件の閲覧回数
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.

ラベル(3)
0 件の賞賛
1 返信

1,445件の閲覧回数
b36401
NXP Employee
NXP Employee

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 件の賞賛