PwmController Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a PWM controller connected to the system.
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
- Inheritance
- Attributes
Windows requirements
Device family |
Windows IoT Extension SDK (introduced in 10.0.10240.0)
|
API contract |
Windows.Devices.DevicesLowLevelContract (introduced in v1.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1511 | 10586 | GetDefaultAsync |
1703 | 15063 | FromIdAsync |
1703 | 15063 | GetDeviceSelector |
1703 | 15063 | GetDeviceSelector(String) |
Properties
ActualFrequency |
Gets the actual frequency of the PWM. |
MaxFrequency |
Gets the maximum frequency offered by the controller. |
MinFrequency |
Gets the minimum frequency offered by the controller. |
PinCount |
Gets the number of pins available on the system. |
Methods
FromIdAsync(String) |
Initializes a PWM controller instance based on the given DeviceInformation ID. |
GetControllersAsync(IPwmProvider) |
Gets all the controllers on the system asynchronously. |
GetDefaultAsync() |
Gets the default PWM controller on the system. |
GetDeviceSelector() |
Retrieves an Advanced Query Syntax (AQS) string for all the PWM controllers on the system. You can use this string with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those controllers. |
GetDeviceSelector(String) |
Retrieves an Advanced Query Syntax (AQS) string for the PWM controller that has the specified friendly name. You can use this string with the DeviceInformation.FindAllAsync method to get DeviceInformation objects for those controllers. |
OpenPin(Int32) |
Opens the pin for use. |
SetDesiredFrequency(Double) |
Sets the PWM frequency. |