IPwmControllerProvider 接口

定义

表示所有 PWM 控制器通用的属性和方法。

public interface class IPwmControllerProvider
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Devices.DevicesLowLevelContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(318789947, 58083, 16548, 183, 217, 72, 223, 240, 55, 122, 82)]
struct IPwmControllerProvider
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.Guid(318789947, 58083, 16548, 183, 217, 72, 223, 240, 55, 122, 82)]
public interface IPwmControllerProvider
Public Interface IPwmControllerProvider
属性

Windows 要求

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

属性

ActualFrequency

获取 PWM 的实际频率。

MaxFrequency

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

MinFrequency

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

PinCount

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

方法

AcquirePin(Int32)

获取指定的引脚并打开该引脚以供使用。

DisablePin(Int32)

停止此引脚上的 PWM。

EnablePin(Int32)

在指定引脚上启动 PWM 信号。

ReleasePin(Int32)

释放到指定 PIN 的连接,并使该 PIN 可供其他人使用。

SetDesiredFrequency(Double)

设置所需的 PWM 频率。

SetPulseParameters(Int32, Double, Boolean)

设置引脚、占空比和极性的 PWM 参数。

适用于