IIO channel attributes that are marked by IIO_SHARED_BY_ALL should be represented as a global/device attribute. Instead it is currently represented as a normal channel attribute.
For example:
sampling_frequency with IIO_SHARED_BY_ALL flag should be
IIO context has 2 devices:
iio:device0: ad4692 (buffer capable)
16 channels found:
voltage0: Chn00 (input, index: 0, format: be:U16/16>>0)
3 channel-specific attributes found:
attr 0: raw value: 62277
attr 1: scale value: 0.062501
attr 2: offset value: 0
......
device-specific attributes found:
attr 0: sampling_frequency value: 800000
debug attributes found:
debug attr 0: direct_reg_access value: 161
......
but instead I get the following:
IIO context has 2 devices:
iio:device0: ad4692 (buffer capable)
16 channels found:
voltage0: Chn00 (input, index: 0, format: be:U16/16>>0)
4 channel-specific attributes found:
attr 0: raw value: 62277
attr 1: scale value: 0.062501
attr 2: offset value: 0
attr 3: sampling_frequency value: 4687501
......
debug attributes found:
debug attr 0: direct_reg_access value: 161
......
IIO channel attributes that are marked by
IIO_SHARED_BY_ALLshould be represented as a global/device attribute. Instead it is currently represented as a normal channel attribute.For example:
sampling_frequency with IIO_SHARED_BY_ALL flag should be
but instead I get the following: