Class AnalogMuxBase
Represents an Analog Input Multiplexer (Mux) base
Assembly: AnalogMux.dll
View Source
public abstract class AnalogMuxBase : IAnalogInputMultiplexer
Derived:
Meadow.Foundation.ICs.IOExpanders.Nxp74HC4051, Meadow.Foundation.ICs.IOExpanders.Nxp74HC4067
Implements:
Meadow.Foundation.ICs.IOExpanders.IAnalogInputMultiplexer
Properties
SyncRoot
Get the sync root
View Source
protected object SyncRoot { get; }
EnablePort
The port connected to the Enable pin of the mux (otherwise must be tied low)
View Source
public IDigitalOutputPort? EnablePort { get; }
Signal
The analog input connected to the Mux output pin (Z)
View Source
public IAnalogInputPort Signal { get; }
Methods
SetInputChannel(int)
Set input channel
View Source
public abstract void SetInputChannel(int channel)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | channel | he input channel |
Enable()
Enables the multiplexer (if an enable port was provided)
View Source
public void Enable()
Disable()
Disables the multiplexer (if an enable port was provided)
View Source
public void Disable()