Timestamp for IIO Buffer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Timestamp for IIO Buffer

1,871 次查看
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,689 次查看
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 项奖励
回复