O'Reilly logo

GNU/Linux Rapid Embedded Programming by Rodolfo Giometti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

ADCs in Linux

To explain the functioning of ADCs in a GNU/Linux-based system, let's use the SAMA5D3 Xplained board since its ADC support is more complete than the BeagleBone Black's (however, during the explanation, each difference with the BeagleBone Black will be pointed out).

If we take a look at the iio:device0 directory's content in the SAMA5D3 Xplained, we will find the listing shown here:

root@a5d3:~# ls /sys/bus/iio/devices/iio\:device0/
buffer           in_voltage1_raw in_voltage6_raw  name         trigger
dev              in_voltage2_raw in_voltage7_raw  of_node      uevent
in_voltage0_raw  in_voltage3_raw in_voltage8_raw  power
in_voltage10_raw in_voltage4_raw in_voltage9_raw  scan_elements
in_voltage11_raw in_voltage5_raw in_voltage_scale subsystem

Files in the in_voltageX_raw ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required