LibIIO.Context
LibIIO.Context
LibIIO.LocalContext
LibIIO.LocalContext
LibIIO.NetworkContext
LibIIO.NetworkContext
LibIIO.XMLContext
LibIIO.XMLContext
LibIIO.attrs
LibIIO.clone
LibIIO.description
LibIIO.devices
LibIIO.find_device
LibIIO.name
LibIIO.scan_contexts
LibIIO.set_timeout
LibIIO.version
LibIIO.xml
LibIIO.Context
— TypeContext(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 aPtr{iio_context}
, an URI string (recommended) ornothing
to construct the default context (Linux only).
LibIIO.Context
— TypeContains the representation of an IIO context.
LibIIO.LocalContext
— TypeLocal IIO Context.
LibIIO.LocalContext
— MethodLocalContext([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
.
LibIIO.NetworkContext
— TypeXMLContext(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
LibIIO.NetworkContext
— TypeNetwork IIO context
LibIIO.XMLContext
— TypeXML IIO Context.
LibIIO.XMLContext
— MethodXMLContext(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.
LibIIO.attrs
— Methodattrs(ctx::AbstractContext)
Lost of context-specific attributes.
LibIIO.clone
— Methodclone(ctx::T) where {T <: AbstractContext}
Clones the IIO context.
LibIIO.description
— Methoddescription(ctx::AbstractContext)
Description of this IIO context.
LibIIO.devices
— Methoddevices(ctx::AbstractContext)
List of devices contained in this context.
LibIIO.find_device
— Methodfind_device(ctx::AbstractContext, name_or_id_or_label)
Find an IIO device by its name, ID or label.
LibIIO.name
— Methodname(ctx::AbstractContext)
Name of the IIO context.
LibIIO.scan_contexts
— Methodscan_contexts()
Scan Context.
LibIIO.set_timeout
— Methodset_timeout(ctx::AbstractContext, timeout)
Set a timeout for I/O operations.
Parameters
value
: The timeout value, in milliseconds
LibIIO.version
— Methodversion(ctx::AbstractContext)
Version of the context backed, as Tuple(UInt, UInt, String)
`
LibIIO.xml
— Methodxml(ctx::AbstractContext)
XML representation of the IIO context.