Skip to main content

Class SimulatedDigitalInputPort

A simulated digital input port

Assembly: Meadow.Foundation.dll​
View Source​
Declaration
public class SimulatedDigitalInputPort : IDigitalInputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Implements:
Meadow.Hardware.IDigitalInputPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>, System.IDisposable

Properties​

State​

Gets the current state of the port

View Source​
Declaration
public virtual bool State { get; set; }

Name​

Gets a name or identifier for this simulated port instance.

View Source​
Declaration
public string Name { get; }

Resistor​

Gets or sets the ResistorMode of the port

View Source​
Declaration
public ResistorMode Resistor { get; set; }

Channel​

Gets the channel associated with the port.

View Source​
Declaration
public IDigitalChannelInfo Channel { get; }

Pin​

Gets the pin associated with the port.

View Source​
Declaration
public IPin Pin { get; }

Methods​

Dispose()​

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

View Source​
Declaration
public void Dispose()

Implements​

  • Meadow.Hardware.IDigitalInputPort
  • Meadow.Hardware.IDigitalPort
  • Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
  • System.IDisposable