C# bindings for libiio  1.0
C# bindings for libIIO
iio Namespace Reference

Classes

class  Attr
 iio.Attr class: Contains the representation of an iio_attr. More...
 
class  Channel
 iio.Channel class: Contains the representation of an input or output channel. More...
 
class  Context
 iio.Context class: Contains the representation of an IIO context. More...
 
class  Device
 iio.Device class: Contains the representation of an IIO device. More...
 
class  EventStream
 iio.EventStream class: Contains the representation of an event stream. More...
 
class  IIOEvent
 iio.IIOEvent class: Contains the representation of an iio_event. More...
 
class  IOBuffer
 iio.IOBuffer class: The class used for all I/O operations. More...
 
class  Scan
 iio.ScanContext class: Class for getting information about the available contexts. More...
 
class  Trigger
 iio.Trigger class: Contains the representation of an IIO device that can act as a trigger. More...
 
iio.Attr.name
readonly string name
The name of this attribute.
Definition: Attr.cs:43
iio.Device.get_sample_size
uint get_sample_size(ChannelsMask mask)
Get the current sample size of the device.
Definition: Device.cs:190
iio.Channel.modifier
ChannelModifier modifier
The modifier of this channel.
Definition: Channel.cs:241
iio.Device.attrs
readonly List< Attr > attrs
A list of all the attributes that this device has.
Definition: Device.cs:83
iio.Channel.output
readonly bool output
Contains true if the channel is an output channel, false otherwise.
Definition: Channel.cs:229
iio.Context
iio.Context class: Contains the representation of an IIO context.
Definition: Context.cs:55
iio.Device.id
readonly string id
An identifier of this device.
Definition: Device.cs:71
iio.Device.reg_write
void reg_write(uint addr, uint value)
Set a value to one register of this device.
Definition: Device.cs:202
iio.Context.library_version
readonly Version library_version
Retrieve a information about the version context.
Definition: Context.cs:105
iio.Device.get_channel
Channel get_channel(string name, bool output=false)
Get the iio.Channel object of the specified name.
Definition: Device.cs:141
iio.Device.hwmon
bool hwmon
True if the device is a hardware monitoring device, False if it is a IIO device.
Definition: Device.cs:80
iio.Device.reg_read
uint reg_read(uint addr)
Read the content of a register of this device.
Definition: Device.cs:212
iio.Device.channels
readonly List< Channel > channels
A list of all the iio.Channel objects that this device possesses.
Definition: Device.cs:89
iio.Context.description
readonly string description
Retrieve a human-readable information string about the current context.
Definition: Context.cs:103
iio.Device.label
string label
The label of this device.
Definition: Device.cs:77
iio.IOBuffer.attrs
readonly List< Attr > attrs
A list of all the attributes that this buffer has.
Definition: IOBuffer.cs:54
iio.Channel.id
readonly string id
An identifier of this channel.
Definition: Channel.cs:222
iio.Context.xml
readonly string xml
A XML representation of the current context.
Definition: Context.cs:97
iio.IOBuffer.dev
readonly Device dev
The associated iio.Device object.
Definition: IOBuffer.cs:51
iio.Channel.is_enabled
bool is_enabled(ChannelsMask mask)
Returns whether or not the channel has been enabled.
Definition: Channel.cs:295
iio.Channel.format
DataFormat format
Represents the format of a data sample.
Definition: Channel.cs:247
iio.Device.get_trigger
Trigger get_trigger()
Get the current trigger affected to this device.
Definition: Device.cs:168
iio.Channel.write
uint write(Block block, byte[] array, bool raw=false)
Write the specified array of samples corresponding to this channel into the given iio....
Definition: Channel.cs:334
iio.Attr.write
void write(double val)
Set this attribute to the value contained in the double argument.
Definition: Attr.cs:127
iio.Context.set_timeout
void set_timeout(uint timeout)
Set a timeout for I/O operations.
Definition: Context.cs:198
iio.IIOEvent.EventType
EventType
iio.IIOEvent.EventType class: Contains the available event types.
Definition: IIOEvent.cs:32
iio.Device.name
readonly string name
The name of this device.
Definition: Device.cs:74
iio.EventStream.read_event
IIOEvent read_event(bool nonblock)
Read an event from the event stream.
Definition: EventStream.cs:51
iio.Context.attrs
Dictionary< string, string > attrs
A Dictionary of all the attributes of the current channel. (key, value) = (name, value)
Definition: Context.cs:111
iio.IIOEvent.EventDirection
EventDirection
iio.IIOEvent.EventDirection class: Contains the available event directions.
Definition: IIOEvent.cs:46
iio.Device
iio.Device class: Contains the representation of an IIO device.
Definition: Device.cs:20
iio.IIOEvent.direction
EventDirection direction
Represents the direction of the event.
Definition: IIOEvent.cs:74
iio.Scan.results
readonly Dictionary< string, string > results
A Dictionary<String, String> containing each context's uri as key and its description as value.
Definition: Scan.cs:51
iio.Scan
iio.ScanContext class: Class for getting information about the available contexts.
Definition: Scan.cs:18
iio.IOBuffer
iio.IOBuffer class: The class used for all I/O operations.
Definition: IOBuffer.cs:22
iio.Scan.nb_results
readonly uint nb_results
The number of contexts scanned.
Definition: Scan.cs:48
iio.Trigger.get_rate
ulong get_rate()
Get the currently configured frequency of this trigger.
Definition: Trigger.cs:41
iio.Device.set_trigger
void set_trigger(Trigger trig)
Affect a trigger to this device.
Definition: Device.cs:158
iio.Context.name
readonly string name
The name of the current context.
Definition: Context.cs:100
iio.Channel.ChannelType
ChannelType
iio.Channel.ChannelType class: Contains the available channel types.
Definition: Channel.cs:84
iio.IOBuffer.IOBuffer
IOBuffer(Device dev, ChannelsMask mask, uint index=0)
Initializes a new instance of the iio.IOBuffer class.
Definition: IOBuffer.cs:78
iio.Context.Context
Context(string uri=null)
Initializes a new instance of the iio.Context class, using the provided URI. For compatibility with e...
Definition: Context.cs:120
iio.Trigger.set_trigger
new void set_trigger(Trigger trig)
Set Trigger.
Definition: Trigger.cs:54
iio.Trigger.set_rate
void set_rate(ulong rate)
Configure a new frequency for this trigger.
Definition: Trigger.cs:26
iio.Channel.attrs
readonly List< Attr > attrs
A list of all the attributes that this channel has.
Definition: Channel.cs:238
iio.IOBuffer.samples_count
readonly uint samples_count
The size of this buffer, in samples.
Definition: IOBuffer.cs:48
iio.Attr
iio.Attr class: Contains the representation of an iio_attr.
Definition: Attr.cs:21
iio.Channel.name
readonly string name
The name of this channel.
Definition: Channel.cs:217
iio.EventStream
iio.EventStream class: Contains the representation of an event stream.
Definition: EventStream.cs:16
iio.Attr.read_long
long read_long()
Read the value of this attribute as a long.
Definition: Attr.cs:96
iio.Trigger
iio.Trigger class: Contains the representation of an IIO device that can act as a trigger.
Definition: Trigger.cs:20
iio.Context.get_device
Device get_device(string name)
Get the iio.Device object of the specified name.
Definition: Context.cs:182
iio.Channel.enable
void enable(ChannelsMask mask)
Enable the current channel, so that it can be used for I/O operations.
Definition: Channel.cs:283
iio.Attr.read_double
double read_double()
Read the value of this attribute as a double.
Definition: Attr.cs:89
iio.IOBuffer.cancel
void cancel()
Cancels the current buffer.
Definition: IOBuffer.cs:104
iio.Channel
iio.Channel class: Contains the representation of an input or output channel.
Definition: Channel.cs:21
iio.Context.clone
Context clone()
Clone this instance.
Definition: Context.cs:173
iio.Channel.scan_element
readonly bool scan_element
Contains true if the channel is a scan element, false otherwise.
Definition: Channel.cs:235
iio.IIOEvent
iio.IIOEvent class: Contains the representation of an iio_event.
Definition: IIOEvent.cs:28
iio.Attr.write
void write(long val)
Set this attribute to the value contained in the long argument.
Definition: Attr.cs:119
iio.Attr.read
string read()
Read the value of this attribute as a string.
Definition: Attr.cs:57
iio.Device.debug_attrs
readonly List< Attr > debug_attrs
A list of all the debug attributes that this device has.
Definition: Device.cs:86
iio.Context.devices
readonly List< Device > devices
A List of all the IIO devices present on the current context.
Definition: Context.cs:108
iio.Attr.write
void write(string val)
Set this attribute to the value contained in the string argument.
Definition: Attr.cs:71
iio.IIOEvent.type
EventType type
The type of this event.
Definition: IIOEvent.cs:71
iio.Attr.write
void write(bool val)
Set this attribute to the value contained in the bool argument.
Definition: Attr.cs:104
iio.Device.ctx
readonly Context ctx
Gets the context of the current device.
Definition: Device.cs:23
iio.Trigger.get_trigger
new Trigger get_trigger()
Get trigger.
Definition: Trigger.cs:60
iio.Channel.disable
void disable(ChannelsMask mask)
Disable the current channel.
Definition: Channel.cs:289
iio.IOBuffer.step
uint step()
Gets the step size of the current buffer.
Definition: IOBuffer.cs:110
iio.Channel.ChannelModifier
ChannelModifier
iio.Channel.ChannelModifier class: Contains the available channel modifiers.
Definition: Channel.cs:25
iio.Attr.filename
readonly string filename
The filename in sysfs to which this attribute is bound.
Definition: Attr.cs:46
iio.Channel.index
readonly uint index
Get the index of this channel.
Definition: Channel.cs:225
iio
Definition: Attr.cs:17
iio.Attr.read_bool
bool read_bool()
Read the value of this attribute as a bool.
Definition: Attr.cs:81
iio.Channel.read
byte[] read(Block block, bool raw=false)
Extract the samples corresponding to this channel from the given iio.Block object.
Definition: Channel.cs:307
iio.Channel.type
ChannelType type
The type of this channel.
Definition: Channel.cs:244