Is there a way to expose extra settings through sysfs using the IIO framework?
0
votes
1
answer
503
views
The driver I'm developing has a number of settings I want the user to be able to change that don't really fit into the IIO framework. For example, using the IIO_CHAN_INFO_SAMP_FREQ enum in my read function exposes a variable in /sys/bus/iio/devices/iio:device0/ called "in_voltage_sampling_frequency" that allows the user to change the frequency on-the-go. I would also like to be able to pass in different modes (a string) through a similar mechanism. How would I do this? It doesn't look like the IIO interface supports ioctl calls.
So in short, what I want is a mechanism to expose a variable called "timer_mode" through IIO, that people could pass a string into that my driver can use.
Asked by z470
(101 rep)
Jun 4, 2015, 07:55 PM
Last activity: Dec 31, 2022, 07:55 PM
Last activity: Dec 31, 2022, 07:55 PM