Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linux-drivers:iio-adc:ad7192 [09 Nov 2011 10:25] – [Reference Circuits] Michael Hennerichresources:tools-software:linux-drivers:iio-adc:ad7192 [08 Feb 2019 14:51] (current) – [Device tree support] Mircea Caprioru
Line 5: Line 5:
   * [[adi>AD7190]]   * [[adi>AD7190]]
   * [[adi>AD7192]]   * [[adi>AD7192]]
 +  * [[adi>AD7193]] (Upstream 4.6+)
 +  * [[adi>AD7194]]
   * [[adi>AD7195]]   * [[adi>AD7195]]
- 
- 
 ===== Reference Circuits ===== ===== Reference Circuits =====
  
   * [[adi>CN0119]]   * [[adi>CN0119]]
 +  * [[adi>CN0102]]
   * [[adi>CN0155]]   * [[adi>CN0155]]
 +  * [[adi>CN0209]]
 +  * [[adi>CN0251]]
 +  * [[adi>CN0287]]
 +  * [[adi>CN0371]]
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
Line 17: Line 22:
   * [[adi>EVAL-AD7190EBZ]]   * [[adi>EVAL-AD7190EBZ]]
   * [[adi>EVAL-AD7192EBZ]]   * [[adi>EVAL-AD7192EBZ]]
 +  * [[adi>EVAL-AD7193EBZ]]
 +  * [[adi>EVAL-AD7194EBZ]]
   * [[adi>EVAL-AD7195EBZ]]   * [[adi>EVAL-AD7195EBZ]]
 ===== Description ===== ===== Description =====
Line 23: Line 30:
 The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc). The industrial I/O subsystem provides a unified framework for drivers for many different types of converters and sensors using a number of different physical interfaces (i2c, spi, etc).
 See [[software:linux:docs:iio:iio|IIO]] for more information. See [[software:linux:docs:iio:iio|IIO]] for more information.
