IAdcControllerProvider IAdcControllerProvider IAdcControllerProvider IAdcControllerProvider Interface

Definition

Represents properties and methods common to all ADC controllers.

public : interface IAdcControllerProviderpublic interface IAdcControllerProviderPublic Interface IAdcControllerProvider// You can use this interface 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

Gets the number of channels available on for the 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 controller channel mode.

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

MaxValue MaxValue MaxValue MaxValue

Gets the maximum value that the controller can return.

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

Gets the minimum value that the controller can return.

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.

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 resolution as number of bits.

Methods

AcquireChannel(Int32) AcquireChannel(Int32) AcquireChannel(Int32) AcquireChannel(Int32)

Acquires a connection to the specified channel.

public : void AcquireChannel(int channel)public void AcquireChannel(Int32 channel)Public Function AcquireChannel(channel As Int32) As void// You can use this method in JavaScript.
Parameters
channel
int Int32 Int32 Int32

Which channel to connect to.

IsChannelModeSupported(ProviderAdcChannelMode) IsChannelModeSupported(ProviderAdcChannelMode) IsChannelModeSupported(ProviderAdcChannelMode) IsChannelModeSupported(ProviderAdcChannelMode)

Determines if the specified channel mode is supported by the controller.

public : PlatForm::Boolean IsChannelModeSupported(ProviderAdcChannelMode channelMode)public bool IsChannelModeSupported(ProviderAdcChannelMode channelMode)Public Function IsChannelModeSupported(channelMode As ProviderAdcChannelMode) 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.

ReadValue(Int32) ReadValue(Int32) ReadValue(Int32) ReadValue(Int32)

Gets the digital representation of the analog value on the specified channel.

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

Which channel to read from.

Returns
int int int int

The digital representation of the analog value.

ReleaseChannel(Int32) ReleaseChannel(Int32) ReleaseChannel(Int32) ReleaseChannel(Int32)

Releases the channel connection, opening that channel for others to use.

public : void ReleaseChannel(int channel)public void ReleaseChannel(Int32 channel)Public Function ReleaseChannel(channel As Int32) As void// You can use this method in JavaScript.
Parameters
channel
int Int32 Int32 Int32

Which channel to close the connection to.