Can I simply use the "device_driver" files located here:https://github.com/analogdevicesinc/no-OS/tree/master/device_drivers/AD7171
With the communication files located here:https://github.com/analogdevicesinc/arduino/tree/master/Arduino%20Uno%20R3/examples/CN0391_example
Then base the Arduino code off of "CN0391_example.ino" found with the communication files?This Q&A leads me to believe so:https://ez.analog.com/linux-device-drivers/microcontroller-no-os-drivers/f/q-a/88225/can-i-use-the-no-os-driver-for-ad7124-4-with-stm32-microcontroller
All help is greatly appreciated.
EDIT: Or do I need to replace all the spi calls found in the .h and .c of the device_driver files?
You are right you can interface the AD7171 driver code with the communication files you found in the Arduino repository. From what i have check the function definitions match and should work together. If you have any other questions let me know and I will try to help.
I've got the xlinix libraries installed and I can get it to compile, but I'm concerned that there is alot of code specific to the xlinix microcontroller. Also, I'm a little confused on the parameters "ctrl" and "pattern".
You can remove the header files they are not necessary for the driver.
It seems that the ctrl is just control data is being sent over spi to receive the 24 bit readout. The pattern retains part of the status bits ( data & 0x1F)