I am trying to write a c/cpp program/app that will do the equivalent of the following userspace command.
How is this accomplished? Do you use ioctl to somehow interact with the device?
AD9361
Recommended for New Designs
The AD9361 is a high performance, highly integrated radio
frequency (RF) Agile Transceiverâ„¢ designed for use in 3G and
4G base station applications....
Datasheet
AD9361 on Analog.com
I am trying to write a c/cpp program/app that will do the equivalent of the following userspace command.
How is this accomplished? Do you use ioctl to somehow interact with the device?
No - this uses Linux kernel debugfs
https://www.kernel.org/doc/html/next/filesystems/debugfs.html
You use use libiio or it's iio_reg tool to do this more easily.
https://wiki.analog.com/resources/tools-software/linux-software/libiio/iio_reg
-Michael
I was reading the datasheet and it mentioned there is an ENSM that can be controlled via spi. are there any instructions anywhere on how to do a simple spi communication to enable the TX and RX signal chains?