AdcController AdcController AdcController AdcController Class

Definition

Represents an ADC controller on the system

public : sealed class AdcController : IAdcControllerpublic sealed class AdcController : IAdcControllerPublic NotInheritable Class AdcController Implements IAdcController// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v1)

Properties

ChannelCount ChannelCount ChannelCount ChannelCount

The number of channels available on the ADC controller.

public : int ChannelCount { get; }public int ChannelCount { get; }Public ReadOnly Property ChannelCount As int// You can use this property in JavaScript.
Value
int int int int

Number of channels.

ChannelMode ChannelMode ChannelMode ChannelMode

Gets or sets the channel mode for the ADC controller.

public : AdcChannelMode ChannelMode { get; set; }public AdcChannelMode ChannelMode { get; set; }Public ReadWrite Property ChannelMode As AdcChannelMode// You can use this property in JavaScript.

MaxValue MaxValue MaxValue MaxValue

Gets the maximum value that the controller can report.

public : int MaxValue { get; }public int MaxValue { get; }Public ReadOnly Property MaxValue As int// You can use this property in JavaScript.
Value
int int int int

The maximum value.

MinValue MinValue MinValue MinValue

The minimum value the controller can report.

public : int MinValue { get; }public int MinValue { get; }Public ReadOnly Property MinValue As int// You can use this property in JavaScript.
Value
int int int int

The minimum value.

ResolutionInBits ResolutionInBits ResolutionInBits 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.

public : int ResolutionInBits { get; }public int ResolutionInBits { get; }Public ReadOnly Property ResolutionInBits As int// You can use this property in JavaScript.
Value
int int int int

The number of bits the ADC controller has.

Methods

GetControllersAsync(IAdcProvider) GetControllersAsync(IAdcProvider) GetControllersAsync(IAdcProvider) GetControllersAsync(IAdcProvider)

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

public : static IAsyncOperation<IVectorView<AdcController>> GetControllersAsync(IAdcProvider provider)public static IAsyncOperation<IReadOnlyList<AdcController>> GetControllersAsync(IAdcProvider provider)Public Static Function GetControllersAsync(provider As IAdcProvider) As IAsyncOperation( Of IReadOnlyListAdcController )// You can use this method in JavaScript.
Parameters
provider
IAdcProvider IAdcProvider IAdcProvider IAdcProvider

The ADC provider for the controllers on the system.

Returns
IAsyncOperation<IVectorView<AdcController>> IAsyncOperation<IReadOnlyList<AdcController>> IAsyncOperation<IReadOnlyList<AdcController>> IAsyncOperation<IReadOnlyList<AdcController>>

When the method completes successfully, it returns a list of values that represent the controllers available on the system.

GetDefaultAsync() GetDefaultAsync() GetDefaultAsync() GetDefaultAsync()

Gets the default ADC controller on the system.

public : static IAsyncOperation<AdcController> GetDefaultAsync()public static IAsyncOperation<AdcController> GetDefaultAsync()Public Static Function GetDefaultAsync() As IAsyncOperation( Of AdcController )// You can use this method in JavaScript.
Returns

The default ADC controller on the system, or null if the system has no ADC controller.

Additional features and requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)

IsChannelModeSupported(AdcChannelMode) IsChannelModeSupported(AdcChannelMode) IsChannelModeSupported(AdcChannelMode) IsChannelModeSupported(AdcChannelMode)

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

public : PlatForm::Boolean IsChannelModeSupported(AdcChannelMode channelMode)public bool IsChannelModeSupported(AdcChannelMode channelMode)Public Function IsChannelModeSupported(channelMode As AdcChannelMode) As bool// You can use this method in JavaScript.
Parameters
Returns
PlatForm::Boolean bool bool bool

True if the specified channel mode is supported, otherwise false.

OpenChannel(Int32) OpenChannel(Int32) OpenChannel(Int32) OpenChannel(Int32)

Opens a connection to the specified ADC channel.

public : AdcChannel OpenChannel(int channelNumber)public AdcChannel OpenChannel(Int32 channelNumber)Public Function OpenChannel(channelNumber As Int32) As AdcChannel// You can use this method in JavaScript.
Parameters
channelNumber
int Int32 Int32 Int32

The channel to connect to.

Returns