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:ad7793 [05 Sep 2012 13:18] – [Status] Michael Hennerichresources:tools-software:linux-drivers:iio-adc:ad7793 [05 Jan 2021 15:59] (current) – Removed old references Ioana Chelaru
Line 3: Line 3:
 ===== Supported Devices ===== ===== Supported Devices =====
  
 +  * [[adi>AD7785]]
   * [[adi>AD7792]]   * [[adi>AD7792]]
   * [[adi>AD7793]]   * [[adi>AD7793]]
 +  * [[adi>AD7794]] 
 +  * [[adi>AD7795]] 
 +  * [[adi>AD7796]] 
 +  * [[adi>AD7797]] 
 +  * [[adi>AD7798]] 
 +  * [[adi>AD7799]]
  
 ===== Reference Circuits ===== ===== Reference Circuits =====
  
-  * [[adi>CN0066]] +  * [[adi>CN0172]]
-  * [[adi>CN0067]]+
   * [[adi>CN0206]]   * [[adi>CN0206]]
-  * [[adi>CN0210]]+  * [[adi>CN0234]] 
 +  * [[adi>CN0312]] 
 +  * [[adi>CN0325]] 
 +  * [[adi>CN0326]]
  
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
  
 +  * [[adi>EVAL-AD7785EBZ]]
   * [[adi>EVAL-AD7792EBZ]]   * [[adi>EVAL-AD7792EBZ]]
   * [[adi>EVAL-AD7793EBZ]]   * [[adi>EVAL-AD7793EBZ]]
 +  * [[adi>EVAL-AD7794EBZ]]
 +  * [[adi>EVAL-AD7795EBZ]]
 +  * [[adi>EVAL-AD7796EBZ]]
 +  * [[adi>EVAL-AD7797EBZ]]
 +  * [[adi>EVAL-AD7798EBZ]]
 +  * [[adi>EVAL-AD7799EBZ]]
 +
 ===== Description ===== ===== Description =====
  
Line 28: Line 44:
 ===== Status ===== ===== Status =====
  
- Source   Mainlined?  +^ Source ^ Mainlined? ^ 
-| [[git.linux.org>drivers/staging/iio/adc/ad7793.c|git]] |  [[git.linux.org>drivers/staging/iio/adc/ad7793.c|Yes]]  |+| [[git.linux.org>drivers/iio/adc/ad7793.c|git]] | [[git.linux.org>drivers/iio/adc/ad7793.c|Yes]]  |
 ===== Files ===== ===== Files =====
  
 ^ Function ^ File ^ ^ Function ^ File ^
-| driver  | [[staging.kernel.org>drivers/staging/iio/adc/ad7793.c]] | +| driver  | [[git.linux.org>drivers/iio/adc/ad7793.c]] | 
-| include | [[staging.kernel.org>drivers/staging/iio/adc/ad7793.h]] |+| include | [[git.linux.org>include/linux/platform_data/ad7793.h]] |
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
Line 42: Line 58:
 The reference voltage may vary between boards and models. The platform_data for the device's "struct device" holds this information. The reference voltage may vary between boards and models. The platform_data for the device's "struct device" holds this information.
  
-<source trunk/drivers/staging/iio/adc/ad7793.h:ad7793_platform_data{} c linux-kernel>+<code c> 
 +/** 
 + * enum ad7793_clock_source - AD7793 clock source selection 
 + * @AD7793_CLK_SRC_INT: Internal 64 kHz clock, not available at the CLK pin. 
 + * @AD7793_CLK_SRC_INT_CO: Internal 64 kHz clock, available at the CLK pin. 
 + * @AD7793_CLK_SRC_EXT: Use external clock. 
 + * @AD7793_CLK_SRC_EXT_DIV2: Use external clock divided by 2. 
 + */ 
 +enum ad7793_clock_source { 
 + AD7793_CLK_SRC_INT, 
 + AD7793_CLK_SRC_INT_CO, 
 + AD7793_CLK_SRC_EXT, 
 + AD7793_CLK_SRC_EXT_DIV2, 
 +}; 
 + 
 +/** 
 + * enum ad7793_bias_voltage - AD7793 bias voltage selection 
 + * @AD7793_BIAS_VOLTAGE_DISABLED: Bias voltage generator disabled 
 + * @AD7793_BIAS_VOLTAGE_AIN1: Bias voltage connected to AIN1(-). 
 + * @AD7793_BIAS_VOLTAGE_AIN2: Bias voltage connected to AIN2(-). 
 + * @AD7793_BIAS_VOLTAGE_AIN3: Bias voltage connected to AIN3(-). 
 + * Only valid for AD7795/AD7796. 
 + */ 
 +enum ad7793_bias_voltage { 
 + AD7793_BIAS_VOLTAGE_DISABLED, 
 + AD7793_BIAS_VOLTAGE_AIN1, 
 + AD7793_BIAS_VOLTAGE_AIN2, 
 + AD7793_BIAS_VOLTAGE_AIN3, 
 +}; 
 + 
 +/** 
 + * enum ad7793_refsel - AD7793 reference voltage selection 
 + * @AD7793_REFSEL_REFIN1: External reference applied between REFIN1(+) 
 + * and REFIN1(-). 
 + * @AD7793_REFSEL_REFIN2External reference applied between REFIN2(+) and 
 + * and REFIN1(-). Only valid for AD7795/AD7796. 
 + * @AD7793_REFSEL_INTERNAL: Internal 1.17 V reference. 
 + */ 
 +enum ad7793_refsel { 
 + AD7793_REFSEL_REFIN1 = 0, 
 + AD7793_REFSEL_REFIN2 = 1, 
 + AD7793_REFSEL_INTERNAL = 2, 
 +}
 + 
 +/** 
 + * enum ad7793_current_source_direction AD7793 excitation current direction 
 + * @AD7793_IEXEC1_IOUT1_IEXEC2_IOUT2: Current source IEXC1 connected to pin 
 + * IOUT1, current source IEXC2 connected to pin IOUT2. 
 + * @AD7793_IEXEC1_IOUT2_IEXEC2_IOUT1: Current source IEXC2 connected to pin 
 + * IOUT1, current source IEXC1 connected to pin IOUT2. 
 + * @AD7793_IEXEC1_IEXEC2_IOUT1: Both current sources connected to pin IOUT1. 
 + * Only valid when the current sources are set to 10 uA or 210 uA. 
 + * @AD7793_IEXEC1_IEXEC2_IOUT2: Both current sources connected to Pin IOUT2. 
 + * Only valid when the current ources are set to 10 uA or 210 uA. 
 + */ 
 +enum ad7793_current_source_direction { 
 + AD7793_IEXEC1_IOUT1_IEXEC2_IOUT2 = 0, 
 + AD7793_IEXEC1_IOUT2_IEXEC2_IOUT1 = 1, 
 + AD7793_IEXEC1_IEXEC2_IOUT1 = 2, 
 + AD7793_IEXEC1_IEXEC2_IOUT2 = 3, 
 +}; 
 + 
 +/** 
 + * enum ad7793_excitation_current - AD7793 excitation current selection 
 + * @AD7793_IX_DISABLED: Excitation current Disabled. 
 + * @AD7793_IX_10uA: Enable 10 micro-ampere excitation current. 
 + * @AD7793_IX_210uA: Enable 210 micro-ampere excitation current. 
 + * @AD7793_IX_1mA: Enable 1 milli-Ampere excitation current. 
 + */ 
 +enum ad7793_excitation_current { 
 + AD7793_IX_DISABLED = 0, 
 + AD7793_IX_10uA = 1, 
 + AD7793_IX_210uA = 2, 
 + AD7793_IX_1mA = 3, 
 +}; 
 + 
 +/** 
 + * struct ad7793_platform_data - AD7793 platform data 
 + * @clock_src: Clock source selection 
 + * @burnout_current: If set to true the 100nA burnout current is enabled. 
 + * @boost_enable: Enable boost for the bias voltage generator. 
 + * @buffered: If set to true configure the device for buffered input mode. 
 + * @unipolar: If set to true sample in unipolar mode, if set to false sample in 
 + * bipolar mode. 
 + * @refsel: Reference voltage selection 
 + * @bias_voltage: Bias voltage selection 
 + * @exitation_current: Excitation current selection 
 + * @current_source_direction: Excitation current direction selection 
 + */ 
 +struct ad7793_platform_data { 
 + enum ad7793_clock_source clock_src; 
 + bool burnout_current; 
 + bool boost_enable; 
 + bool buffered; 
 + bool unipolar; 
 + 
 + enum ad7793_refsel refsel; 
 + enum ad7793_bias_voltage bias_voltage; 
 + enum ad7793_excitation_current exitation_current; 
 + enum ad7793_current_source_direction current_source_direction; 
 +}; 
 +</code>
  
 <code c> <code c>
 static struct ad7793_platform_data ad7793_pdata =  { static struct ad7793_platform_data ad7793_pdata =  {
- .vref_mv 2500+ .clock_src AD7793_CLK_SRC_EXT
- .mode AD7793_MODE_CLKSRC(AD7793_CLK_INT) | AD7793_MODE_RATE(12)+ .unipolar true
- .conf AD7793_CONF_REFSEL | AD7793_CONF_BUF | AD7793_CONF_GAIN(0) | AD7793_CONF_UNIPOLAR,+ .buffered true, 
 + .refsel = AD7793_REFSEL_INTERNAL,
 }; };
 </code> </code>
