C# bindings for libiio  0.21
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:33
iio.Channel.modifier
ChannelModifier modifier
The modifier of this channel.
Definition: Channel.cs:258
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:51
iio.Device.attrs
readonly List< Attr > attrs
A list of all the attributes that this device has.
Definition: Device.cs:218
iio.Channel.output
readonly bool output
Contains true if the channel is an output channel, false otherwise.
Definition: Channel.cs:246
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:201
iio.Context
iio.Context class: Contains the representation of an IIO context.
Definition: Context.cs:44
iio.Device.id
readonly string id
An identifier of this device.
Definition: Device.cs:212
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:140
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:119
iio.IOBuffer.IOBuffer
IOBuffer(Device dev, uint samples_count, bool circular=false)
Initializes a new instance of the iio.IOBuffer class.
Definition: IOBuffer.cs:90
iio.ScanContext.get_local_backend_contexts
Dictionary< string, string > get_local_backend_contexts()
Definition: ScanContext.cs:61
iio.Context.Dispose
void Dispose()
Releases all resource used by the iio.Context object.
Definition: Context.cs:268
iio.Channel.get_index
long get_index()
Get the index of this channel.
Definition: Channel.cs:386
iio.Context.find_device
Device find_device(string device)
Finds the device with the given name from the current context.
Definition: Context.cs:289
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:227
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:117
iio.Channel.id
readonly string id
An identifier of this channel.
Definition: Channel.cs:242
iio.Context.xml
readonly string xml
A XML representation of the current context.
Definition: Context.cs:111
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:171
iio.ScanContext.get_dns_sd_backend_contexts
Dictionary< string, string > get_dns_sd_backend_contexts()
Definition: ScanContext.cs:71
iio.IOBuffer.step
long step()
Gets the step size of the current buffer.
Definition: IOBuffer.cs:232
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:101
iio.Context.set_timeout
void set_timeout(uint timeout)
Set a timeout for I/O operations.
Definition: Context.cs:254
iio.Device.name
readonly string name
The name of this device.
Definition: Device.cs:215
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:214
iio.Context.attrs
Dictionary< string, string > attrs
A Dictionary of all the attributes of the current channel. (key, value) = (name, value)
Definition: Context.cs:125
iio.Device.buffer_attrs
List< Attr > buffer_attrs
A list of all the buffer attributes that this device has.
Definition: Device.cs:224
iio.Device
iio.Device class: Contains the representation of an IIO device.
Definition: Device.cs:30
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:222
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:32
iio.Trigger.get_rate
ulong get_rate()
Get the currently configured frequency of this trigger.
Definition: Trigger.cs:51
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:114
iio.Channel.ChannelType
ChannelType
iio.Channel.ChannelType class: Contains the available channel types.
Definition: Channel.cs:124
iio.Trigger.set_trigger
new void set_trigger(Trigger trig)
Set Trigger.
Definition: Trigger.cs:64
iio.Trigger.set_rate
void set_rate(ulong rate)
Configure a new frequency for this trigger.
Definition: Trigger.cs:36
iio.Channel.find_attribute
Attr find_attribute(string attribute)
Finds the attribute of the current channel with the given name.
Definition: Channel.cs:394
iio.Channel.attrs
readonly List< Attr > attrs
A list of all the attributes that this channel has.
Definition: Channel.cs:255
iio.IOBuffer.read
void read(byte[] array)
Extract the samples from the iio.IOBuffer object.
Definition: IOBuffer.cs:183
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:113
iio.IOBuffer.samples_count
readonly uint samples_count
The size of this buffer, in samples.
Definition: IOBuffer.cs:79
iio.Attr
iio.Attr class: Contains the representation of a channel or device attribute.
Definition: Attr.cs:30
iio.Channel.name
readonly string name
The name of this channel.
Definition: Channel.cs:237
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:150
iio.ScanContext
iio.ScanContext class: Class for getting information about the available contexts.
Definition: ScanContext.cs:28
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:317
iio.Attr.read_long
long read_long()
Read the value of this attribute as a long.
Definition: Attr.cs:70
iio.Trigger
iio.Trigger class: Contains the representation of an IIO device that can act as a trigger.
Definition: Trigger.cs:30
iio.Context.get_device
Device get_device(string name)
Get the iio.Device object of the specified name.
Definition: Context.cs:238
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:408
iio.Attr.read_double
double read_double()
Read the value of this attribute as a double.
Definition: Attr.cs:63
iio.IOBuffer.cancel
void cancel()
Cancels the current buffer.
Definition: IOBuffer.cs:207
iio.Channel
iio.Channel class: Contains the representation of an input or output channel.
Definition: Channel.cs:31
iio.Context.clone
Context clone()
Clone this instance.
Definition: Context.cs:229
iio.Channel.scan_element
readonly bool scan_element
Contains true if the channel is a scan element, false otherwise.
Definition: Channel.cs:252
iio.Channel.disable
void disable()
Disable the current channel.
Definition: Channel.cs:299
iio.Attr.write
void write(long val)
Set this attribute to the value contained in the long argument.
Definition: Attr.cs:93
iio.Channel.is_enabled
bool is_enabled()
Returns whether or not the channel has been enabled.
Definition: Channel.cs:305
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:144
iio.Device.debug_attrs
readonly List< Attr > debug_attrs
A list of all the debug attributes that this device has.
Definition: Device.cs:221
iio.Context.devices
readonly List< Device > devices
A List of all the IIO devices present on the current context.
Definition: Context.cs:122
iio.IOBuffer.get_poll_fd
int get_poll_fd()
Returns poll file descriptor for the current buffer.
Definition: IOBuffer.cs:194
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:415
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:78
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:357
iio.IOBuffer.circular
readonly bool circular
If true, the buffer is circular.
Definition: IOBuffer.cs:82
iio.Trigger.get_trigger
new Trigger get_trigger()
Get trigger.
Definition: Trigger.cs:70
iio.IOBuffer.push
void push(uint samples_count)
Submit the samples contained in this buffer to the hardware.
Definition: IOBuffer.cs:124
iio.Channel.ChannelModifier
ChannelModifier
iio.Channel.ChannelModifier class: Contains the available channel modifiers.
Definition: Channel.cs:74
iio.Attr.filename
readonly string filename
The filename in sysfs to which this attribute is bound.
Definition: Attr.cs:36
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:134
iio
Definition: Attr.cs:26
iio.Attr.read_bool
bool read_bool()
Read the value of this attribute as a bool.
Definition: Attr.cs:55
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:293
iio.Channel.type
ChannelType type
The type of this channel.
Definition: Channel.cs:261
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:421