Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
resources:tools-software:linux-software:libiio:iio_reg [02 Oct 2018 11:01]
Michael Hennerich [iio_reg]
resources:tools-software:linux-software:libiio:iio_reg [08 Oct 2021 21:43]
Robin Getz add a finding devices
Line 25: Line 25:
 </​xterm>​ </​xterm>​
 </​WRAP>​ </​WRAP>​
 +
 +===== Finding ​ =====
 +
 +An IIO context can have multiple logical devices, and sometimes not all devices will have a specific register interface. To find out which IIO device support register access, try (remember that ''​iio_attr''​ supports a ''​-D''​ option to look for debug attributes).
 +
 +<​xterm>​
 +# **iio_attr ​ -u ip:​192.168.2.1 -D**
 +IIO context has 4 devices:
 + iio:​device0,​ ad9361-phy: found 179 debug attributes
 + iio:​device1,​ xadc: found 0 debug attributes
 + iio:​device2,​ cf-ad9361-dds-core-lpc:​ found 1 debug attributes
 + iio:​device3,​ cf-ad9361-lpc:​ found 2 debug attributes
 +
 +# **iio_attr ​ -u ip:​192.168.2.1 -D . direct_reg_access**
 +dev '​ad9361-phy',​ debug attr '​direct_reg_access',​ value :'​0x0'​
 +dev '​cf-ad9361-dds-core-lpc',​ debug attr '​direct_reg_access',​ value :'​0x90162'​
 +dev '​cf-ad9361-lpc',​ debug attr '​direct_reg_access',​ value :'​0x0'​
 +</​xterm>​
 +
 +From here you can see the three different devices that support the ''​iio_reg''​ tool.
  
 ===== Example =====  ===== Example ===== 
resources/tools-software/linux-software/libiio/iio_reg.txt · Last modified: 08 Oct 2021 21:43 by Robin Getz