Line 87: Line 205:
 arch_initcall(board_init); arch_initcall(board_init);
 </code> </code>
- 
 ====== Adding Linux driver support ====== ====== Adding Linux driver support ======
  
Line 93: Line 210:
 "make qconfig") "make qconfig")
  
-<note>+<WRAP round help>
 The AD7793 Driver depends on **CONFIG_SPI** The AD7793 Driver depends on **CONFIG_SPI**
-</note>+</WRAP>
  
 <code> <code>
 Linux Kernel Configuration Linux Kernel Configuration
- Device Drivers  ---> +    Device Drivers  ---> 
- [*] Staging drivers  ---> +        ... 
- <*>     Industrial I/O support ---> +        <*>     Industrial I/O support ---> 
-     --- Industrial I/O support +            --- Industrial I/O support 
-     -*-   Enable ring buffer support within IIO +            ... 
-     -*-     Industrial I/O lock free software ring +            Analog to digital converters  --- 
-     -*-   Enable triggered sampling support +                ... 
- +                <*>  Analog Devices AD7793 and similar ADCs driver 
-           *** Analog to digital converters *** +                ... 
-     [--snip--] +            ... 
- +        ...
-     <*>   Analog Devices AD7792 AD7793 ADC driver +
- +
-     [--snip--] +
 </code> </code>
  
