PwmPin 類別

定義

表示系統上的單一 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()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

GetActiveDutyCyclePercentage()

擷取這個針腳的工作週期百分比。

SetActiveDutyCyclePercentage(Double)

設定此針腳的工作週期百分比。

Start()

在此針腳上啟動 PWM。

Stop()

停止此針腳上的 PWM。

適用於

另請參閱