C# bindings for libiio  0.24
C# bindings for libIIO
iio.Trigger Class Reference

iio.Trigger class: Contains the representation of an IIO device that can act as a trigger. More...

Inheritance diagram for iio.Trigger:
Collaboration diagram for iio.Trigger:

Public Member Functions

void set_rate (ulong rate)
 Configure a new frequency for this trigger. More...
 
ulong get_rate ()
 Get the currently configured frequency of this trigger. More...
 
new void set_trigger (Trigger trig)
 Set Trigger. More...
 
new Trigger get_trigger ()
 Get trigger. More...
 
- Public Member Functions inherited from iio.Device
Channel get_channel (string name)
 Get the iio.Channel object of the specified name. More...
 
void set_trigger (Trigger trig)
 Affect a trigger to this device. More...
 
Trigger get_trigger ()
 Get the current trigger affected to this device. More...
 
uint get_sample_size ()
 Get the current sample size of the device. More...
 
void reg_write (uint addr, uint value)
 Set a value to one register of this device. More...
 
uint reg_read (uint addr)
 Read the content of a register of this device. More...
 
int set_kernel_buffers_count (uint nb)
 Sets the number of active kernel buffers for this device. More...
 
Context get_context ()
 Gets the context of the current device. More...
 
Channel find_channel (string channel, bool output)
 Finds the channel with the given name from the current device. More...
 
Attr find_attribute (string attribute)
 Finds the attribute with the given name from the current device. More...
 
Attr find_debug_attribute (string attribute)
 Finds the debug attribute with the given name from the current device. More...
 
Attr find_buffer_attribute (string attribute)
 Finds the buffer attribute with the given name from the current device. More...
 
int identify_filename (string filename, IntPtr chn_ptr, IntPtr attr)
 Finds the channel attribute corresponding to the given filename from the current device. More...
 

Additional Inherited Members

- Public Attributes inherited from iio.Device
readonly string id
 An identifier of this device. More...
 
readonly string name
 The name of this device. More...
 
readonly List< Attrattrs
 A list of all the attributes that this device has. More...
 
readonly List< Attrdebug_attrs
 A list of all the debug attributes that this device has. More...
 
readonly List< Channelchannels
 A list of all the iio.Channel objects that this device possesses. More...
 
- Properties inherited from iio.Device
string label [get]
 The label of this device. More...
 
bool hwmon [get]
 True if the device is a hardware monitoring device, False if it is a IIO device. More...
 
List< Attrbuffer_attrs [get]
 A list of all the buffer attributes that this device has. More...
 

Detailed Description

iio.Trigger class: Contains the representation of an IIO device that can act as a trigger.

Member Function Documentation

◆ get_rate()

ulong iio.Trigger.get_rate ( )
inline

Get the currently configured frequency of this trigger.

Exceptions
System.ExceptionThe configured frequency could not be obtained.
Here is the call graph for this function:

◆ get_trigger()

new Trigger iio.Trigger.get_trigger ( )
inline

Get trigger.

◆ set_rate()

void iio.Trigger.set_rate ( ulong  rate)
inline

Configure a new frequency for this trigger.

Exceptions
System.ExceptionThe new frequency could not be set.
Here is the call graph for this function:

◆ set_trigger()

new void iio.Trigger.set_trigger ( Trigger  trig)
inline

Set Trigger.


The documentation for this class was generated from the following file: