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_or_label)[source]

Find a IIO device by its name, ID or label.

Parameters:

name_or_id_or_label – type=str The name, ID or label 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

class iio.LocalContext[source]

Local 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_or_label)

Find a IIO device by its name, ID or label.

Parameters:

name_or_id_or_label – type=str The name, ID or label 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

class iio.XMLContext(xmlfile)[source]

XML 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_or_label)

Find a IIO device by its name, ID or label.

Parameters:

name_or_id_or_label – type=str The name, ID or label 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

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

Network 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_or_label)

Find a IIO device by its name, ID or label.

Parameters:

name_or_id_or_label – type=str The name, ID or label 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