-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Travis F. Collins <travis.collins@analog.com>
- Loading branch information
Showing
26 changed files
with
268 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
Scanning Functions | ||
================== | ||
|
||
.. doxygengroup:: Scan | ||
:content-only: | ||
:members: | ||
.. doxygenfunction:: iio_scan | ||
|
||
|
||
.. doxygenfunction:: iio_scan_destroy | ||
|
||
|
||
.. doxygenfunction:: iio_scan_get_results_count | ||
|
||
|
||
.. doxygenfunction:: iio_scan_get_description | ||
|
||
|
||
.. doxygenfunction:: iio_scan_get_uri | ||
|
||
|
||
.. .. doxygenstruct:: iio_scan | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Buffer | ||
================== | ||
|
||
Members | ||
-------------- | ||
.. autoclass:: iio.Buffer | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Channels | ||
================== | ||
|
||
Members | ||
-------------- | ||
.. autoclass:: iio.Channel | ||
:members: | ||
|
||
-------------------- | ||
|
||
Channel attributes | ||
-------------------- | ||
.. autoclass:: iio.DataFormat | ||
:members: | ||
.. autoclass:: iio.ChannelModifier | ||
:members: | ||
.. autoclass:: iio.ChannelType | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Contexts | ||
================== | ||
|
||
Members | ||
-------------- | ||
.. autoclass:: iio.Context | ||
:members: | ||
|
||
.. autoclass:: iio.LocalContext | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: iio.XMLContext | ||
:members: | ||
:inherited-members: | ||
|
||
.. autoclass:: iio.NetworkContext | ||
:members: | ||
:inherited-members: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Device | ||
================== | ||
|
||
Members | ||
-------------- | ||
.. autoclass:: iio.Device | ||
:members: | ||
:inherited-members: | ||
|
||
------------------ | ||
|
||
.. Device attributes | ||
.. ------------------ | ||
.. .. autoclass:: iio.DeviceDebugAttr | ||
.. :members: | ||
.. :inherited-members: | ||
.. .. autoclass:: iio.DeviceBufferAttr | ||
.. :members: | ||
.. :inherited-members: | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Examples | ||
================== | ||
|
||
|
||
Complete Application Examples | ||
------------------------------ | ||
.. toctree:: | ||
iio_readdev | ||
iio_writedev | ||
iio_attr | ||
iio_info | ||
|
||
|
||
Code Snippets | ||
----------------------------- | ||
|
||
Scan contexts and list channels of each device | ||
|
||
.. code-block:: python | ||
import iio | ||
for ctxname in iio.scan_contexts(): | ||
ctx = iio.Context(ctxname) | ||
for dev in ctx.devices: | ||
if dev.channels: | ||
for chan in dev.channels: | ||
print("{} - {} - {}".format(ctxname, dev.name, chan._id)) | ||
else: | ||
print("{} - {}".format(ctxname, dev.name)) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
iio_attr | ||
====================== | ||
| iio_attr is part of the Libiio package, a library that has been developed to ease the development of software interfacing Linux Industrial I/O (IIO) devices. | ||
| This tool is written using the libiio Python bindings. It works in a very similar way of how the base iio_attr works. You can find more information about it on this `page <https://wiki.analog.com/resources/tools-software/linux-software/libiio/iio_attr>`_. | ||
|
||
.. literalinclude:: ../../../../bindings/python/examples/iio_attr.py | ||
:language: python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
iio_info | ||
===================== | ||
| iio_info is part of the Libiio package, a library that has been developed to ease the development of software interfacing Linux Industrial I/O (IIO) devices. | ||
| This tool is written using the libiio Python bindings. It works in the same way as the base iio_info works. You can find more information about it on this `page <https://wiki.analog.com/resources/tools-software/linux-software/libiio/iio_info>`_. | ||
|
||
|
||
.. literalinclude:: ../../../../bindings/python/examples/iio_info.py | ||
:language: python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
iio_readdev | ||
===================== | ||
| iio_readdev is part of the Libiio package, a library that has been developed to ease the development of software interfacing Linux Industrial I/O (IIO) devices. | ||
| This tool is written using the libiio Python bindings. It works in the same way as the base iio_readdev works. You can find more information about it on this `page <https://wiki.analog.com/resources/tools-software/linux-software/libiio/iio_readdev?s[]=readdev>`_. | ||
|
||
.. literalinclude:: ../../../../bindings/python/examples/iio_readdev.py | ||
:language: python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
iio_writedev | ||
===================== | ||
| iio_writedev is part of the Libiio package, a library that has been developed to ease the development of software interfacing Linux Industrial I/O (IIO) devices. | ||
| This tool is written using the libiio Python bindings. It works in the same way as the base iio_writedev works. You can find more information about it on this `page <https://wiki.analog.com/resources/tools-software/linux-software/libiio/iio_writedev>`_. | ||
|
||
.. literalinclude:: ../../../../bindings/python/examples/iio_writedev.py | ||
:language: python | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
Python Bindings | ||
=============== | ||
|
||
Python bindings for the `Industrial I/O <../index.html>`_ interface library. | ||
|
||
Installation | ||
############ | ||
|
||
The libiio python bindings can be installed from pip | ||
|
||
.. code-block:: bash | ||
(sudo) pip install pylibiio | ||
or by grabbing the source directly | ||
|
||
.. code-block:: bash | ||
git clone https://github.com/analogdevicesinc/libiio.git | ||
cd bindings/python | ||
(sudo) python3 setup.py install | ||
.. note:: | ||
|
||
On Linux the libiio python bindings are sometimes installed in locations not on path. On Ubuntu this is a common fix | ||
|
||
.. code-block:: bash | ||
export PYTHONPATH=$PYTHONPATH:/usr/lib/python{python-version}/site-packages | ||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Contents: | ||
|
||
Components | ||
########## | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
context | ||
buffer | ||
device | ||
channel | ||
trigger | ||
examples | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Trigger | ||
================== | ||
|
||
Members | ||
-------------- | ||
.. autoclass:: iio.Trigger | ||
:members: | ||
:inherited-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ Bindings | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
api/matlab/index | ||
api/python/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
# Related Projects | ||
|
||
- [IIO-Oscilloscope]() | ||
- [pyadi-iio]() | ||
- [IIO-Oscilloscope](https://wiki.analog.com/resources/tools-software/linux-software/iio_oscilloscope) | ||
- [pyadi-iio](https://analogdevicesinc.github.io/pyadi-iio/) | ||
- MATLAB Toolboxes | ||
- [Analog Devices Transceiver Toolbox]() | ||
- [Analog Devices High Speed Converter Toolbox]() | ||
- [Analog Devices RF and Microwave Toolbox]() | ||
- [Analog Devices Precision Toolbox]() | ||
- [Scopy]() | ||
- [libad9361-iio]() | ||
- [libad9166-iio]() | ||
- [iio-emu]() | ||
- [Analog Devices Transceiver Toolbox](https://analogdevicesinc.github.io/TransceiverToolbox/master/) | ||
- [Analog Devices High Speed Converter Toolbox](https://analogdevicesinc.github.io/HighSpeedConverterToolbox/master/) | ||
- [Analog Devices RF and Microwave Toolbox](https://analogdevicesinc.github.io/RFMicrowaveToolbox/master/) | ||
- [Analog Devices Precision Toolbox](https://analogdevicesinc.github.io/PrecisionToolbox/) | ||
- [Scopy](https://wiki.analog.com/university/tools/m2k/scopy) | ||
- [libad9361-iio](https://analogdevicesinc.github.io/libad9361-iio) | ||
- [libad9166-iio](https://analogdevicesinc.github.io/libad9166-iio) |
Oops, something went wrong.