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