EventStream

class iio.EventStream : iio.IIOObject

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

Public Functions

EventStream (Device device)
IIOEvent read_event (bool nonblock)

Read an event from the event stream.

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.

Param nonblock:

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

Throws IioLib.IIOException:

Unable to read event.

Public Members

readonly Device dev