sys/bus/iio/devices/iio:device0/name: # Going to use iio:device0 sysfs, that matches ADC1 $ grep -H "" /sys/bus/iio/devices/*/name | grep adc # or use 'lsiio | grep adc' The ADC is enabled by thedevice tree: ADC DT configuration exampleįirst, look for the IIO device matching the ADC peripheral: This example shows how to read a single data from the ADC, using sysfs. Note: To convert a raw value to standard units, the IIO defines this formula: Scaled value = (raw + offset) * scale 2.1 How to do a simple ADC conversion using the sysfs interface This is usually referred to as IIO direct mode in IIO device drivers.ĭocumentation/ ABI/testing/sysfs-bus-iio is the Linux ® kernel documentation that fully describes the IIO standard ABI. The IIO sysfs interface can be used to configure devices and do simple conversions at low rates. A list of IIO tools is defined in dedicated articles: IIO Linux kernel tools and libiio toolsĢ How to do a simple conversion using the sysfs interface Some IIO tools are used in this article (e.g. Simulation of a quadrature encoder device using GPIOs.More advanced use cases (with timer triggers and buffers) are performed using sysfs configuration and character devices either directly or with tools.Basic reads from ADC (for example by polling) or writes to a DAC are performed using sysfs.The use cases of the following examples are:Ĭonversions between an STM32 board and an external device: This article describes how to use the IIO with a user terminal. 4.3 How to use the TIM or LPTIM quadrature encoder with the sysfs interface.4.2 How to set up the LPTIM quadrature encoder with the sysfs interface.4.1 How to set up the TIM quadrature encoder with the sysfs interface.4 How to use the quadrature encoder with the sysfs interface.3.3 How to perform multiple ADC conversions in triggered buffer mode using libiio.3.2 How to perform multiple ADC conversions in triggered buffer mode.3.1 How to set up a TIM or LPTIM trigger using the sysfs interface.3 Convert one or more channels using triggered buffer mode.2.2 How to do a simple DAC conversion using the sysfs interface.2.1 How to do a simple ADC conversion using the sysfs interface.2 How to do a simple conversion using the sysfs interface.Mine has 128GB SD card (high endurance) and has a 3TB SSD attached which takes and stores backups, snapshots etc I use an adaptor as well so I don't have to insert the MiniSD card into the Pi. Yes I am sure much of the missing bits were listed in the prerequisties docs of both but we all read those don't we :-) Of course I had added the development environment to it as well. Sudo apt-get install libaio-dev libusb-1.0-0-dev libserialport-dev libxml2-dev libavahi-client-dev doxygen graphviz Sudo apt-get install libxml2 libxml2-dev bison flex libcdk5-dev cmake Install more prerequisites some were already there so it ignores them (from an SDR pluto install doc) Libiio missing.so get that compile and installĬat /home/pi/libiio/CMakeFiles/CMakeOutput.log So erroring as missing these packages.fftw3 glfw glew libvolk These are all the steps I actually performed. "Cannot open access to console, the root. Installing GQRX and SDR++ on RaspberryPi.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |