Table of Contents

Class AdcChannelBase

Namespace
System.Device.Adc
Assembly
nanoFramework.GiantGecko.Adc.dll

Base class for AdcChannel.

public abstract class AdcChannelBase
Inheritance
AdcChannelBase
Derived
Inherited Members
Extension Methods

Constructors

AdcChannelBase()

protected AdcChannelBase()

Properties

Controller

Gets the AdcController for this channel.

public AdcController Controller { get; }

Property Value

AdcController

The AdcController.

Methods

ReadRatio()

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

public double ReadRatio()

Returns

double

The value as percentage of the max value.

ReadValue()

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

public abstract int ReadValue()

Returns

int

The digital value.

ReadValueAveraged(int)

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

public abstract 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.