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-cdc:ad7152 [05 Sep 2012 13:24] – [Status] Michael Hennerichresources:tools-software:linux-drivers:iio-cdc:ad7152 [11 Feb 2016 20:48] (current) – [Status] Lars-Peter Clausen
Line 17: Line 17:
 ==== AD7152 ==== ==== AD7152 ====
  
-{{scrape>adi>AD7152#product_description}}+{{scrape>adi>AD7152#description}}
  
 ==== AD7153 ==== ==== AD7153 ====
  
-{{scrape>adi>AD7153#product_description}}+{{scrape>adi>AD7153#description}}
  
 ====== Source Code ====== ====== Source Code ======
Line 27: Line 27:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[git.linux.org>drivers/staging/iio/cdc/ad7152.c|git]] |  [[git.linux.org>drivers/staging/iio/cdc/ad7152.c|git]]  |+| [[git.linux.org>drivers/staging/iio/cdc/ad7152.c|git]] | [[git.linux.org>drivers/staging/iio/cdc/ad7152.c|Yes]] |
 ===== Files ===== ===== Files =====
  
Line 72: Line 72:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The driver depends on **CONFIG_I2C** The driver depends on **CONFIG_I2C**
-</note>+</WRAP>
  
 <code> <code>
Line 103: Line 103:
 {{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/**
Line 138: Line 138:
 lrwxrwxrwx    1 root     root             0 Jan  2 22:46 subsystem -> ../../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  2 22:46 subsystem -> ../../../../../../bus/iio
 -rw-r--r--    1 root     root          4096 Jan  2 22:46 uevent -rw-r--r--    1 root     root          4096 Jan  2 22:46 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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat name** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat name**
 ad7152 ad7152
-</xterm></box>+</xterm></WRAP>
  
 === Show available sampling frequencies / update rates === === Show available sampling frequencies / update rates ===
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat sampling_frequency_available** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat sampling_frequency_available**
 200 50 20 17 200 50 20 17
-</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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat sampling_frequency** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat sampling_frequency**
Line 166: Line 166:
 50 50
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0>
-</xterm></box>+</xterm></WRAP>
  
 === Show available scales for single and differential input channels === === Show available scales for single and differential input channels ===
Line 179: Line 179:
 Setting these directly influences the CDC input range, by altering the Input Range settings. Setting these directly influences the CDC input range, by altering the Input Range settings.
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_scale_available** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance_scale_available**
 0.000061050 0.000030525 0.000015263 0.000007631 0.000061050 0.000030525 0.000015263 0.000007631
  
-</xterm></box>+</xterm></WRAP>
  
 === Set scale for input channels === === Set scale for input channels ===
Line 192: Line 192:
 Allows the user to select one scale out of the available scales. Allows the user to select one scale out of the available scales.
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_scale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_scale**
Line 200: Line 200:
 0.000030525 0.000030525
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0>
-</xterm></box>+</xterm></WRAP>
  
 === Show channel CIN1(+) measurement === === Show channel CIN1(+) measurement ===
Line 213: Line 213:
 | CIN2(+) - CIN2(-) | in_capacitance1-capacitance3_raw | | CIN2(+) - CIN2(-) | in_capacitance1-capacitance3_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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_raw** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance0_raw**
 -1 -1
-</xterm></box>+</xterm></WRAP>
  
 **U** = //in_capacitance0_raw * in_capacitance0_scale// = 23344 * 0.000030525 = **0.7126 //pF//** **U** = //in_capacitance0_raw * in_capacitance0_scale// = 23344 * 0.000030525 = **0.7126 //pF//**
Line 226: Line 226:
 Raw unscaled voltage measurement on channel in_capacitance1-capacitance3_raw Raw unscaled voltage measurement on channel in_capacitance1-capacitance3_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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1-capacitance3_raw** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1-capacitance3_raw**
 -16 -16
-</xterm></box>+</xterm></WRAP>
  
 **U** = //in_capacitance1-capacitance3_raw * in_capacitance1-capacitance3_scale// = -16 * 0.000030525 = **-0.0004884 //pF//** **U** = //in_capacitance1-capacitance3_raw * in_capacitance1-capacitance3_scale// = -16 * 0.000030525 = **-0.0004884 //pF//**
Line 239: Line 239:
 Triggers gain calibration on channel in_capacitance0 or in_capacitance1 Triggers gain calibration on channel in_capacitance0 or in_capacitance1
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibscale_calibration** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibscale_calibration**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale**
 1.000000 1.000000
-</xterm></box>+</xterm></WRAP>
  
 === Set channel gain coefficient === === Set channel gain coefficient ===
Line 252: Line 252:
 Valid range is between 1.0 and 1.99999999. Valid range is between 1.0 and 1.99999999.
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1.5 > in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1.5 > in_capacitance1_calibscale**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibscale**
 1.500000 1.500000
-</xterm></box>+</xterm></WRAP>
  
 === Perform channel offset calibration ===  === Perform channel offset calibration === 
Line 264: Line 264:
 Triggers offset calibration on channel in_capacitance0 or in_capacitance1 Triggers offset calibration on channel in_capacitance0 or in_capacitance1
  
-<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/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibbias_calibration** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **echo 1 > in_capacitance1_calibbias_calibration**
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibbias** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-0048/iio:device0> **cat in_capacitance1_calibbias**
 12101 12101
-</xterm></box>+</xterm></WRAP>
  
 ====== 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-cdc/ad7152.txt · Last modified: 11 Feb 2016 20:48 by Lars-Peter Clausen