Skip to main content
Ozone
Principal
November 19, 2024
Question

libiio API for user space applications

  • November 19, 2024
  • 2 replies
  • 889 views

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 ?

2 replies

Ozone
OzoneAuthor
Principal
November 20, 2024

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
Technical Moderator
November 20, 2024

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.NEW ! Sidekick STM32 AI agent, see here
Ozone
OzoneAuthor
Principal
November 20, 2024

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 ?