次の方法で共有


RockchipDriver.WaitForEventAsync メソッド

定義

eventType 型のイベントが受信されるか、取り消しが要求されるまでの非同期呼び出し。

protected override System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult> WaitForEventAsync (int pinNumber, System.Device.Gpio.PinEventTypes eventTypes, System.Threading.CancellationToken cancellationToken);
override this.WaitForEventAsync : int * System.Device.Gpio.PinEventTypes * System.Threading.CancellationToken -> System.Threading.Tasks.ValueTask<System.Device.Gpio.WaitForEventResult>
Protected Overrides Function WaitForEventAsync (pinNumber As Integer, eventTypes As PinEventTypes, cancellationToken As CancellationToken) As ValueTask(Of WaitForEventResult)

パラメーター

pinNumber
Int32

ドライバーの論理番号付けスキームのピン番号。

eventTypes
PinEventTypes

待機するイベントの種類。

cancellationToken
CancellationToken

操作がイベントの待機を停止する必要がある場合のキャンセル トークン。

戻り値

待機中の操作の結果を含む構造体を取得する操作を表すタスク

適用対象