This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linux-drivers:iio-adc:ad7291 [31 Aug 2011 15:41] – [AD7291 IIO ADC Linux Driver] Michael Hennerich | resources:tools-software:linux-drivers:iio-adc:ad7291 [20 Dec 2016 10:24] (current) – fix links Lars-Peter Clausen | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== Supported Devices ===== | ===== Supported Devices ===== | ||
- | This driver supports the\\ | + | * [[adi> |
- | [[adi> | + | |
+ | ===== Evaluation Boards ===== | ||
+ | |||
+ | * [[adi> | ||
===== Description ===== | ===== Description ===== | ||
Line 16: | Line 18: | ||
===== Status ===== | ===== Status ===== | ||
- | ^ Source | + | ^ Source ^ Mainlined? ^ |
- | | [[staging.kernel.org> | + | | [[git.linux.org> |
===== Files ===== | ===== Files ===== | ||
^ Function ^ File ^ | ^ Function ^ File ^ | ||
- | | driver | + | | driver |
====== Example platform device initialization ====== | ====== Example platform device initialization ====== | ||
Line 27: | 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 125: | Line 127: | ||
"make qconfig" | "make qconfig" | ||
- | <note> | + | <WRAP round help> |
The driver depends on **CONFIG_I2C** | The driver depends on **CONFIG_I2C** | ||
- | </note> | + | </WRAP> |
< | < | ||
Line 155: | Line 157: | ||
{{page> | {{page> | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/> **cd / | root:/> **cd / | ||
Line 183: | Line 185: | ||
lrwxrwxrwx | lrwxrwxrwx | ||
-rw-r--r-- | -rw-r--r-- | ||
- | </ | + | </ |
=== Show device name === | === Show device name === | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
ad7291 | ad7291 | ||
- | </ | + | </ |
=== Show scale === | === Show scale === | ||
Line 198: | 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. | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
0.610000 | 0.610000 | ||
- | </ | + | </ |
=== Show channel 0 measurement === | === Show channel 0 measurement === | ||
Line 219: | Line 221: | ||
| VIN7 | in_voltage7_raw | | | VIN7 | in_voltage7_raw | | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
1641 | 1641 | ||
- | </ | + | </ |
**U** = // | **U** = // | ||
Line 237: | Line 239: | ||
| in_temp0_mean_raw | Averaged temperature | | | in_temp0_mean_raw | Averaged temperature | | ||
- | < | + | <WRAP box bggreen>< |
< | < | ||
root:/ | root:/ | ||
Line 243: | Line 245: | ||
root:/ | root:/ | ||
250 | 250 | ||
- | </ | + | </ |
**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//** |