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:ad7291 [09 Nov 2011 10:16] – [Supported Devices] Michael Hennerichresources:tools-software:linux-drivers:iio-adc:ad7291 [20 Dec 2016 10:24] (current) – fix links Lars-Peter Clausen
Line 18: Line 18:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[staging.kernel.org>drivers/staging/iio/adc/ad7291.c|git]] |  [[git.linux.org>drivers/staging/iio/adc/ad7291.c|Yes]]  |+| [[git.linux.org>drivers/iio/adc/ad7291.c|git]] | [[git.linux.org>drivers/iio/adc/ad7291.c|Yes]] |
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[staging.kernel.org>drivers/staging/iio/adc/ad7291.c]] |+| driver  | [[git.linux.org>drivers/iio/adc/ad7291.c]] |
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
Line 29: Line 29:
 ===== Specifying reference voltage via the regulator framework ===== ===== Specifying reference voltage via the regulator framework =====
  
-<note tip>+<WRAP tip>
 In case the AD7291 on-chip 2.5V reference is not used,  In case the AD7291 on-chip 2.5V reference is not used, 
 this driver requires specifying the reference voltage, by using the Linux regulator framework. this driver requires specifying the reference voltage, by using the Linux regulator framework.
-</note>+</WRAP>
  
 Below example specifies a 3.3 Volt reference for the I2C device 0-002a on I2C-Bus 0. (**0-002a**) Below example specifies a 3.3 Volt reference for the I2C device 0-002a on I2C-Bus 0. (**0-002a**)
Line 127: Line 127:
 "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 157: Line 157:
 {{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 185: Line 185:
 lrwxrwxrwx    1 root     root             0 Jan  1 00:38 subsystem -> ../../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  1 00:38 subsystem -> ../../../../../../bus/iio
 -rw-r--r--    1 root     root          4096 Jan  1 00:38 uevent -rw-r--r--    1 root     root          4096 Jan  1 00:38 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-002a/iio:device0> **cat name** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat name**
 ad7291 ad7291
-</xterm></box>+</xterm></WRAP>
  
 === Show scale === === Show scale ===
Line 200: Line 200:
 scale to be applied to in_voltageX_raw in order to obtain the measured voltage in millivolts. scale to be applied to in_voltageX_raw in order to obtain the measured voltage in millivolts.
  
-<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-002a/iio:device0> **cat in_voltage_scale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_voltage_scale**
 0.610000 0.610000
-</xterm></box>+</xterm></WRAP>
  
 === Show channel 0 measurement === === Show channel 0 measurement ===
Line 221: Line 221:
 | VIN7 | in_voltage7_raw | | VIN7 | in_voltage7_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-002a/iio:device0> **cat in_voltage0_raw** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_voltage0_raw**
 1641 1641
-</xterm></box>+</xterm></WRAP>
  
 **U** = //in_voltage0_raw * in_voltage_scale// = 1641 * 0.610000 = **1001,01 //mV//** **U** = //in_voltage0_raw * in_voltage_scale// = 1641 * 0.610000 = **1001,01 //mV//**
Line 239: Line 239:
 | in_temp0_mean_raw | Averaged temperature | | in_temp0_mean_raw | Averaged 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/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_temp0_raw** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_temp0_raw**
Line 245: Line 245:
 root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_temp0_scale** root:/sys/devices/platform/i2c-bfin-twi.0/i2c-0/0-002a/iio:device0> **cat in_temp0_scale**
 250 250
-</xterm></box>+</xterm></WRAP>
  
 **T** = in_temp0_raw * in_temp0_scale = 107 * 250 = 26750 = **26.75 //°C//** **T** = in_temp0_raw * in_temp0_scale = 107 * 250 = 26750 = **26.75 //°C//**
resources/tools-software/linux-drivers/iio-adc/ad7291.1320830215.txt.gz · Last modified: 09 Nov 2011 10:16 by Michael Hennerich