AdcChannel AdcChannel AdcChannel AdcChannel Class

Definition

Represents a single ADC channel.

public : sealed class AdcChannel : IAdcChannel, IClosablepublic sealed class AdcChannel : IAdcChannel, IDisposablePublic NotInheritable Class AdcChannel Implements IAdcChannel, IDisposable// 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

Controller Controller Controller Controller

Gets the ADC controller for this channel.

public : AdcController Controller { get; }public AdcController Controller { get; }Public ReadOnly Property Controller As AdcController// You can use this property in JavaScript.

Methods

Close() Close() Close() Close()

Closes the connection on this channel, making it available to be opened by others.

public : void Close()This member is not implemented in C#This member is not implemented in VB.Net// You can use this method in JavaScript.

Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This member is not implemented in C++void Dispose()Sub Disposevoid Dispose()

ReadRatio() ReadRatio() ReadRatio() ReadRatio()

Reads the value as a percentage of the max value possible for this controller.

public : double ReadRatio()public double ReadRatio()Public Function ReadRatio() As double// You can use this method in JavaScript.
Returns
double double double double

The value as percentage of the max value.

ReadValue() ReadValue() ReadValue() ReadValue()

Reads the digital representation of the analog value from the ADC.

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

The digital value.