C# bindings for libiio: iio.EventStream Class Reference

C# bindings for libiio 1.0 C# bindings for libIIO

Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
iio.EventStream Class Reference

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

Inherits iio.IIOObject.

Collaboration diagram for iio.EventStream:
[legend]

## Public Member Functions
| EventStream (Device device)
IIOEvent | read_event (bool nonblock)
| Read an event from the event stream.

## 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

  nonblock | if 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.IIOException | Unable to read event.

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

- EventStream.cs