Share via


IGpioPinProvider インターフェイス

定義

汎用 I/O (GPIO) ピン プロバイダーに共通するアクションを表します。

public interface class IGpioPinProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 131072)]
/// [Windows.Foundation.Metadata.Guid(1110723767, 27324, 16639, 156, 231, 115, 184, 83, 1, 185, 0)]
struct IGpioPinProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 131072)]
[Windows.Foundation.Metadata.Guid(1110723767, 27324, 16639, 156, 231, 115, 184, 83, 1, 185, 0)]
public interface IGpioPinProvider
Public Interface IGpioPinProvider
属性

Windows の要件

デバイス ファミリ
Windows IoT Extension SDK (10.0.10586.0 で導入)
Windows 10 Anniversary Edition (10.0.14393.0 で導入)
API contract
Windows.Devices.DevicesLowLevelContract (v2.0 で導入)

プロパティ

DebounceTimeout

汎用 I/O (GPIO) ピンのデバウンス タイムアウトを取得または設定します。これは、ピンの値に対する変更がフィルターで除外され、 ValueChanged イベントが生成されない間隔です。

PinNumber

汎用 I/O (GPIO) ピンのピン番号を取得します。

SharingMode

汎用 I/O (GPIO) ピンが開いている共有モードを取得します。

メソッド

GetDriveMode()

ピンの現在構成されているドライブ モードを取得します。

IsDriveModeSupported(ProviderGpioPinDriveMode)

ピンに対してドライブ モードがサポートされているかどうかを判断します。

Read()

ピンの現在の値を読み取ります。

SetDriveMode(ProviderGpioPinDriveMode)

ピンのドライブ モードを設定します。

Write(ProviderGpioPinValue)

ピンに値を書き込みます。

イベント

ValueChanged

ピンの値が変更されたときに発生するイベント。

適用対象