Share via


AdcController Class

Definition

Represents an ADC controller on the system

[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Devices.DevicesLowLevelContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AdcController
Inheritance
Object AdcController
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

Properties

ChannelCount

The number of channels available on the ADC controller.

ChannelMode

Gets or sets the channel mode for the ADC controller.

MaxValue

Gets the maximum value that the controller can report.

MinValue

The minimum value the controller can report.

ResolutionInBits

Gets the resolution of the controller as number of bits it has. For example, if we have a 10-bit ADC, that means it can detect 1024 (2^10) discrete levels.

Methods

GetControllersAsync(IAdcProvider)

Gets all the controllers that are connected to the system asynchronously .

GetDefaultAsync()

Gets the default ADC controller on the system.

IsChannelModeSupported(AdcChannelMode)

Verifies that the specified channel mode is supported by the controller.

OpenChannel(Int32)

Opens a connection to the specified ADC channel.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100