Share via


PwmController 类

定义

表示连接到系统的 PWM 控制器。

public ref class PwmController sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class PwmController final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class PwmController
Public NotInheritable Class PwmController
继承
Object Platform::Object IInspectable PwmController
属性

Windows 要求

设备系列
Windows IoT Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Devices.DevicesLowLevelContract (在 v1.0 中引入)

注解

版本历史记录

Windows 版本 SDK 版本 已添加值
1511 10586 GetDefaultAsync
1703 15063 FromIdAsync
1703 15063 GetDeviceSelector
1703 15063 GetDeviceSelector (String)

属性

ActualFrequency

获取 PWM 的实际频率。

MaxFrequency

获取控制器提供的最大频率。

MinFrequency

获取控制器提供的最小频率。

PinCount

获取系统上可用的引脚数。

方法

FromIdAsync(String)

基于给定 的 DeviceInformation ID 初始化 PWM 控制器实例。

GetControllersAsync(IPwmProvider)

异步获取系统上的所有控制器。

GetDefaultAsync()

获取系统上的默认 PWM 控制器。

GetDeviceSelector()

检索系统上所有 PWM 控制器 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取这些控制器的 DeviceInformation 对象。

GetDeviceSelector(String)

检索具有指定友好名称的 PWM 控制器 (AQS) 字符串的高级查询语法。 可以将此字符串与 DeviceInformation.FindAllAsync 方法结合使用,以获取这些控制器的 DeviceInformation 对象。

OpenPin(Int32)

打开大头针以供使用。

SetDesiredFrequency(Double)

设置 PWM 频率。

适用于