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