Contexts¶
Members¶
-
class
iio.Context(_context=None)[source]¶ Contains the representation of an IIO context.
-
property
attrs¶ List of context-specific attributes type=dict of str objects
-
property
description¶ Description of this IIO context. type=str
-
property
devices¶ List of devices contained in this context. type=list of iio.Device and iio.Trigger objects
-
find_device(name_or_id)[source]¶ Find a IIO device by its name or ID.
- Parameters
name_or_id – type=str The name or ID of the device to find
- returns: type=iio.Device or type=iio.Trigger
The IIO Device
-
property
name¶ Name of this IIO context. type=str
-
set_timeout(timeout)[source]¶ Set a timeout for I/O operations.
- Parameters
timeout – type=int The timeout value, in milliseconds
-
property
version¶ Version of the backend. type=(int, int, str)
-
property
xml¶ XML representation of the current context. type=str
-
property
-
class
iio.LocalContext[source]¶ Local IIO Context.
-
property
attrs¶ List of context-specific attributes type=dict of str objects
-
clone()¶ Clone this instance.
- returns: type=iio.LocalContext
An new instance of this class
-
property
description¶ Description of this IIO context. type=str
-
property
devices¶ List of devices contained in this context. type=list of iio.Device and iio.Trigger objects
-
find_device(name_or_id)¶ Find a IIO device by its name or ID.
- Parameters
name_or_id – type=str The name or ID of the device to find
- returns: type=iio.Device or type=iio.Trigger
The IIO Device
-
property
name¶ Name of this IIO context. type=str
-
set_timeout(timeout)¶ Set a timeout for I/O operations.
- Parameters
timeout – type=int The timeout value, in milliseconds
-
property
version¶ Version of the backend. type=(int, int, str)
-
property
xml¶ XML representation of the current context. type=str
-
property
-
class
iio.XMLContext(xmlfile)[source]¶ XML IIO Context.
-
property
attrs¶ List of context-specific attributes type=dict of str objects
-
clone()¶ Clone this instance.
- returns: type=iio.LocalContext
An new instance of this class
-
property
description¶ Description of this IIO context. type=str
-
property
devices¶ List of devices contained in this context. type=list of iio.Device and iio.Trigger objects
-
find_device(name_or_id)¶ Find a IIO device by its name or ID.
- Parameters
name_or_id – type=str The name or ID of the device to find
- returns: type=iio.Device or type=iio.Trigger
The IIO Device
-
property
name¶ Name of this IIO context. type=str
-
set_timeout(timeout)¶ Set a timeout for I/O operations.
- Parameters
timeout – type=int The timeout value, in milliseconds
-
property
version¶ Version of the backend. type=(int, int, str)
-
property
xml¶ XML representation of the current context. type=str
-
property
-
class
iio.NetworkContext(hostname=None)[source]¶ Network IIO Context.
-
property
attrs¶ List of context-specific attributes type=dict of str objects
-
clone()¶ Clone this instance.
- returns: type=iio.LocalContext
An new instance of this class
-
property
description¶ Description of this IIO context. type=str
-
property
devices¶ List of devices contained in this context. type=list of iio.Device and iio.Trigger objects
-
find_device(name_or_id)¶ Find a IIO device by its name or ID.
- Parameters
name_or_id – type=str The name or ID of the device to find
- returns: type=iio.Device or type=iio.Trigger
The IIO Device
-
property
name¶ Name of this IIO context. type=str
-
set_timeout(timeout)¶ Set a timeout for I/O operations.
- Parameters
timeout – type=int The timeout value, in milliseconds
-
property
version¶ Version of the backend. type=(int, int, str)
-
property
xml¶ XML representation of the current context. type=str
-
property