- 
-==== AD7190 ==== 
- 
-{{scrape>adi>ad7190#product_description}} 
- 
-==== AD7192 ==== 
- 
-{{scrape>adi>ad7192#product_description}} 
- 
-==== AD7195 ==== 
- 
-{{scrape>adi>ad7195#product_description}} 
  
 ====== Source Code ====== ====== Source Code ======
Line 40: Line 35:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[bfgit>linux-kernel?drivers/staging/iio/adc/ad7192.c|git]] |  [[git.linux.org>drivers/staging/iio/adc/ad7192.c|git]]  |+| [[git.linux.org>drivers/staging/iio/adc/ad7192.c|git]] | [[git.linux.org>drivers/staging/iio/adc/ad7192.c|yes]]  |
 ===== Files ===== ===== Files =====
  
Line 138: Line 133:
 </code> </code>
  
 +====== Device tree support ======
 +Device tree is the new method for describing non-discoverable hardware in Linux. This replaces former structure based method. For configuring a device using this drivers please follow the example bellow: 
 +
 +<code>
 +/dts-v1/;
 +/plugin/;
 +
 +/ {
 +
 + fragment@0 {
 + target-path = "/";
 + dvdd: fixedregulator@0 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply";
 + regulator-min-microvolt = <3300000>;
 + regulator-max-microvolt = <3300000>;
 + regulator-boot-on;
 + };
 + };
 +
 + fragment@1 {
 + target-path = "/";
 + avdd: fixedregulator@1 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply2";
 + regulator-min-microvolt = <3300000>;
 + regulator-max-microvolt = <3300000>;
 + regulator-boot-on;
 + };
 + };
 +
 + fragment@3 {
 + target = <&spi0>;
 + #address-cells = <1>;
 + #size-cells = <0>;
 + status = "okay";
 +
 + ad7190@0 {
 + compatible = "adi,ad7190";
 + reg = <0>;
 + spi-max-frequency = <1000000>;
 + spi-cpol;
 + spi-cpha;
 + #interrupt-cells = <2>;
 + interrupts = <25 0x2>;
 + interrupt-parent = <&gpio>;
 + dvdd-supply = <&dvdd>;
 + avdd-supply = <&avdd>;
 +
 + adi,reference-voltage-mv = /bits/ 16  <3300>;
 + adi,clock-source-select = [02];
 + adi,refin2-pins-enable;
 + adi,rejection-60-Hz-enable;
 + adi,chop-enable;
 + adi,buffer-enable;
 + adi,burnout-currents-enable;
 + adi,sinc3-filter-enable;
 + adi,unipolar-enable;
 + };
 + };
 +};
 +</code>
 +
 +<note important> Interrupt pin connection - interrupts = <25 0x2>; this line means that gpio pin 25 is used for the interrupt and it must be connect to the DOUT/RDY pin of AD7192 along with the SPI MISO.  
 + </note>
 ====== Adding Linux driver support ====== ====== Adding Linux driver support ======
  
Line 143: Line 203:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The AD7192 Driver depends on **CONFIG_SPI** The AD7192 Driver depends on **CONFIG_SPI**
-</note>+</WRAP>
  
 <code> <code>
Line 165: Line 225:
  
 </code> </code>
 +
  
 ====== Hardware configuration ====== ====== Hardware configuration ======
Line 173: Line 234:
 {{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/**
 root:/sys/bus/iio/devices> ls root:/sys/bus/iio/devices> ls
-device0          device0:buffer0  trigger0+iio:device0          trigger0
  
-root:/sys/bus/iio/devices> **cd device0**+root:/sys/bus/iio/devices> **cd iio:device0**
  
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **ls -l**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **ls -l**
 -rw-r--r--    1 root     root          4096 Jan  4 16:59 bridge_switch_en -rw-r--r--    1 root     root          4096 Jan  4 16:59 bridge_switch_en
-drwxr-xr-x    4 root     root             0 Jan  4 16:59 device0:buffer0 +drwxr-xr-x    4 root     root             0 Jan  4 16:59 buffer 
--rw-r--r--    1 root     root          4096 Jan  4 16:59 in-in_scale +-rw-r--r--    1 root     root          4096 Jan  4 16:59 in_voltage-in_voltage_scale 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in-in_scale_available +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage-in_voltage_scale_available 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in1-in2_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage1-in_voltage2_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in1_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage1_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in2-in2_shorted_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage2-in_voltage2_shorted_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in2_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage2_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in3-in4_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage3-in_voltage4_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in3_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage3_raw 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in4_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage4_raw 
--rw-r--r--    1 root     root          4096 Jan  4 16:59 in_scale +-rw-r--r--    1 root     root          4096 Jan  4 16:59 in_voltage_scale 
--r--r--r--    1 root     root          4096 Jan  4 16:59 in_scale_available+-r--r--r--    1 root     root          4096 Jan  4 16:59 in_voltage_scale_available
 -r--r--r--    1 root     root          4096 Jan  4 16:59 name -r--r--r--    1 root     root          4096 Jan  4 16:59 name
 drwxr-xr-x    2 root     root             0 Jan  4 16:59 power drwxr-xr-x    2 root     root             0 Jan  4 16:59 power
 -rw-r--r--    1 root     root          4096 Jan  5 11:38 sampling_frequency -rw-r--r--    1 root     root          4096 Jan  5 11:38 sampling_frequency
 lrwxrwxrwx    1 root     root             0 Jan  4 16:59 subsystem -> ../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  4 16:59 subsystem -> ../../../../../bus/iio
--r--r--r--    1 root     root          4096 Jan  4 16:59 temp0_raw +-r--r--r--    1 root     root          4096 Jan  4 16:59 in_temp0_raw 
--rw-r--r--    1 root     root          4096 Jan  4 16:59 temp0_scale+-rw-r--r--    1 root     root          4096 Jan  4 16:59 in_temp0_scale
 drwxr-xr-x    2 root     root             0 Jan  4 16:59 trigger drwxr-xr-x    2 root     root             0 Jan  4 16:59 trigger
 -rw-r--r--    1 root     root          4096 Jan  4 16:59 uevent -rw-r--r--    1 root     root          4096 Jan  4 16:59 uevent
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0>  +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0>  
-</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.18/device0> **cat name**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat name**
 ad7192 ad7192
-</xterm></box>+</xterm></WRAP>
  
 === Set sampling frequency / update rate === === Set sampling frequency / update rate ===
  
-<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.18/device0> **cat sampling_frequency**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat sampling_frequency**
 10 10
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **echo 50 > sampling_frequency** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 50 > sampling_frequency** 
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **cat sampling_frequency**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat sampling_frequency**
 50 50
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> 
-</xterm></box>+</xterm></WRAP>
  
 === Show available scales for differential input channels === === Show available scales for differential input channels ===
Line 230: Line 291:
 Lists all available scales for the differential input pairs: Lists all available scales for the differential input pairs:
 ^ ADC Input Pair ^ Channel name ^ ^ ADC Input Pair ^ Channel name ^
-| AIN1(+) - AIN2(-) | in1-in2_raw +| AIN1(+) - AIN2(-) | in_voltage1-in_voltage2_raw 
-| AIN3(+) - AIN4(-) | in3-in4_raw +| AIN3(+) - AIN4(-) | in_voltage3-in_voltage4_raw 
-| AIN2(-) - AIN2(-) | in2-in2_shorted_raw |+| AIN2(-) - AIN2(-) | in_voltage2-in_voltage2_shorted_raw |
  
 Setting these directly influences the ADC input range, by altering the GAIN amplifier. Setting these directly influences the ADC input range, by altering the GAIN amplifier.
  
-<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.18/device0> **cat in-in_scale_available**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_voltage-in_voltage_scale_available**
 0.000393390 0.000196690 0.000098340 0.000049170 0.000024580 0.000012290 0.000006140 0.000003070 0.000393390 0.000196690 0.000098340 0.000049170 0.000024580 0.000012290 0.000006140 0.000003070
-</xterm></box>+</xterm></WRAP>
  
 === Show available scales for pseudo-differential input channels === === Show available scales for pseudo-differential input channels ===
Line 246: Line 307:
 Lists all available scales for the differential input pairs: Lists all available scales for the differential input pairs:
 ^ ADC Input Pair ^ Channel name ^ ^ ADC Input Pair ^ Channel name ^
-| AIN1 - AINCOM | in1_raw +| AIN1 - AINCOM | in_voltage1_raw 
-| AIN2 - AINCOM | in2_raw +| AIN2 - AINCOM | in_voltage2_raw 
-| AIN3 - AINCOM | in3_raw +| AIN3 - AINCOM | in_voltage3_raw 
-| AIN4 - AINCOM | in4_raw |+| AIN4 - AINCOM | in_voltage4_raw |
  
 Setting these directly influences the ADC input range, by altering the GAIN amplifier. Setting these directly influences the ADC input range, by altering the GAIN amplifier.
  
-<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.18/device0> **cat in_scale_available**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_voltage_scale_available**
 0.000393390 0.000196690 0.000098340 0.000049170 0.000024580 0.000012290 0.000006140 0.000003070 0.000393390 0.000196690 0.000098340 0.000049170 0.000024580 0.000012290 0.000006140 0.000003070
-</xterm></box>+</xterm></WRAP>
  
 === Set scale for differential input channels === === Set scale for differential input channels ===
Line 265: Line 326:
 If the written scale differs from the current scale. The driver performs full and zero offset calibration on all differential input channels. If the written scale differs from the current scale. The driver performs full and zero offset calibration on all differential input channels.
  
-<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.18/device0> **cat in-in_scale**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_voltage-in_voltage_scale**
 0.000393390 0.000393390
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **echo 0.000196690 > in-in_scale** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 0.000196690 > in_voltage-in_voltage_scale** 
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **cat in-in_scale**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_voltage-in_voltage_scale**
 0.000196690 0.000196690
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> +</xterm></WRAP>
-</xterm></box>+
  
-=== Show channel in1 measurement ===+=== Show channel in_voltage1 measurement ===
  
 **Description:**\\ **Description:**\\
-Raw unscaled voltage measurement on channel in1+Raw unscaled voltage measurement on channel in_voltage1
  
 ^ ADC Input Pair ^ Channel name ^ ^ ADC Input Pair ^ Channel name ^
-| AIN1(+) - AIN2(-) | in1-in2_raw +| AIN1(+) - AIN2(-) | in_voltage1-in_voltage2_raw 
-| AIN3(+) - AIN4(-) | in3-in4_raw +| AIN3(+) - AIN4(-) | in_voltage3-in_voltage4_raw 
-| AIN2(-) - AIN2(-) | in2-in2_shorted_raw +| AIN2(-) - AIN2(-) | in_voltage2-in_voltage2_shorted_raw 
-| AIN1 - AINCOM | in1_raw +| AIN1 - AINCOM | in_voltage1_raw 
-| AIN2 - AINCOM | in2_raw +| AIN2 - AINCOM | in_voltage2_raw 
-| AIN3 - AINCOM | in3_raw +| AIN3 - AINCOM | in_voltage3_raw 
-| AIN4 - AINCOM | in4_raw |+| AIN4 - AINCOM | in_voltage4_raw |
  
-<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.18/device0> **cat in1_raw**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in1_raw**
 -1 -1
-</xterm></box>+</xterm></WRAP>
  
-**U** = //in1_raw in_scale// = 3983772* 0.000393390 = **1567.17606708 //mV//**+**U** = //in_voltage1_raw in_voltage_scale// = 3983772* 0.000393390 = **1567.17606708 //mV//**
  
-=== Show channel in1-in2 measurement ===+=== Show channel in_voltage1-in_voltage2 measurement ===
  
 **Description:**\\ **Description:**\\
-Raw unscaled voltage measurement on channel in1-in2+Raw unscaled voltage measurement on channel in_voltage1-in_voltage2
  
-<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.18/device0> **cat in1-in2_raw**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_voltage1-in_voltage2_raw**
 -1 -1
-</xterm></box>+</xterm></WRAP>
  
-**U** = //in1-in3_raw in-in_scale// = -1 * 0.000393390 = **-0.000393390 //mV//**+**U** = //in_voltage1-in_voltage3_raw in_voltage-in_voltage_scale// = -1 * 0.000393390 = **-0.000393390 //mV//**
  
 === Show internal temperature === === Show internal temperature ===
  
-**__Description:__** /sys/bus/iio/devices/iio:deviceX/temp0_eaw \\+**__Description:__** /sys/bus/iio/devices/iio:deviceX/in_temp0_raw \\
 Shows raw unscaled temperature. Shows raw unscaled temperature.
  
  
-<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.18/device0> **cat temp0_raw**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat in_temp0_raw**
 -175 -175
-</xterm></box>+</xterm></WRAP>
  
 === Bride power-down switch control === === Bride power-down switch control ===
Line 327: Line 387:
 Writing 1 closes the bridge switch. Writing 1 closes the bridge switch.
  
-<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.18/device0> **echo 1 > bridge_switch_en** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 1 > bridge_switch_en** 
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **cat bridge_switch_en**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat bridge_switch_en**
 1 1
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **echo 0 > bridge_switch_en** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 0 > bridge_switch_en** 
-</xterm></box>+</xterm></WRAP>
  
 === AC excitation control (AD7195 only) === === AC excitation control (AD7195 only) ===
Line 340: Line 400:
 Writing 1 enables AC excitation on the AD7195 ACX strobes. Writing 1 enables AC excitation on the AD7195 ACX strobes.
  
-<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.18/device0> **echo 1 > ac_excitation_en** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 1 > ac_excitation_en** 
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **cat ac_excitation_en**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat ac_excitation_en**
 1 1
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0> **echo 0 > ac_excitation_en** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **echo 0 > ac_excitation_en** 
-</xterm></box> +</xterm></WRAP>
 ===== Trigger management ===== ===== Trigger management =====
  
-<note>+<WRAP round help>
 This driver only supports it's own default trigger source **ad7192-dev0** This driver only supports it's own default trigger source **ad7192-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.18/device0> **cat trigger/current_trigger**+root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0> **cat trigger/current_trigger**
 ad7192-dev0 ad7192-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.18/device0/device0:buffer0> ls +root:/sys/devices/platform/bfin-spi.0/spi0.18/device0/iio:buffer> ls 
-**bytes_per_datum**  **enable**           power            subsystem +enable           length  
-dev              **length**           **scan_elements**    uevent +</xterm></WRAP>
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0/device0:buffer0> +
-</xterm></box>+
  
 {{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.18/device0/device0:buffer0/scan_elements> **ls** +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0/scan_elements> **ls** 
-in1-in2_en             in2_en                 in4_en +in_voltage1-in_voltage2_en             in_voltage2_en                 in_voltage4_en 
-in1-in2_index          in2_index              in4_index +in_voltage1-in_voltage2_index          in_voltage2_index              in_voltage4_index 
-in1-in2_type           in2_type               in4_type +in_voltage1-in_voltage2_type           in_voltage2_type               in_voltage4_type 
-in1_en                 in3-in4_en             temp0_en +in_voltage1_en                         in_voltage3-in_voltage4_en     in_temp0_en 
-in1_index              in3-in4_index          temp0_index +in_voltage1_index                      in_voltage3-in_voltage4_index  in_temp0_index 
-in1_type               in3-in4_type           temp0_type +in_voltage1_type                       in_voltage3-in_voltage4_type   in_temp0_type 
-in2-in2_shorted_en     in3_en                 timestamp_en +in_voltage2-in_voltage2_shorted_en     in_voltage3_en                 timestamp_en 
-in2-in2_shorted_index  in3_index              timestamp_index +in_voltage2-in_voltage2_shorted_index  in_voltage3_index              timestamp_index 
-in2-in2_shorted_type   in3_type               timestamp_type   +in_voltage2-in_voltage2_shorted_type   in_voltage3_type               timestamp_type   
-root:/sys/devices/platform/bfin-spi.0/spi0.18/device0/device0:buffer0/scan_elements> +root:/sys/devices/platform/bfin-spi.0/spi0.18/iio:device0/scan_elements> 
-</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}}
- 
 ====== More Information ====== ====== More Information ======
  
 {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}} {{page>software:linux:docs:iio:iio_snippets#iio pointers&noheader&firstseconly&noeditbtn}}
resources/tools-software/linux-drivers/iio-adc/ad7192.1320830748.txt.gz · Last modified: 09 Nov 2011 10:25 by Michael Hennerich