Contexts

Members

class iio.Context(_context=None)[source]

Contains the representation of an IIO context.

attrs

List of context-specific attributes type=dict of str objects

clone()[source]

Clone this instance.

returns: type=iio.LocalContext
An new instance of this class
description

Description of this IIO context. type=str

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
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
version

Version of the backend. type=(int, int, str)

xml

XML representation of the current context. type=str

class iio.LocalContext[source]

Local IIO Context.

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
description

Description of this IIO context. type=str

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
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
version

Version of the backend. type=(int, int, str)

xml

XML representation of the current context. type=str

class iio.XMLContext(xmlfile)[source]

XML IIO Context.

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
description

Description of this IIO context. type=str

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
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
version

Version of the backend. type=(int, int, str)

xml

XML representation of the current context. type=str

class iio.NetworkContext(hostname=None)[source]

Network IIO Context.

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
description

Description of this IIO context. type=str

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
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
version

Version of the backend. type=(int, int, str)

xml

XML representation of the current context. type=str