PwmPin クラス

定義

システム上の 1 つの PWM ピンを表します。

public ref class PwmPin sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PwmPin final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PwmPin : System.IDisposable
Public NotInheritable Class PwmPin
Implements IDisposable
継承
Object Platform::Object IInspectable PwmPin
属性
実装

Windows の要件

デバイス ファミリ
Windows IoT Extension SDK (10.0.10240.0 で導入)
API contract
Windows.Devices.DevicesLowLevelContract (v1.0 で導入)

プロパティ

Controller

このピンで使用されている PWM コントローラーを取得します。

IsStarted

ピンの開始状態を取得します。

Polarity

ピンの極性を取得または設定します。

メソッド

Close()

ピンへの現在の接続を閉じ、他のユーザーがピンを開くようにします。

Dispose()

アンマネージ リソースの解放またはリセットに関連付けられているアプリケーション定義のタスクを実行します。

GetActiveDutyCyclePercentage()

このピンのデューティ サイクルの割合を取得します。

SetActiveDutyCyclePercentage(Double)

このピンのデューティ サイクルの割合を設定します。

Start()

このピンで PWM を開始します。

Stop()

このピンの PWM を停止します。

適用対象

こちらもご覧ください