On 02/01, Popa, Stefan Serban wrote:
Adding support for gpios, normally doesn't have anything to do with the information stored in the iio_chan_spec struct. Also, we need to try to work with the already defined attributes. In your case, setting the gain GPIO is equivalent to modifying the scale, while setting the filter GPIO results in a change in sampling frequency. Therefore, we need use a macro which has the IIO_CHAN_INFO_SCALE and IIO_CHAN_INFO_FREQUENCY flags set. I think AD_SD_CHANNEL should do just fine. I hope this answers your question. -Stefan
It does. Thank you. :) _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel