Skip to main content

Class AnalogMuxBase

Represents an Analog Input Multiplexer (Mux) base

Assembly: AnalogMux.dll
View Source
Declaration
public abstract class AnalogMuxBase : IAnalogInputMultiplexer

Derived:
Meadow.Foundation.ICs.IOExpanders.Nxp74HC4051

Implements:
Meadow.Foundation.ICs.IOExpanders.IAnalogInputMultiplexer

Properties

SyncRoot

Get the sync root

View Source
Declaration
protected object SyncRoot { get; }

EnablePort

The port connected to the Enable pin of the mux (otherwise must be tied low)

View Source
Declaration
public IDigitalOutputPort? EnablePort { get; }

Signal

The analog input connected to the Mux output pin (Z)

View Source
Declaration
public IAnalogInputPort Signal { get; }

Methods

SetInputChannel(int)

Set input channel

View Source
Declaration
public abstract void SetInputChannel(int channel)
Parameters
TypeNameDescription
System.Int32channelhe input channel

Enable()

Enables the multiplexer (if an enable port was provided)

View Source
Declaration
public void Enable()

Disable()

Disables the multiplexer (if an enable port was provided)

View Source
Declaration
public void Disable()

Implements