What is the best option to write/read complete configuration to the chip, if I'm using a IIO driver? With 'complete configuration' I mean a file (eg chip_config.cfg) where are the values of all registers of that chip in some specific format.
What options do I know now:
kernel_read_file()
and similar functions, but strictly prohibited.Thank you for every suggestion.
this should be done in two parts: a user space one that reads and parses the file, and a driver that reads and writes to the chip.
You can't use the firmware framework you mentioned above, ie write only: because you usually need to read from the device registers; to check if certain bits are set; read back values from registers you've written to; and so on.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.