SysFsDriver.WaitForEvent(Int32, PinEventTypes, CancellationToken) Method

Definition

Blocks execution until an event of type eventType is received or a cancellation is requested.

protected internal override System.Device.Gpio.WaitForEventResult WaitForEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
override this.WaitForEvent : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Device.Gpio.WaitForEventResult
Protected Friend Overrides Function WaitForEvent (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As WaitForEventResult

Parameters

pinNumber
Int32

The pin number in the driver's logical numbering scheme.

eventTypes
PinEventTypes

The event types to wait for. Can be Rising, Falling or both.

cancellationToken
CancellationToken

The cancellation token of when the operation should stop waiting for an event.

Returns

A structure that contains the result of the waiting operation.

Applies to