Treehopper C# API
AdcAnalogMux.AdcAnalogMuxPin Class Reference
Inheritance diagram for AdcAnalogMux.AdcAnalogMuxPin:
AdcPin

Public Member Functions

Task MakeAnalogInAsync ()
 Make the pin an input (unused) More...
 

Properties

int AdcValue [get]
 Get the raw ADC value More...
 
int AdcValueChangedThreshold [get, set]
 Gets or sets the threshold for the AdcValueChanged event More...
 
double AnalogValue [get]
 The analog value (0-1) More...
 
double AnalogValueChangedThreshold [get, set]
 Gets or sets the threshold for the AnalogValueChanged event More...
 
double AnalogVoltage [get]
 The analog voltage More...
 
double AnalogVoltageChangedThreshold [get, set]
 Gets or sets the threshold for the AnalogVoltageChanged event More...
 

Events

OnAdcValueChanged AdcValueChanged
 Occurs when the ADC value change exceeds AdcValueChangedThreshold More...
 
OnAnalogValueChanged AnalogValueChanged
 Occurs when the analog value change exceeds AnalogValueChangedThreshold More...
 
OnAnalogVoltageChanged AnalogVoltageChanged
 Occurs when the analog voltage change exceeds AnalogVoltageChangedThreshold More...
 
PropertyChangedEventHandler PropertyChanged
 

Member Function Documentation

◆ MakeAnalogInAsync()

Task MakeAnalogInAsync ( )

Make the pin an input (unused)

Implements AdcPin.

Property Documentation

◆ AdcValue

int AdcValue
get

Get the raw ADC value

◆ AdcValueChangedThreshold

int AdcValueChangedThreshold
getset

Gets or sets the threshold for the AdcValueChanged event

◆ AnalogValue

double AnalogValue
get

The analog value (0-1)

◆ AnalogValueChangedThreshold

double AnalogValueChangedThreshold
getset

Gets or sets the threshold for the AnalogValueChanged event

◆ AnalogVoltage

double AnalogVoltage
get

The analog voltage

◆ AnalogVoltageChangedThreshold

double AnalogVoltageChangedThreshold
getset

Gets or sets the threshold for the AnalogVoltageChanged event

Event Documentation

◆ AdcValueChanged

OnAdcValueChanged AdcValueChanged

Occurs when the ADC value change exceeds AdcValueChangedThreshold

◆ AnalogValueChanged

OnAnalogValueChanged AnalogValueChanged

Occurs when the analog value change exceeds AnalogValueChangedThreshold

◆ AnalogVoltageChanged

OnAnalogVoltageChanged AnalogVoltageChanged

Occurs when the analog voltage change exceeds AnalogVoltageChangedThreshold

◆ PropertyChanged

PropertyChangedEventHandler PropertyChanged

The documentation for this class was generated from the following file: