cancel
Showing results for 
Search instead for 
Did you mean: 

libiio API for user space applications

Ozone
Lead II

As the headline suggests, I would like to know if ST has a proper API documentation for libiio.

All I found was this : https://wiki.st.com/stm32mpu/wiki/How_to_use_the_IIO_user_space_interface

But I am not interested in shell commands and scipts.
There is the option of accessing iio via the file system interface, i.e. file read() / write() calls to access it via /sys/bus/iio/devices, but this is not my preferred route.

Does have ST something like this ?
https://wiki.analog.com/resources/tools-software/linux-software/libiio_internals

And if not, is this AD wiki also valid for ST's implementation ?

3 REPLIES 3
Ozone
Lead II

To answer my own question yet again - it seems not.

Ozone_0-1732086384689.png

It seems there is no ST equivalent, I suppose the API description at AD's wiki site applies one hundred percent.

PatrickF
ST Employee

Hi @Ozone 

does this page helps ? https://wiki.st.com/stm32mpu/wiki/IIO_overview#libiio

 

Regards,

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Well ... somewhat.
I found some examples (on other sites) using the sysfs file interface. And since I don't aim for high sample rates and throughputs, I will probably be ok with it.

As a side note ...
I downloaded the libiio source code repository from the analog website, but I'm unable to build it.
The "default" configuration includes things like ZSTD support, the USB backend, and the XML backend. And just disabling those features doesn't work either, because of interdependencies.
Is there a ST make (or in this case, cmake) configuration ?
And/or the target packages for those backends available from ST ?