Sdílet prostřednictvím


GpioController.WaitForEvent Metoda

Definice

Přetížení

WaitForEvent(Int32, PinEventTypes, CancellationToken)

Blokuje spuštění, dokud není přijata událost typu eventType nebo dokud není požadováno zrušení.

WaitForEvent(Int32, PinEventTypes, TimeSpan)

Blokuje spuštění, dokud není přijata událost typu eventType nebo dokud nevypršela doba.

WaitForEvent(Int32, PinEventTypes, CancellationToken)

Blokuje spuštění, dokud není přijata událost typu eventType nebo dokud není požadováno zrušení.

public System.Device.Gpio.WaitForEventResult WaitForEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
public virtual System.Device.Gpio.WaitForEventResult WaitForEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
member this.WaitForEvent : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Device.Gpio.WaitForEventResult
abstract member WaitForEvent : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Device.Gpio.WaitForEventResult
override this.WaitForEvent : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Device.Gpio.WaitForEventResult
Public Function WaitForEvent (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As WaitForEventResult
Public Overridable Function WaitForEvent (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As WaitForEventResult

Parametry

pinNumber
Int32

Číslo špendlíku v číselném schématu ovladače.

eventTypes
PinEventTypes

Typy událostí, na které se má čekat.

cancellationToken
CancellationToken

Token zrušení, kdy má operace přestat čekat na událost.

Návraty

Struktura, která obsahuje výsledek operace čekání.

Platí pro

WaitForEvent(Int32, PinEventTypes, TimeSpan)

Blokuje spuštění, dokud není přijata událost typu eventType nebo dokud nevypršela doba.

public System.Device.Gpio.WaitForEventResult WaitForEvent (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, TimeSpan timeout);
member this.WaitForEvent : int * System.Device.Gpio.PinEventTypes * TimeSpan -> System.Device.Gpio.WaitForEventResult
Public Function WaitForEvent (pinNumber As Integer, eventTypes As PinEventTypes, timeout As TimeSpan) As WaitForEventResult

Parametry

pinNumber
Int32

Číslo špendlíku v číselném schématu ovladače.

eventTypes
PinEventTypes

Typy událostí, na které se má čekat.

timeout
TimeSpan

Doba čekání na událost.

Návraty

Struktura, která obsahuje výsledek operace čekání.

Platí pro