Both sides previous revisionPrevious revisionNext revision | Previous revision |
resources:tools-software:linux-drivers:iio-accelerometer:adis16240 [15 Nov 2012 19:50] – [Evaluation Boards] Lars-Peter Clausen | resources:tools-software:linux-drivers:iio-accelerometer:adis16240 [11 Feb 2016 21:24] (current) – [Status] Lars-Peter Clausen |
---|
===== Status ===== | ===== Status ===== |
| |
^ Source ^ Mainlined? ^ | ^ Source ^ Mainlined? ^ |
| [[git.linux.org>drivers/staging/iio/accel/adis16240_core.c|git]] | [[git.linux.org>drivers/staging/iio/accel/adis16240_core.c|Yes]] | | | [[git.linux.org>drivers/staging/iio/accel/adis16240_core.c|git]] | [[git.linux.org>drivers/staging/iio/accel/adis16240_core.c|Yes]] | |
===== Files ===== | ===== Files ===== |
| |
"make qconfig") | "make qconfig") |
| |
<note> | <WRAP round help> |
The ADIS16240 Driver depends on **CONFIG_SPI** | The ADIS16240 Driver depends on **CONFIG_SPI** |
</note> | </WRAP> |
| |
<code> | <code> |
{{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}} | {{page>software:linux:docs:iio:iio_snippets#iio device files&noheader&firstseconly&noeditbtn}} |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/> **cd /sys/bus/iio/devices/** | root:/> **cd /sys/bus/iio/devices/** |
drwxr-xr-x 2 root root 0 Jan 4 04:15 trigger | drwxr-xr-x 2 root root 0 Jan 4 04:15 trigger |
-rw-r--r-- 1 root root 4096 Jan 4 04:15 uevent | -rw-r--r-- 1 root root 4096 Jan 4 04:15 uevent |
</xterm></box> | </xterm></WRAP> |
| |
=== Show device name === | === Show device name === |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0> **cat name** | root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0> **cat name** |
adis16240 | adis16240 |
</xterm></box> | </xterm></WRAP> |
| |
=== ADIS16240 device attributes === | === ADIS16240 device attributes === |
===== Trigger management ===== | ===== Trigger management ===== |
| |
<note> | <WRAP round help> |
This driver only supports it's own default trigger source **adis16240-dev0** | This driver only supports it's own default trigger source **adis16240-dev0** |
</note> | </WRAP> |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0> **cat trigger/current_trigger** | root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0> **cat trigger/current_trigger** |
adis16240-dev0 | adis16240-dev0 |
</xterm></box> | </xterm></WRAP> |
| |
===== Buffer management ===== | ===== Buffer management ===== |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0/buffer> **ls** | root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0/buffer> **ls** |
**bytes_per_datum** **enable** **length** | **bytes_per_datum** **enable** **length** |
</xterm></box> | </xterm></WRAP> |
| |
{{page>software:linux:docs:iio:iio_snippets#Buffer management&noheader&firstseconly&noeditbtn}} | {{page>software:linux:docs:iio:iio_snippets#Buffer management&noheader&firstseconly&noeditbtn}} |
| |
<box 100% green|shell prompt running on the target> | <WRAP box bggreen><wrap info>This specifies any shell prompt running on the target</wrap> |
<xterm> | <xterm> |
root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0/scan_elements>**ls** | root:/sys/devices/platform/bfin-spi.0/spi0.5/iio:device0/scan_elements>**ls** |
in_accel_y_type in_timestamp_en in_voltage1_index | in_accel_y_type in_timestamp_en in_voltage1_index |
in_accel_z_en in_timestamp_index in_voltage1_type | in_accel_z_en in_timestamp_index in_voltage1_type |
</xterm></box> | </xterm></WRAP> |
| |
{{page>software:linux:docs:iio:iio_snippets#Typical ADC scan elements&noheader&firstseconly&noeditbtn}} | {{page>software:linux:docs:iio:iio_snippets#Typical ADC scan elements&noheader&firstseconly&noeditbtn}} |