Line 123: Line 236:
 {{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+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.3/device0> **ls -l**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **ls -l**
 drwxr-xr-x    4 root     root             0 Jan  4 09:29 device0:buffer0 drwxr-xr-x    4 root     root             0 Jan  4 09:29 device0:buffer0
--rw-r--r--    1 root     root          4096 Jan  4 09:30 in-in_scale +-rw-r--r--    1 root     root          4096 Jan  4 09:30 in_voltage-in_voltage_scale 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in-in_scale_available +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage-in_voltage_scale_available 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in0-in0_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage0-in_voltage0_raw 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in0-in0_shorted_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage0-in_voltage0_shorted_raw 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in1-in1_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage1-in_voltage1_raw 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in2-in2_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage2-in_voltage2_raw 
--r--r--r--    1 root     root          4096 Jan  4 09:30 in4_supply_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_voltage4_supply_raw 
--rw-r--r--    1 root     root          4096 Jan  4 09:30 in4_supply_scale+-rw-r--r--    1 root     root          4096 Jan  4 09:30 in_voltage4_supply_scale
 -r--r--r--    1 root     root          4096 Jan  4 09:30 name -r--r--r--    1 root     root          4096 Jan  4 09:30 name
 drwxr-xr-x    2 root     root             0 Jan  4 09:30 power drwxr-xr-x    2 root     root             0 Jan  4 09:30 power
Line 146: Line 259:
 -r--r--r--    1 root     root          4096 Jan  4 09:30 sampling_frequency_available -r--r--r--    1 root     root          4096 Jan  4 09:30 sampling_frequency_available
 lrwxrwxrwx    1 root     root             0 Jan  4 09:30 subsystem -> ../../../../../bus/iio lrwxrwxrwx    1 root     root             0 Jan  4 09:30 subsystem -> ../../../../../bus/iio
--r--r--r--    1 root     root          4096 Jan  4 09:30 temp0_raw +-r--r--r--    1 root     root          4096 Jan  4 09:30 in_temp0_raw 
--rw-r--r--    1 root     root          4096 Jan  4 09:30 temp0_scale+-rw-r--r--    1 root     root          4096 Jan  4 09:30 in_temp0_scale
 drwxr-xr-x    2 root     root             0 Jan  4 09:30 trigger drwxr-xr-x    2 root     root             0 Jan  4 09:30 trigger
 -rw-r--r--    1 root     root          4096 Jan  4 09:30 uevent -rw-r--r--    1 root     root          4096 Jan  4 09:30 uevent
  
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> +root:/sys/devices/platform/bfin-spi.0/spi0.3/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.3/device0> **cat name**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat name**
 ad7793 ad7793
-</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/bfin-spi.0/spi0.3/device0> **cat sampling_frequency_available**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat sampling_frequency_available**
 470 242 123 62 50 39 33 19 17 16 12 10 8 6 4 470 242 123 62 50 39 33 19 17 16 12 10 8 6 4
-</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.3/device0> **cat sampling_frequency**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat sampling_frequency**
 10 10
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **echo 50 > sampling_frequency** +root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 50 > sampling_frequency** 
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **cat sampling_frequency**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat sampling_frequency**
 50 50
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> +root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> 
-</xterm></box>+</xterm></WRAP>
  
 === Show supply voltage === === Show supply voltage ===
Line 187: Line 300:
 Shows the AVDD supply voltage Shows the AVDD supply voltage
  
-<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.3/device0> **cat in4_supply_raw**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage4_supply_raw**
 7817399 7817399
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **cat in4_supply_scale**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage4_supply_scale**
 0.000418420 0.000418420
-</xterm></box>+</xterm></WRAP>
  
-**U** = //in4_supply_raw in4_supply_scale// = 7817399 * 0.000418420 = **3270.95608958 //mV//**+**U** = //in_voltage4_supply_raw in_voltage4_supply_scale// = 7817399 * 0.000418420 = **3270.95608958 //mV//**
  
 === Show available scales for differential input channels === === Show available scales for differential input channels ===
Line 201: Line 314:
 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(+) - AIN1(-) | in0-in0_raw +| AIN1(+) - AIN1(-) | in_voltage0-in_voltage0_raw 
-| AIN2(+) - AIN2(-) | in1-in1_raw +| AIN2(+) - AIN2(-) | in_voltage1-in_voltage1_raw 
-| AIN3(+) - AIN3(-) | in1-in1_raw +| AIN3(+) - AIN3(-) | in_voltage1-in_voltage1_raw 
-| AIN1(-) - AIN1(-) | in0-in0_shorted_raw |+| AIN1(-) - AIN1(-) | in_voltage0-in_voltage0_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.3/device0> **cat in-in_scale_available**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage-in_voltage_scale_available**
  0.000149010 0.000074500 0.000037250 0.000018620 0.000009310 0.000004650 0.000002320 0.000001160  0.000149010 0.000074500 0.000037250 0.000018620 0.000009310 0.000004650 0.000002320 0.000001160
-</xterm></box>+</xterm></WRAP>
  
 === Set scale for differential input channels === === Set scale for differential input channels ===
  
-Scale to be applied to in0-in0_rawin1-in1_rawin2-in2_raw in order to obtain the measured voltage in millivolts.+Scale to be applied to in_voltage0-in_voltage0_rawin_voltage1-in_voltage1_rawin_voltage2-in_voltage2_raw in order to obtain the measured voltage in millivolts.
 Allows the user to select one scale out of the available scales. Allows the user to select one scale out of the available scales.
 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.3/device0> **cat in-in_scale**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage-in_voltage_scale**
 0.000149010 0.000149010
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **echo 0.000074500 > in-in_scale** +root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **echo 0.000074500 > in_voltage-in_voltage_scale** 
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **cat in-in_scale**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage-in_voltage_scale**
 0.000074500 0.000074500
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> +</xterm></WRAP>
-</xterm></box>+
  
-=== Show channel in0-in0 measurement ===+=== Show channel in_voltage0-in_voltage0 measurement ===
  
 **Description:**\\ **Description:**\\
-Raw unscaled voltage measurement on channel 0+Raw unscaled voltage measurement
  
 ^ ADC Input Pair ^ Channel name ^ ^ ADC Input Pair ^ Channel name ^
-| AIN1(+) - AIN1(-) | in0-in0_raw +| AIN1(+) - AIN1(-) | in_voltage0-in_voltage0_raw 
-| AIN2(+) - AIN2(-) | in1-in1_raw +| AIN2(+) - AIN2(-) | in_voltage1-in_voltage1_raw 
-| AIN3(+) - AIN3(-) | in1-in1_raw +| AIN3(+) - AIN3(-) | in_voltage2-in_voltage2_raw | 
-| AIN1(-) - AIN1(-) | in0-in0_shorted_raw |+| AIN4(+) - AIN4(-) | in_voltage3-in_voltage3_raw | 
 +| AIN5(+) - AIN5(-) | in_voltage4-in_voltage4_raw | 
 +| AIN6(+) - AIN6(-) | in_voltage5-in_voltage5_raw 
 +| AIN1(-) - AIN1(-) | in_voltage0-in_voltage0_shorted_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.3/device0> **cat in0-in0_raw**+root:/sys/devices/platform/bfin-spi.0/spi0.3/iio:device0> **cat in_voltage0-in_voltage0_raw**
 6710665 6710665
-</xterm></box> +</xterm></WRAP>
- +
-**U** = //in0-in0_raw * in-in_scale// = 6710665 * 0.000149010 = **999.95619165 //mV//**+
  
 +**U** = //in_voltage0-in_voltage0_raw * in_voltage-in_voltage_scale// = 6710665 * 0.000149010 = **999.95619165 //mV//**
 ===== Trigger management ===== ===== Trigger management =====
  
-<note>+<WRAP round help>
 This driver only supports it's own default trigger source **ad7793-dev0** This driver only supports it's own default trigger source **ad7793-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.3/device0> **cat trigger/current_trigger**  root:/sys/devices/platform/bfin-spi.0/spi0.3/device0> **cat trigger/current_trigger** 
 ad7793-dev0 ad7793-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.3/device0/device0:buffer0> ls +root:/sys/devices/platform/bfin-spi.0/spi0.3/device0/buffer> ls 
-**bytes_per_datum**  **enable**           power            subsystem +**enable**              **length** 
-dev              **length**           **scan_elements**    uevent +root:/sys/devices/platform/bfin-spi.0/spi0.3/device0/buffer
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0/device0:buffer0+</xterm></WRAP>
-</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.3/device0/device0:buffer0/scan_elements> **ls** +root:/sys/devices/platform/bfin-spi.0/spi0.3/device0/scan_elements> **ls** 
-in0-in0_en             in1-in1_index          in4_supply_type +in_voltage0-in_voltage0_en             in_voltage1-in_voltage1_index          in_voltage4_supply_type 
-in0-in0_index          in1-in1_type           temp0_en +in_voltage0-in_voltage0_index          in_voltage1-in_voltage1_type           temp0_en 
-in0-in0_shorted_en     in2-in2_en             temp0_index +in_voltage0-in_voltage0_shorted_en     in_voltage2-in_voltage2_en             temp0_index 
-in0-in0_shorted_index  in2-in2_index          temp0_type +in_voltage0-in_voltage0_shorted_index  in_voltage2-in_voltage2_index          temp0_type 
-in0-in0_shorted_type   in2-in2_type           timestamp_en +in_voltage0-in_voltage0_shorted_type   in_voltage2-in_voltage2_type           timestamp_en 
-in0-in0_type           in4_supply_en          timestamp_index +in_voltage0-in_voltage0_type           in_voltage4_supply_en                  timestamp_index 
-in1-in1_en             in4_supply_index       timestamp_type +in_voltage1-in_voltage1_en             in_voltage4_supply_index               timestamp_type 
-root:/sys/devices/platform/bfin-spi.0/spi0.3/device0/device0:buffer0/scan_elements> +root:/sys/devices/platform/bfin-spi.0/spi0.3/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/ad7793.1346843908.txt.gz · Last modified: 05 Sep 2012 13:18 by Michael Hennerich