IIO Linux kernel tools

来自百问网嵌入式Linux wiki
Zhouyuebiao讨论 | 贡献2020年5月6日 (三) 23:26的版本 (创建页面,内容为“Linux<sup>®</sup> kernel provides some user space tools that can be used for testing the IIO subsystem. == Article purpose == The purpose of th…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Linux® kernel provides some user space tools that can be used for testing the IIO subsystem.

Article purpose

The purpose of this article is to:

  • briefly introduce the IIO user space tools that comes with the Linux® kernel
  • provide a few examples using these tools

Introduction

These tools use IIO sysfs and character device directly without libiio (See IIO user space interface for further details).

Tools

The Linux® kernel provides the following IIO user space tools:

  • lsiio: example application that provides a list of IIO devices and triggers.
root@stm32mp1:~# lsiio
Device 001: 48003000.adc:adc@100
Device 000: 48003000.adc:adc@0
Trigger 018: tim3_ch4
Trigger 007: tim1_ch3
...
root@stm32mp1:~# iio_event_monitor /dev/iio:device0 &
Event: time: 1529352199639112110, type: voltage, channel: 0, evtype: thresh, direction: either
Event: time: ...
  • iio_generic_buffer: example application that reads data from buffer.
  • iio_utils: set of routines built-in above IIO tools, typically used to access sysfs files.

Installation on your target

The Linux® kernel IIO tools aren't embedded by default in OpenSTLinux distribution. They can be compiled independently and then installed on the target. See 如何构建Linux内核用户空间工具.

References

  1. tools/iio| |}} tools/iio , Linux® IIO tools source code

<securetransclude src="ProtectedTemplate:PublicationRequestId" params="9166 | 2018-10-11 | BrunoB"></securetransclude>