LibIIO.ContextType
Context(ptr_uri_or_nothing = nothing)

Initializes a new Context using the local or the network backend of the IIO library.

This function will create a network context if the IIOD_REMOTE environment variable is set to the hostname where the IIOD server runs. If set to an empty string, the server will be discovered using ZeroConf. If the environment variable is not set, a local context will be created instead.

Parameters

  • ptr_uri_or_nothing : Either a Ptr{iio_context}, an URI string (recommended) or nothing to construct the default context (Linux only).
source
LibIIO.LocalContextMethod
LocalContext([ctx::Ptr{iio_context}])

Initializes a new LocalContext using the local backend if the IIO library. Can be constructed from an existing pointer to an iio_context.

source
LibIIO.NetworkContextType
XMLContext(xml_file)

Initializes a new NetworkContext using the network backend if the IIO library.

Parameters

  • hostname : Hostname, IPv4 or IPv6 address where the IIO Daemon is running
source
LibIIO.XMLContextMethod
XMLContext(xml_file)

Initializes a new XMLContext using the XML backend if the IIO library.

Parameters

  • xmlfile : Filename of the XML file to build the context from.
source
LibIIO.attrsMethod
attrs(ctx::AbstractContext)

Lost of context-specific attributes.

source
LibIIO.cloneMethod
clone(ctx::T) where {T <: AbstractContext}

Clones the IIO context.

source
LibIIO.devicesMethod
devices(ctx::AbstractContext)

List of devices contained in this context.

source
LibIIO.find_deviceMethod
find_device(ctx::AbstractContext, name_or_id_or_label)

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

source
LibIIO.set_timeoutMethod
set_timeout(ctx::AbstractContext, timeout)

Set a timeout for I/O operations.

Parameters

  • value : The timeout value, in milliseconds
source
LibIIO.versionMethod
version(ctx::AbstractContext)

Version of the context backed, as Tuple(UInt, UInt, String)`

source
LibIIO.xmlMethod
xml(ctx::AbstractContext)

XML representation of the IIO context.

source