C# bindings for libiio  1.0
C# bindings for libIIO
 All Classes Namespaces Functions Variables Enumerations Properties
iio.Context Class Reference

iio.Context class: Contains the representation of an IIO context. More...

Inherits iio.IIOObject.

Public Member Functions

 Context (string uri=null)
 Initializes a new instance of the iio.Context class, using the provided URI. For compatibility with existing code, providing an IP address or a hostname here will automatically create a network context. More...
 
Context clone ()
 Clone this instance. More...
 
Device get_device (string name)
 Get the iio.Device object of the specified name. More...
 
void set_timeout (uint timeout)
 Set a timeout for I/O operations. More...
 
- Public Member Functions inherited from iio.IIOObject
void Dispose ()
 Releases all resource used by the iio.IIOObject object. More...
 

Public Attributes

readonly string xml
 A XML representation of the current context. More...
 
readonly string name
 The name of the current context. More...
 
readonly string description
 Retrieve a human-readable information string about the current context. More...
 
readonly Version library_version
 Retrieve a information about the version context. More...
 
readonly List< Devicedevices
 A List of all the IIO devices present on the current context. More...
 

Protected Member Functions

override void Destroy ()
 
- Protected Member Functions inherited from iio.IIOObject
 IIOObject (IntPtr hdl)
 
abstract void Destroy ()
 

Properties

Dictionary< string, string > attrs [get, set]
 A Dictionary of all the attributes of the current channel. (key, value) = (name, value) More...
 

Detailed Description

iio.Context class: Contains the representation of an IIO context.

Constructor & Destructor Documentation

iio.Context.Context ( string  uri = null)
inline

Initializes a new instance of the iio.Context class, using the provided URI. For compatibility with existing code, providing an IP address or a hostname here will automatically create a network context.

Parameters
uriURI to use for the IIO context creation
Returns
an instance of the iio.Context class
Exceptions
IioLib.IIOExceptionThe IIO context could not be created.

Here is the caller graph for this function:

Member Function Documentation

Context iio.Context.clone ( )
inline

Clone this instance.

Here is the call graph for this function:

Device iio.Context.get_device ( string  name)
inline

Get the iio.Device object of the specified name.

Parameters
nameName or ID of the device to look for
Exceptions
IioLib.IIOExceptionThe IIO device with the specified name or ID could not be found in the current context.
void iio.Context.set_timeout ( uint  timeout)
inline

Set a timeout for I/O operations.

Parameters
timeoutThe timeout value, in milliseconds
Exceptions
IioLib.IIOExceptionThe timeout could not be applied.

Member Data Documentation

readonly string iio.Context.description

Retrieve a human-readable information string about the current context.

readonly List<Device> iio.Context.devices

A List of all the IIO devices present on the current context.

readonly Version iio.Context.library_version

Retrieve a information about the version context.

readonly string iio.Context.name

The name of the current context.

readonly string iio.Context.xml

A XML representation of the current context.

Property Documentation

Dictionary<string, string> iio.Context.attrs
getset

A Dictionary of all the attributes of the current channel. (key, value) = (name, value)


The documentation for this class was generated from the following file: