Table of Contents

Class AdcController

Namespace
System.Device.Adc
Assembly
System.Device.Adc.dll

Represents an AdcController on the system

public class AdcController : AdcControllerBase
Inheritance
AdcController
Inherited Members
Extension Methods

Constructors

AdcController()

Initializes a new instance of the AdcController class.

public AdcController()

Exceptions

InvalidOperationException

If the AdcController has already been instantiated.

Properties

ChannelCount

The number of channels available on the AdcController.

public override int ChannelCount { get; }

Property Value

int

Number of channels.

ChannelMode

Gets or sets the channel mode for the AdcController.

public override AdcChannelMode ChannelMode { get; set; }

Property Value

AdcChannelMode

The mode for the AdcChannel.

MaxValue

Gets the maximum value that the AdcController can report.

public override int MaxValue { get; }

Property Value

int

The maximum value.

MinValue

The minimum value the AdcController can report.

public override int MinValue { get; }

Property Value

int

The minimum value.

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 override int ResolutionInBits { get; }

Property Value

int

The number of bits the AdcController has.

Methods

IsChannelModeSupported(AdcChannelMode)

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

public override bool IsChannelModeSupported(AdcChannelMode channelMode)

Parameters

channelMode AdcChannelMode

The channel mode.

Returns

bool

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

OpenChannel(int)

Opens a connection to the specified ADC channel.

public override AdcChannel OpenChannel(int channelNumber)

Parameters

channelNumber int

The channel to connect to.

Returns

AdcChannel

The ADC channel.