Using LibIIO to read/write registers BUT device does NOT have debug attr: direct_reg_access #938
Unanswered
zambezie14
asked this question in
Q&A
Replies: 1 comment
-
Well, in case the driver doesn't expose this attribute in debugfs, there is not way to access registers. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would like to read/write device registers on a sensor. I am able to use iio_device_reg_write() and iio_device_reg_read() if the device has the debug attr: direct_reg_access; however, this device does not have this. What is the recommended best practice for reading and writing registers where this debug attr is not included? Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions