Hi,
I´m planning to use ADC0 channel 8 and ADC1 channel 8 to sample voltage and current waveforms. Under directory /sys/bus/iio/devices/iio:device/scan_elements/ I have several files including in_voltage8_en. I think that I have to write 1 in this file to enable sampling in channel 8 but when I try do write 1 I get the following error message:
root@colibri-vf:/# echo 1> /sys/bus/iio/devices/iio:device0/scan_elements/in_voltage8_en
-sh: echo: write error: Invalid argument
The only value that I can write whithout error is 0 but even when I write 0 to this channel I’m still able to read samples in voltage_8_raw. It´s seems that the pin is always enabled. Is this correct ?
Thanks
Daniel