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

Classes

class  Attr
 iio.Attr class: Contains the representation of a channel or device attribute. 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  IOBuffer
 iio.IOBuffer class: The class used for all I/O operations. More...
 
class  ScanContext
 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:23
iio.Channel.modifier
ChannelModifier modifier
The modifier of this channel.
Definition: Channel.cs:249
iio.ScanContext.get_usb_backend_contexts
Dictionary< string, string > get_usb_backend_contexts()
Gets the uri and the description of all available contexts with USB backend.
Definition: ScanContext.cs:41
iio.Device.attrs
readonly List< Attr > attrs
A list of all the attributes that this device has.
Definition: Device.cs:214
iio.Channel.output
readonly bool output
Contains true if the channel is an output channel, false otherwise.
Definition: Channel.cs:237
iio.Device.get_channel
Channel get_channel(string name)
Get the iio.Channel object of the specified name.
Definition: Device.cs:280
iio.IOBuffer.set_blocking_mode
int set_blocking_mode(bool blocking)
Sets the blocking behavior of the current buffer.
Definition: IOBuffer.cs:191
iio.Context
iio.Context class: Contains the representation of an IIO context.
Definition: Context.cs:34
iio.Device.id
readonly string id
An identifier of this device.
Definition: Device.cs:205
iio.Device.get_context
Context get_context()
Gets the context of the current device.
Definition: Device.cs:379
iio.IOBuffer.push
void push()
Submit all the samples contained in this buffer to the hardware.
Definition: IOBuffer.cs:130
iio.Device.reg_write
void reg_write(uint addr, uint value)
Set a value to one register of this device.
Definition: Device.cs:347
iio.Context.library_version
readonly Version library_version
Retrieve a information about the version context.
Definition: Context.cs:109
iio.IOBuffer.IOBuffer
IOBuffer(Device dev, uint samples_count, bool circular=false)
Initializes a new instance of the iio.IOBuffer class.
Definition: IOBuffer.cs:80
iio.ScanContext.get_local_backend_contexts
Dictionary< string, string > get_local_backend_contexts()
Definition: ScanContext.cs:51
iio.Context.Dispose
void Dispose()
Releases all resource used by the iio.Context object.
Definition: Context.cs:255
iio.Channel.get_index
long get_index()
Get the index of this channel.
Definition: Channel.cs:377
iio.Context.find_device
Device find_device(string device)
Finds the device with the given name from the current context.
Definition: Context.cs:276
iio.Device.reg_read
uint reg_read(uint addr)
Read the content of a register of this device.
Definition: Device.cs:359
iio.Device.channels
readonly List< Channel > channels
A list of all the iio.Channel objects that this device possesses.
Definition: Device.cs:223
iio.Device.find_attribute
Attr find_attribute(string attribute)
Finds the attribute with the given name from the current device.
Definition: Device.cs:405
iio.Context.description
readonly string description
Retrieve a human-readable information string about the current context.
Definition: Context.cs:107
iio.Channel.id
readonly string id
An identifier of this channel.
Definition: Channel.cs:233
iio.Context.xml
readonly string xml
A XML representation of the current context.
Definition: Context.cs:101
iio.Device.get_trigger
Trigger get_trigger()
Get the current trigger affected to this device.
Definition: Device.cs:309
iio.IOBuffer.fill
void fill(byte[] array)
Copy the given array of samples inside the iio.IOBuffer object.
Definition: IOBuffer.cs:161
iio.ScanContext.get_dns_sd_backend_contexts
Dictionary< string, string > get_dns_sd_backend_contexts()
Definition: ScanContext.cs:61
iio.IOBuffer.step
long step()
Gets the step size of the current buffer.
Definition: IOBuffer.cs:222
iio.Attr.write
abstract void write(string val)
Set this attribute to the value contained in the string argument.
iio.Attr.write
void write(double val)
Set this attribute to the value contained in the double argument.
Definition: Attr.cs:91
iio.Context.set_timeout
void set_timeout(uint timeout)
Set a timeout for I/O operations.
Definition: Context.cs:241
iio.Device.name
readonly string name
The name of this device.
Definition: Device.cs:208
iio.Device.set_kernel_buffers_count
int set_kernel_buffers_count(uint nb)
Sets the number of active kernel buffers for this device.
Definition: Device.cs:372
iio.IOBuffer.get_device
Device get_device()
Gets the device of the current buffer.
Definition: IOBuffer.cs:204
iio.Context.attrs
Dictionary< string, string > attrs
A Dictionary of all the attributes of the current channel. (key, value) = (name, value)
Definition: Context.cs:115
iio.Device.buffer_attrs
List< Attr > buffer_attrs
A list of all the buffer attributes that this device has.
Definition: Device.cs:220
iio.Device
iio.Device class: Contains the representation of an IIO device.
Definition: Device.cs:20
iio.IOBuffer.first
IntPtr first(Channel ch)
Gets a pointer to the first sample from the current buffer for a specific channel.
Definition: IOBuffer.cs:212
iio.Device.find_debug_attribute
Attr find_debug_attribute(string attribute)
Finds the debug attribute with the given name from the current device.
Definition: Device.cs:421
iio.IOBuffer
iio.IOBuffer class: The class used for all I/O operations.
Definition: IOBuffer.cs:22
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:297
iio.Context.name
readonly string name
The name of the current context.
Definition: Context.cs:104
iio.Channel.ChannelType
ChannelType
iio.Channel.ChannelType class: Contains the available channel types.
Definition: Channel.cs:115
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.find_attribute
Attr find_attribute(string attribute)
Finds the attribute of the current channel with the given name.
Definition: Channel.cs:385
iio.Device.label
readonly string label
The label of this device.
Definition: Device.cs:211
iio.Channel.attrs
readonly List< Attr > attrs
A list of all the attributes that this channel has.
Definition: Channel.cs:246
iio.IOBuffer.read
void read(byte[] array)
Extract the samples from the iio.IOBuffer object.
Definition: IOBuffer.cs:173
iio.Device.find_channel
Channel find_channel(string channel, bool output)
Finds the channel with the given name from the current device.
Definition: Device.cs:389
iio.IOBuffer.refill
void refill()
Fetch a new set of samples from the hardware.
Definition: IOBuffer.cs:103
iio.IOBuffer.samples_count
readonly uint samples_count
The size of this buffer, in samples.
Definition: IOBuffer.cs:69
iio.Attr
iio.Attr class: Contains the representation of a channel or device attribute.
Definition: Attr.cs:20
iio.Channel.name
readonly string name
The name of this channel.
Definition: Channel.cs:228
iio.Device.get_sample_size
uint get_sample_size()
Get the current sample size of the device.
Definition: Device.cs:334
iio.IOBuffer.Dispose
void Dispose()
Releases all resource used by the iio.IOBuffer object.
Definition: IOBuffer.cs:140
iio.ScanContext
iio.ScanContext class: Class for getting information about the available contexts.
Definition: ScanContext.cs:18
iio.Channel.read
byte[] read(IOBuffer buffer, bool raw=false)
Extract the samples corresponding to this channel from the given iio.IOBuffer object.
Definition: Channel.cs:308
iio.Attr.read_long
long read_long()
Read the value of this attribute as a long.
Definition: Attr.cs:60
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:225
iio.Device.find_buffer_attribute
Attr find_buffer_attribute(string attribute)
Finds the buffer attribute with the given name from the current device.
Definition: Device.cs:437
iio.Channel.get_device
Device get_device()
Finds the device of the current channel.
Definition: Channel.cs:399
iio.Attr.read_double
double read_double()
Read the value of this attribute as a double.
Definition: Attr.cs:53
iio.IOBuffer.cancel
void cancel()
Cancels the current buffer.
Definition: IOBuffer.cs:197
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:216
iio.Channel.scan_element
readonly bool scan_element
Contains true if the channel is a scan element, false otherwise.
Definition: Channel.cs:243
iio.Channel.disable
void disable()
Disable the current channel.
Definition: Channel.cs:290
iio.Attr.write
void write(long val)
Set this attribute to the value contained in the long argument.
Definition: Attr.cs:83
iio.Channel.is_enabled
bool is_enabled()
Returns whether or not the channel has been enabled.
Definition: Channel.cs:296
iio.Context.Context
Context()
Initializes a new instance of the iio.Context class, using the local or the network backend of the II...
Definition: Context.cs:134
iio.Device.debug_attrs
readonly List< Attr > debug_attrs
A list of all the debug attributes that this device has.
Definition: Device.cs:217
iio.Context.devices
readonly List< Device > devices
A List of all the IIO devices present on the current context.
Definition: Context.cs:112
iio.IOBuffer.get_poll_fd
int get_poll_fd()
Returns poll file descriptor for the current buffer.
Definition: IOBuffer.cs:184
iio.Channel.convert
void convert(IntPtr dst, IntPtr src)
Converts the data from the hardware format to the format of the arhitecture on which libiio is runnin...
Definition: Channel.cs:406
iio.Device.identify_filename
int identify_filename(string filename, IntPtr chn_ptr, IntPtr attr)
Finds the channel attribute coresponding to the given filename from the current device.
Definition: Device.cs:454
iio.Attr.write
void write(bool val)
Set this attribute to the value contained in the bool argument.
Definition: Attr.cs:68
iio.Channel.write
uint write(IOBuffer buffer, byte[] array, bool raw=false)
Write the specified array of samples corresponding to this channel into the given iio....
Definition: Channel.cs:348
iio.IOBuffer.circular
readonly bool circular
If true, the buffer is circular.
Definition: IOBuffer.cs:72
iio.Trigger.get_trigger
new Trigger get_trigger()
Get trigger.
Definition: Trigger.cs:60
iio.IOBuffer.push
void push(uint samples_count)
Submit the samples contained in this buffer to the hardware.
Definition: IOBuffer.cs:114
iio.Channel.ChannelModifier
ChannelModifier
iio.Channel.ChannelModifier class: Contains the available channel modifiers.
Definition: Channel.cs:64
iio.Attr.filename
readonly string filename
The filename in sysfs to which this attribute is bound.
Definition: Attr.cs:26
iio.Context.Context
Context(string uri)
Initializes a new instance of the iio.Context class, using the provided URI. For compatibility with e...
Definition: Context.cs:124
iio
Definition: Attr.cs:16
iio.Attr.read_bool
bool read_bool()
Read the value of this attribute as a bool.
Definition: Attr.cs:45
iio.Attr.read
abstract string read()
Read the value of this attribute as a string.
iio.Channel.enable
void enable()
Enable the current channel, so that it can be used for I/O operations.
Definition: Channel.cs:284
iio.Channel.type
ChannelType type
The type of this channel.
Definition: Channel.cs:252
iio.Channel.convert_inverse
void convert_inverse(IntPtr dst, IntPtr src)
Converts the data from the arhitecture on which libiio is running to the hardware format.
Definition: Channel.cs:412