C# bindings for libiio
0.26
C# bindings for libIIO
|
Libiio and the C# bindings have been developed and is released under the terms of the GNU Lesser General Public License, version 2 or (at your option) any later version. This open-source license allows anyone to use the library for C# proprietary or open-source, commercial or non-commercial applications. (if you change the bindings or library, send the source of the bindings and library along with the binary).
The full terms of the library license can be found at: http://opensource.org/licenses/LGPL-2.1 and the iio-utils license can be found at: https://opensource.org/licenses/GPL-2.0
The basic bricks of the libiio API, and therefore the C# bindings are the the iio namespace, and the classes of that nameplace: iio.Channel, iio.Context, iio.Device, iio.IOBuffer, iio.Trigger, and iio.Attr (channel or device attributes).
Creating a context is quite easy with the iio.Context class:
Each iio.Channel can be either input, or output. This information can be retrieved with iio.Channel.output As for the Device objects, the iio.Channel object features an ID and optionally a name The ID can be obtained with iio.Channel.id, and the name can be obtained with iio.Channel.name. Important note: two iio_channel can have the same ID, as long as one is input and the other is output.
Different kinds of parameters are available: parameters that apply to a iio_device, and parameters that apply to one or more iio_channel.
for Channel attributes: iio.Channel.attrs
For Device Attributes: iio.Device.attrs