Class AdcControllerBase
Base class for AdcController.
public abstract class AdcControllerBase
- Inheritance
-
AdcControllerBase
- Derived
- Inherited Members
- Extension Methods
Constructors
AdcControllerBase()
protected AdcControllerBase()
Properties
ChannelCount
The number of channels available on the AdcController.
public abstract int ChannelCount { get; }
Property Value
- int
Number of channels.
ChannelMode
Gets or sets the channel mode for the AdcController.
public abstract AdcChannelMode ChannelMode { get; set; }
Property Value
- AdcChannelMode
The mode for the AdcChannel.
MaxValue
Gets the maximum value that the AdcController can report.
public abstract int MaxValue { get; }
Property Value
- int
The maximum value.
MinValue
The minimum value the AdcController can report.
public abstract 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 abstract int ResolutionInBits { get; }
Property Value
- int
The number of bits the AdcController has.
SupportedResolutionsInBits
Gets the resolution(s) 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 abstract SampleResolution[] SupportedResolutionsInBits { get; }
Property Value
- SampleResolution[]
Array with the resolution(s) that the ADC has support for.
Methods
IsChannelModeSupported(AdcChannelMode)
Verifies that the specified channel mode is supported by the controller.
public abstract bool IsChannelModeSupported(AdcChannelMode channelMode)
Parameters
channelMode
AdcChannelModeThe 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 abstract AdcChannel OpenChannel(int channelNumber)
Parameters
channelNumber
intThe channel to connect to.
Returns
- AdcChannel
The ADC channel.
OpenChannel(int, AdcChannelConfiguration)
Opens a connection to the specified ADC channel with the specified configurations.
public abstract AdcChannel OpenChannel(int channelNumber, AdcChannelConfiguration configuration)
Parameters
channelNumber
intThe channel to connect to.
configuration
AdcChannelConfigurationInitial configuration for ADC channel.
Returns
- AdcChannel
The ADC channel.