C# bindings for libiio  1.0
C# bindings for libIIO
iio.EventStream Class Reference

iio.EventStream class: Contains the representation of an event stream. More...

Inherits iio.IIOObject.

Collaboration diagram for iio.EventStream:

Public Member Functions

 EventStream (Device device)
 
IIOEvent read_event (bool nonblock)
 Read an event from the event stream. More...
 

Public Attributes

readonly Device dev
 

Protected Member Functions

override void Destroy ()
 

Detailed Description

iio.EventStream class: Contains the representation of an event stream.

Member Function Documentation

◆ read_event()

IIOEvent iio.EventStream.read_event ( bool  nonblock)
inline

Read an event from the event stream.

Parameters
nonblockif True, the operation won't block and return -EBUSY if there is currently no event in the queue.

It is possible to stop a blocking call of read_event by calling Destroy in a different thread. In that case, read_event will throw an exception.

Exceptions
IioLib.IIOExceptionUnable to read event.

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