Eth32AnalogState AnalogState
This property enables or disables the Analog to Digital Converter (ADC) portion of the ETH32 device. The ADC must first be enabled before any valid analog readings can be obtained.
This property is a Eth32AnalogState enumerator type, which has the following valid values:
Eth32AnalogState.Disabled - The Analog to Digital Converter is disabled. Analog readings will not be valid.
Eth32AnalogState.Enabled - The Analog to Digital Converter is enabled.
Because the analog channels use the same physical pins as digital I/O port 3, enabling the ADC forces port 3 into input mode and sets the output value of port 3 to zero. Changes to the direction register or output value of port 3 are disabled while the ADC remains enabled. Note that regardless of what port 3's direction register and output value were at the time the ADC was enabled, if the ADC is later disabled, port 3 will be left in input mode with an output value of zero.