Skip to content

Faulty creation of attribute xml #3108

@SwaroopPKADI

Description

@SwaroopPKADI

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 

              ......
                       

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions