Table of Contents

Class AdcChannel

Namespace
nanoFramework.GiantGecko.Adc
Assembly
nanoFramework.GiantGecko.Adc.dll

Represents a single ADC channel.

public class AdcChannel : AdcChannelBase, IDisposable
Inheritance
AdcChannel
Implements
Inherited Members
Extension Methods

Properties

AdcChannelConfiguration

The initialized configuration for this AdcChannel. Any changes made to properties in this object will be ignored: AdcChannelConfiguration properties must be defined before calling OpenChannel(int, AdcChannelConfiguration).

public AdcChannelConfiguration AdcChannelConfiguration { get; }

Property Value

AdcChannelConfiguration

Methods

Dispose()

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

public void Dispose()

Finalize()

protected override void Finalize()

ReadValue()

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

public override int ReadValue()

Returns

int

The digital value.

Exceptions

InvalidOperationException

If a continuous conversion is ongoing in the AdcController.

ReadValueAveraged(int)

Reads the averaged digital representation of count analog values read from the ADC.

public override int ReadValueAveraged(int count)

Parameters

count int

Number of samples to take for averaging.

Returns

int

The digital value with the averaged value of count samples.

Exceptions

InvalidOperationException

If a continuous conversion is ongoing in the AdcController.